Happy e day! As with pi, e is an irrational number (as well as transcendental), and repeats forever in a seemingly bizarre pattern of digits. It shows up in tons of places inside and outside of mathematics.
I've always been a sucker for strange patterns, and love investigating them. The Wolfram Language has some of the best pattern matching capabilities available, so I wanted to make use of them to visualize the digits of e. I'm no number theorist or visualization expert by any meansjust an enthusiastic user who likes puzzlesbut was still able to come across some cool observations.
Partitioning Digits of e
The first thing that needed to be done to visualize how the digits of e behave is to essentially pick out those digits up to a certain placement. I chose the first 200 digits because, well, why not? First, I generated the digits:
e = N[E,200]
(*2.71828182845904523536028747135266249775724709369995957496696762772407663035354759457138217852516642742746639193200309921817413596629043572 9003342952605956307381323286279434907632338298807531952510190*)
Next, I figured the easiest way to split the digits into single elements of a list was to turn the whole thing into a string, then split it, then turn it back into an expression:
ToString[e] //
StringSplit[#, ""] & //
Drop[#, 2] & (*drops both the 2 and the decimal point so I just get digits after the decimal*)//
ToExpression[#] & //
(eList = #) &
Finally, I decided to do a ListLinePlot
just to see what I was working with:
ListLinePlot[eList]

So first thing I thought was, "huh, that looks like a time series", which informed the rest of what I did; I decided to do a Fourier transform as well, just to check out what the power spectrum would look like:
fourierList = Rest[Abs@Fourier[eList]];
ListLinePlot[fourierList]

Filtering and Comparison
This thing definitely required some smoothing, so I used a basic LowpassFilter
and varied the parameters a bit until my eyeballs thought it looked roughly ok. I did this both for the original sequence of digits:
fit = LowpassFilter[eList, 0.1];
ListPlot[{eList, fit}, Joined -> True]

As well as the transformed sequence of digits:
fourierFit = LowpassFilter[fourierList, 0.1];
ListPlot[{fourierList, fourierFit}, Joined -> True]

Finally, I wanted to get a sense of how well their relative "smoothness" compared, and if there was something more to investigate:
ListLinePlot[{fit, fourierFit}, Filling -> Axis,
PlotLegends -> {"Original", "Transformed"}]

So to me, it looks like there's a pretty clear and consistent gap between digits of e before and after transformation. Could this distance be visualized? I wanted to try it; if nothing special came out of it, then, well, might at least look pretty.
Distance Visualization
First, I wanted to get a idea of the distance between consecutive digits of eboth the original sequence:
MatrixPlot[DistanceMatrix[eList],
PlotLabel -> "Distance matrix for first 200 digits of e",
FrameTicks -> {Automatic, Automatic}]

and the transformed sequence:
MatrixPlot[DistanceMatrix[fourierList],
PlotLabel -> "Distance matrix for first 200 transformed digits of e",
FrameTicks -> {Automatic, Automatic}]

Ok, those are pretty neat looking, and compared to the MatrixPlot
of the first 200 digits in the PrimePi
function, it is way less smooth (I'll leave it to y'all to explore that reference visual).
Going back to my earlier desire of wanting to investigate the distance between the original sequence of digits and its corresponding transformed sequence, I was able to do that just as easily as these other two plots:
DistanceMatrix[eList, fourierList] //
MatrixPlot[#, PlotLabel -> "Distance matrix between sequences",
FrameTicks -> {Automatic, Automatic}] &

Interpreting this MatrixPlot
is not something I know how to do, but as a visualization within the digit space of e, it's pretty cool to examine. Some other cool visuals for distance metrics I'd like to investigate for these sequences are force-directed graphs or a Voronoi diagram; maybe y'all can discuss those visualization techniques in this thread; would definitely be interested to see what gets produced! Enjoy this transcendental occasion!