# Pi -- The Source Of All Information?

**URL:** <https://boards.straightdope.com/t/pi-the-source-of-all-information/77058>\
**Category:** Factual Questions\
**Created:** [August 19, 2001, 11:19pm UTC](https://boards.straightdope.com/t/pi-the-source-of-all-information/77058 "2001-08-19T23:19:42Z")\
**Posts on this page:** 12\
**Page:** 2

<div class="post-metadata">

**Author:** ![ricksummon](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/ricksummon/32/3333_2.png) [@ricksummon](https://boards.straightdope.com/u/ricksummon)\
**Post date:** [August 20, 2001, 7:11pm UTC](https://boards.straightdope.com/t/pi-the-source-of-all-information/77058/21 "2001-08-20T19:11:54Z")

</div>

How can we calculate just how many digits of pi we’d have to go through to find a specific piece of data? If you have a specific file that is n bits long, the probability of getting that specific file out of a random combination of n bits is 1/2^n. But, what is the probability of finding it in a random combination of m bits, where m \> n?

---

<div class="post-metadata">

**Author:** ![ultrafilter](https://avatars.discourse-cdn.com/v4/letter/u/3d9bf3/32.png) [@ultrafilter](https://boards.straightdope.com/u/ultrafilter)\
**Post date:** [August 20, 2001, 7:23pm UTC](https://boards.straightdope.com/t/pi-the-source-of-all-information/77058/22 "2001-08-20T19:23:03Z")

</div>

> [@](#):
>
> \*Originally posted by ricksummon \*  
> \*\*How can we calculate just how many digits of pi we’d have to go through to find a specific piece of data? If you have a specific file that is n bits long, the probability of getting that specific file out of a random combination of n bits is 1/2^n. But, what is the probability of finding it in a random combination of m bits, where m \> n? \*\*

Well, first off, pi’s not really random, because it’s an infinite string that can be generated by a finite program. Secondly, we don’t know if we can calculate the starting point of any sequence–but if it’s in there, we are guaranteed to find it. If pi is normal, it’s guaranteed to be in there.

Something else in your OP–this property of pi wouldn’t have anything to do with the fact that pi is transcendental, unless it turns out that all transcendentals are normal. That would be really cool if it were true, but I don’t think we have any reason to suspect that (on the other hand, I could very easily be wrong).

---

<div class="post-metadata">

**Author:** ![ricksummon](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/ricksummon/32/3333_2.png) [@ricksummon](https://boards.straightdope.com/u/ricksummon)\
**Post date:** [August 20, 2001, 7:30pm UTC](https://boards.straightdope.com/t/pi-the-source-of-all-information/77058/23 "2001-08-20T19:30:45Z")

</div>

What I was trying to estimate was not exactly **where** in pi a specific file could be found, but rather the probability of finding a specific file in a piece of pi (heh) of a certain length. If you generated a binary expansion of pi that was 10 terabytes long, what are the chances of finding a specific 1K file in there?

It also turns out that not all transcendental numbers are normal. There is a transcendental number that contains only the digits 0 and 1. Also, numbers such as the square root of 2, which are only irrational, may also be normal.

---

<div class="post-metadata">

**Author:** ![Cabbage](https://avatars.discourse-cdn.com/v4/letter/c/f07891/32.png) [@Cabbage](https://boards.straightdope.com/u/Cabbage)\
**Post date:** [August 20, 2001, 7:58pm UTC](https://boards.straightdope.com/t/pi-the-source-of-all-information/77058/24 "2001-08-20T19:58:35Z")

</div>

> [@](#):
>
> There is a transcendental number that contains only the digits 0 and 1.

In fact, Liouville’s number, 0.110001000000000000000001… (with ones in the n! position after the decimal (n a positive integer), zeros elsewhere), was the first number ever proven to be transcendental, but obviously can’t be normal in base ten since it doesn’t even use digits 2 - 9.

---

<div class="post-metadata">

**Author:** ![Dani\_Filth](https://avatars.discourse-cdn.com/v4/letter/d/f07891/32.png) [@Dani\_Filth](https://boards.straightdope.com/u/Dani_Filth)\
**Post date:** [August 20, 2001, 8:09pm UTC](https://boards.straightdope.com/t/pi-the-source-of-all-information/77058/25 "2001-08-20T20:09:37Z")

</div>

Tell you what, go watch [this](http://us.imdb.com/Title?0138704) movie, and then come back and talk about this little problem 🙂

-Dani

---

<div class="post-metadata">

**Author:** ![MrDeath](https://avatars.discourse-cdn.com/v4/letter/m/22d042/32.png) [@MrDeath](https://boards.straightdope.com/u/MrDeath)\
**Post date:** [August 20, 2001, 8:28pm UTC](https://boards.straightdope.com/t/pi-the-source-of-all-information/77058/26 "2001-08-20T20:28:18Z")

</div>

> [@](#):
>
> \*Originally posted by Cabbage \*  
> \*\*In fact, Liouville’s number, 0.110001000000000000000001… (with ones in the n! position after the decimal (n a positive integer), zeros elsewhere), was the first number ever proven to be transcendental, but obviously can’t be normal in base ten since it doesn’t even use digits 2 - 9. \*\*

In fact, the base-2 version of Liouville’s number isn’t normal (in base 2) either, since the string 111 never appears.

---

<div class="post-metadata">

**Author:** ![Squink](https://avatars.discourse-cdn.com/v4/letter/s/b5e925/32.png) [@Squink](https://boards.straightdope.com/u/Squink)\
**Post date:** [August 20, 2001, 9:09pm UTC](https://boards.straightdope.com/t/pi-the-source-of-all-information/77058/27 "2001-08-20T21:09:58Z")

</div>

> [@](#):
>
> What I was trying to estimate was not exactly where in pi a specific file could be found, but rather the probability of finding a specific file in a piece of pi (heh) of a certain length.

Randomly pick a number 100 digits long.  
What are the odds of your having picked that particular number ?  
In base 10 they’d be 1 out of ~10E100.

What is the shortest number that could possibly contain a significant fraction of all numbers that are 100 digits long ?  
If a number is 100 digits long it can contain 1 100 digit substring  
If it’s 101 digits long it can contain 2  
If it’s 102 digits long it can contain 3…  
So to contain 10E100 100 digit numbers (substrings) it would have to be at least 10E100 digits long, and that’s if the digits of the number are chosen so they don’t repeat any 100 digit substring along the way.

So even with a normal number that doesn’t have duplicate substrings your “average” random 100 digit number would be found somewhere about halfway through a string of 10E100 digits.

I’m sure an actual mathematician could make an even grimmer estimate of how far out in pi you’d have to look in order to find the substring you want.

---

<div class="post-metadata">

**Author:** ![Tretiak](https://avatars.discourse-cdn.com/v4/letter/t/a88e57/32.png) [@Tretiak](https://boards.straightdope.com/u/Tretiak)\
**Post date:** [August 20, 2001, 9:53pm UTC](https://boards.straightdope.com/t/pi-the-source-of-all-information/77058/28 "2001-08-20T21:53:11Z")

</div>

Couldn’t you also say that every number combination, file or whatever is in pi an inifinitely many number of times?

---

<div class="post-metadata">

**Author:** ![Cabbage](https://avatars.discourse-cdn.com/v4/letter/c/f07891/32.png) [@Cabbage](https://boards.straightdope.com/u/Cabbage)\
**Post date:** [August 20, 2001, 11:32pm UTC](https://boards.straightdope.com/t/pi-the-source-of-all-information/77058/29 "2001-08-20T23:32:14Z")

</div>

> [@](#):
>
> Couldn’t you also say that every number combination, file or whatever is in pi an inifinitely many number of times?

Yeah, that’s true, too. For a number to be normal, it has to have all possible finite sequences of digits occuring at their expected frequency in a uniformly random distribution of digits. For example, the digit “1” has to occur in 1/10 of the digits on average as you go out the infinite string of digits of pi, same as any other digit. “36” has to occur in one out of every hundred pairs of digits, on average. {some string of n digits} has to occur, on average, in one out of every 10[sup]n[/sup] sequences of n digits. Of course, this forces every possible finite string to occur infinitely often.

---

<div class="post-metadata">

**Author:** ![hibernicus](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/hibernicus/32/2802_2.png) [@hibernicus](https://boards.straightdope.com/u/hibernicus)\
**Post date:** [August 20, 2001, 11:41pm UTC](https://boards.straightdope.com/t/pi-the-source-of-all-information/77058/30 "2001-08-20T23:41:35Z")

</div>

> [@](#):
>
> \*Originally posted by ultrafilter \*  
> \*\*
> 
> > [@](#):
> >
> > \*Originally posted by Enderw24 \*  
> > \*\*When you show me a computer program that can do that, I’ll show you my shakespeare typing monkey. I mean this in all seriousness. \*\*
> 
> Better have your Shakespeare-typing monkey ready, cause if pi is normal, I can do that. For you see, there are already programs that will calculate the nth digit of pi without having to know any of the others. \*\*

In hexadecimal, yes, but not in decimal. Unless my information is out-of-date.

---

<div class="post-metadata">

**Author:** ![ultrafilter](https://avatars.discourse-cdn.com/v4/letter/u/3d9bf3/32.png) [@ultrafilter](https://boards.straightdope.com/u/ultrafilter)\
**Post date:** [August 21, 2001, 1:38am UTC](https://boards.straightdope.com/t/pi-the-source-of-all-information/77058/31 "2001-08-21T01:38:41Z")

</div>

> [@](#):
>
> \*Originally posted by hibernicus \*  
> \*\*
> 
> > [@](#):
> >
> > \*Originally posted by ultrafilter \*  
> > \*\*
> > 
> > > [@](#):
> > >
> > > \*Originally posted by Enderw24 \*  
> > > \*\*When you show me a computer program that can do that, I’ll show you my shakespeare typing monkey. I mean this in all seriousness. \*\*
> > 
> > Better have your Shakespeare-typing monkey ready, cause if pi is normal, I can do that. For you see, there are already programs that will calculate the nth digit of pi without having to know any of the others. \*\*
> 
> In hexadecimal, yes, but not in decimal. Unless my information is out-of-date. \*\*

Don’t believe there’s anything specifying I can’t do it in hex. Besides, I really wanna see Enderw24’s Shakespeare-typing monkey.

---

<div class="post-metadata">

**Author:** ![Cabbage](https://avatars.discourse-cdn.com/v4/letter/c/f07891/32.png) [@Cabbage](https://boards.straightdope.com/u/Cabbage)\
**Post date:** [August 21, 2001, 2:00am UTC](https://boards.straightdope.com/t/pi-the-source-of-all-information/77058/32 "2001-08-21T02:00:29Z")

</div>

Not only that, but there _is_ an algorithm that will compute the nth decimal digit of pi (or in any other base):

[http://www.lacim.uqam.ca/plouffe/Simon/articlepi.html](http://www.lacim.uqam.ca/plouffe/Simon/articlepi.html)

[Previous page](https://boards.straightdope.com/t/pi-the-source-of-all-information/77058.md?page=1)
