r/askscience • u/Manticorp • Oct 28 '13
Mathematics Could an infinite sequence of random digits contain all the digits of Pi?
It's a common thing to look up phone numbers in pi, and it's a common saying that every Shakespeare ever written is encoded in pi somewhere, but would it be possible for every digit of pi to appear in a random sequence of numbers? Similarly this could apply to any non terminating, non repeating sequence like e, phi, sqrt(2) I suppose. If not, what prohibits this?
I guess a more abstract way of putting it is: Can an infinite sequence appear entirely inside another sequence?
23
Upvotes
4
u/BundleGerbe Topology | Category Theory Oct 29 '13
One possible version your question is the following: if I generate a random sequence of digits, what is the probability that after a certain point, the digits will be exactly the digits of pi, like .67314159... etc? The answer is zero, because if the random number generator is really random, at any point it has only a 1/10 chance of "hitting" for each digit, and so it will eventually have to miss again after any given point. (For anyone wanting a more rigourous proof, there are a countable number of ways that a decimal can "end in pi", and countable sets of real numbers have measure 0).
33
u/user31415926535 Oct 28 '13
I just want to note this this is commonly believed, but as yet unproven. A infinite decimal in which every possible digit sequence appears somewhere is called a "normal number". It has not been proven that pi is a normal number. It's expected to be, but no one has shown a mathematical proof that pi does contain every possible sequence of digits.
15
u/DarylHannahMontana Mathematical Physics | Elastic Waves Oct 28 '13
Sure. Take 1 + π/10 = 1.314159265359...
or 138.594859 + π/107 = 138.594859314159265359...
etc.
Further, since the decimal exansion of π is non-terminating, you can't ever have a number of the form
so those are really the only options for realizing this.
9
u/TheBB Mathematics | Numerical Methods for PDEs Oct 28 '13
Certainly it can. If the embedding is not contiguous (just any subsequence), it's not even very hard. You could do something like
1.311141115191216151…
which has all the digits of pi interspersed with ones. If you want it contiguous (so that the digits of pi form a tail of the given number) it's also possible, but generally won't happen without some cheap tricks, e.g.
pi × 10-6 + 0.99999 = 0.99999314159265…
This number has pi in it. In fact you can show that any number which has a tail equal to pi must be of this form.
2
u/[deleted] Oct 29 '13 edited Oct 29 '13
Sure you can. Say you want a number that is constructed by taking the first n digits of pi starting at n=1 and adding it to the end of the number and continue letting n=>infinity.
For example, say we had 3.14156926 we construct or number by taking 3, 31, 314, 3141, 31415, 314156, 3141569, 31415692, 314156926 So, we have the number: .331314314131415314156314156931415692314156926 and you can see that if we continue this pattern out to infinity pi will occur in this number at the very end. In fact, every version of pi to n digits will independently occur within this number.
3
u/prees Oct 29 '13
I interpret this question as: can one infinite sequence be contained within another infinite sequence.
I don't know the answer. However this is the type of question that would likely be proven or dis-proven by now.
3
u/eebob Oct 29 '13
True randomness is more theoretical than something that actually exists. It isn't clear that it's actually possible to create a truly random number. Discussions about it will wind up in places like radioactive decay.
If you define an infinite sequence as containing PI, then by definition, it does. When people say an infinite random sequence contains every possible finite sequence, they've defined it that way. That's different than such a sequences actual or even possible existence.
It's also worth noting that numbers like PI are not random, and may or may not contain any particular sequence. A pattern in PI may or may not one day be found, but currently we don't know. Proving a number like PI ultimately contains or does not contain all possible finite sequences would be Nobel Prize winning stuff. And proving that numbers like PI, or any man made 'random' number string contains a particular sequence is usually resolved with brute force analysis.
2
u/Soup_and_a_Roll Oct 28 '13
I take it I'm understanding wrong when I think that as pi is infinitely long and the sub set of numbers is infinitely long so one cannot contain the other? My brain can't do the hypothetical logic.
0
u/king_of_the_universe Oct 29 '13
Let's assume that the universe were infinite (which it might well be). And we place steel cubes inside it (1m³), each labeled with one digit of Pi on one side.
In a finite universe, you could keep putting the boxes in, but you'd eventually run out of space. Then you could extend space a bit and place more boxes. To place all infinitely many boxes, you would have to keep extending the universe - which you don't need to since we started with an infinite universe to begin with.
So, you can keep putting the digit-boxes in without limitation. The task itself can of course never be accomplished if it works digit by digit, because the sequence of actions never ends, but we can just re-define the analogy slightly by saying that we put all boxes in simultaneously. Would they fit? Yes, because we have enough space, we will never run out of it. But the amount of cubes is infinite, right? I mean, this could mean that they might just max out the infinity of space, no? No, that's not possible. The space is infinite, so you can keep putting stuff into it without limit. If the amount of stuff you want to put into it is indeed infinite, then you can do that.
The analogy works because an infinite random number string is like a space into which you could put things, as long as they are digits.
The answer is yes.
0
u/[deleted] Oct 29 '13
[deleted] — view deleted comment
0
u/[deleted] Oct 28 '13
[deleted] — view deleted comment