Of course, the concept of as the ratio between the diameter and circumference of a circle is more than important – a cursory glance through the arXiv suggests it appears in near 85% of all papers on theoretical physics. What I mean is are the digits of special? Is there anything actually significant hidden in the seemingly random digits of this all-important transcendental number?
This is a well-trodden topic among pseudo-intellectuals and science fiction writers alike. No less then the great Carl Sagan afforded a special significance to the digits of our friend at the very end of Contact (a part which didn’t make it into the movie). But is there any truth to this? Or even any evidence for it? In fact, how would you even go about trying to figure it out?
What got me thinking about this was a website I came across a few weeks back, talking about finding strings of specific numbers in – you can see it here. It’s a very cool page, which lets you do cool things like search for your SS number in the digits of (no joy for me there, I only get 8/9 numbers). However, down at the bottom they define something which I formalize as follows:
Loop Sequences: A loop sequence in a string of single-digits integers is a set of integers such that as a string of single digits, the integer is found at the position in the string , and is found at position .
This is perhaps best illustrated by an example. Let’s start with . Turns out, starting at the 35th digit of (counting starting after the decimal point), we have …841971693993…, which contains 169 starting at the 40th position, so . I continue to do this and find , , and so on until you find that you are looking 169 again! This is a loop sequence.
That web page gives a single loop sequence, found by one Dan Sikorski. I wondered if there are more – how common are these loops, and what would it take to find them? Sounding like an interesting computational project (rather than tackling this theoretically, which might be possible but struck me as more difficult), I though I would look for loops in some mathematical constants, along with random numbers, to see if there was any evidence for being special.
In short, no, there is not.
Of course, since these numbers are infinitely long, every number you start with must loop back at some point. What I’m after is how common these loops are. So let’s start with a million digits of , and try to find loops that contain any of the numbers 1 to 100000 (rather arbitrary, but my PC can handle this in under an hour so it seems appropriate). The results are as follows:
For , I found the following loops:
(this is self-referencing)
(this might be called “the Sikorski loop”)
(this is a new loop, but who knows if I’m the first to notice it!)
For , I found the following loops:
To see if this distribution is at all unusual, I generated 100 random strings of a million integers and did the same kind of search. The distribution for the random numbers, plotted with the strings I found in and is:
The random distribution probably looks exactly how one would expect it – smaller loops are far more common, and larger loops (>5 or so) are part of the statistical variation. Due to small number statistics, its very hard to convince yourself that and are particularly special in terms of the distribution of their loops. It might be tempting to say that the length 20 loop in lies outside the statistical variation, but you can see that I found loops of lengths 17, 18 and 31 in the random sample. For this reason, I would say this study does not suggest anything about the special character of the digits of and .
I suppose one should go further to try and deal with the statistics, and perhaps I’ll just run my laptop for a week and do the 10 million digit version of this, but it’s a little hard to imagine that I will find any evidence to suggest that there are any cyclic patterns in the digits of or .