# Another Pi question

**URL:** <https://boards.straightdope.com/t/another-pi-question/142608>\
**Category:** Factual Questions\
**Created:** [December 13, 2002, 8:54pm UTC](https://boards.straightdope.com/t/another-pi-question/142608 "2002-12-13T20:54:29Z")\
**Posts on this page:** 20\
**Page:** 2

<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:** [December 14, 2002, 3:19am UTC](https://boards.straightdope.com/t/another-pi-question/142608/21 "2002-12-14T03:19:13Z")

</div>

> [@](#):
>
> \*Originally posted by Jabba \*  
> \*\*Indeed, we know that almost all real numbers are normal. However, we know that  
> 0.12345678910111213…  
> is normal, though the proof is harder than one might suspect. \*\*

I believe that we don’t know that to be normal in every base, just base 10. But I could be wrong.

---

<div class="post-metadata">

**Author:** ![BioHazard](https://avatars.discourse-cdn.com/v4/letter/b/3bc359/32.png) [@BioHazard](https://boards.straightdope.com/u/BioHazard)\
**Post date:** [December 14, 2002, 3:20am UTC](https://boards.straightdope.com/t/another-pi-question/142608/22 "2002-12-14T03:20:36Z")

</div>

Whats the chance of the sequence: 020915080126011804 showing up in pi?

---

<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:** [December 14, 2002, 3:30am UTC](https://boards.straightdope.com/t/another-pi-question/142608/23 "2002-12-14T03:30:07Z")

</div>

> [@](#):
>
> \*Originally posted by Jabba \*  
> \*\*Indeed, we know that almost all real numbers are normal. However, we know that  
> 0.12345678910111213…  
> is normal, though the proof is harder than one might suspect. \*\*

I believe that we don’t know that to be normal in every base, just base 10. But I could be wrong.

---

<div class="post-metadata">

**Author:** ![Desmostylus](https://avatars.discourse-cdn.com/v4/letter/d/c57346/32.png) [@Desmostylus](https://boards.straightdope.com/u/Desmostylus)\
**Post date:** [December 14, 2002, 3:45am UTC](https://boards.straightdope.com/t/another-pi-question/142608/24 "2002-12-14T03:45:08Z")

</div>

Keep looking, **BioHazard** , your name’s in there somewhere.

---

<div class="post-metadata">

**Author:** ![Achernar](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@Achernar](https://boards.straightdope.com/u/Achernar)\
**Post date:** [December 14, 2002, 3:47am UTC](https://boards.straightdope.com/t/another-pi-question/142608/25 "2002-12-14T03:47:15Z")

</div>

> [@](#):
>
> \*Originally posted by BioHazard \*  
> Whats the chance of the sequence: 020915080126011804 showing up in pi?

As I understand it, every sequence shows up in pi. Some people have asked if this can be used to compress messages - just tell someone where in the expression of pi your message is. However, it would be no good, because in general, the first time a sequence N shows up is later than the Nth digit. So the position indicator would be bigger than the original message itself.

---

<div class="post-metadata">

**Author:** ![DarrenS](https://avatars.discourse-cdn.com/v4/letter/d/977dab/32.png) [@DarrenS](https://boards.straightdope.com/u/DarrenS)\
**Post date:** [December 14, 2002, 8:18am UTC](https://boards.straightdope.com/t/another-pi-question/142608/26 "2002-12-14T08:18:11Z")

</div>

> [@](#):
>
> \*Originally posted by Mangetout \*  
> \*\*The idea is mentioned in Carl Sagan’s novel _Contact_; the unknown, long-gone, all-powerful aliens who created the transit system also manipulated the universe in such a way as to leave a message encoded in the decimal digits of pi. \*\*

That was nice of them - they left a message specially for us creatures with 10 fingers. While pi may be universal, and natural, the base 10 number system is arbitrary. Or did they encode a message for each possible number base? I know, it’s only a book 🙂

Hehe, I just noticed that smilies still show even in a spoiler tag - and when you select the happy smiley it turns into a frown.

---

<div class="post-metadata">

**Author:** ![jcgmoi](https://avatars.discourse-cdn.com/v4/letter/j/a9adbd/32.png) [@jcgmoi](https://boards.straightdope.com/u/jcgmoi)\
**Post date:** [December 14, 2002, 1:00pm UTC](https://boards.straightdope.com/t/another-pi-question/142608/27 "2002-12-14T13:00:20Z")

</div>

I hear you BioHazard.

Here’s a 1998 popular article on the Borwein-Plouffe Algorithm:  
[http://www.maa.org/mathland/mathtrek\_3\_2\_98.html](http://www.maa.org/mathland/mathtrek_3_2_98.html)

A more technical discussion:  
[http://www-2.cs.cmu.edu/~adamchik/articles/pi/pi.htm](http://www-2.cs.cmu.edu/~adamchik/articles/pi/pi.htm)

And another:  
[http://numbers.computation.free.fr/Constants/Algorithms/nthdigit.html](http://numbers.computation.free.fr/Constants/Algorithms/nthdigit.html)

It is possible to compute the nth decimal digit of pi but not with the same efficiency as Bailey-Borwin-Plouffe.

Off topic, but pi has now been calculated to more than 1 trillion decimal digits; actually, 1,241,100,000 digits.  
[http://www.maa.org/mathland/mathtrek\_3\_2\_98.html](http://www.maa.org/mathland/mathtrek_3_2_98.html)

---

<div class="post-metadata">

**Author:** ![Shalmanese](https://avatars.discourse-cdn.com/v4/letter/s/45deac/32.png) [@Shalmanese](https://boards.straightdope.com/u/Shalmanese)\
**Post date:** [December 14, 2002, 1:25pm UTC](https://boards.straightdope.com/t/another-pi-question/142608/28 "2002-12-14T13:25:01Z")

</div>

I think pi is random in the sense that it passes all known randomness tests.

---

<div class="post-metadata">

**Author:** ![ftg](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/ftg/32/2801_2.png) [@ftg](https://boards.straightdope.com/u/ftg)\
**Post date:** [December 14, 2002, 5:20pm UTC](https://boards.straightdope.com/t/another-pi-question/142608/29 "2002-12-14T17:20:11Z")

</div>

> [@](#):
>
> \*Originally posted by Shalmanese \*  
> I think pi is random in the sense that it passes all known randomness tests.

One of the most widely used definitions of “random” is based on Kolomogorov complexity: The size of the program to generate the string. Since you can generate huge number of digits of Pi using a tiny program, Pi is _most definitely **not** random_ using this test.

Virtually any Computer Scientist will describe Pi as very nonrandom.

---

<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:** [December 14, 2002, 8:33pm UTC](https://boards.straightdope.com/t/another-pi-question/142608/30 "2002-12-14T20:33:59Z")

</div>

> [@](#):
>
> \*Originally posted by ftg \*  
> \*\*One of the most widely used definitions of “random” is based on Kolomogorov complexity: The size of the program to generate the string. Since you can generate huge number of digits of Pi using a tiny program, Pi is _most definitely **not** random_ using this test.
> 
> Virtually any Computer Scientist will describe Pi as very nonrandom. \*\*

But [symbol]p[/symbol] probably would pass statistical randomness tests, which is probably what **Shalmanese** had in mind.

---

<div class="post-metadata">

**Author:** ![Mangetout](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/mangetout/32/19_2.png) [@Mangetout](https://boards.straightdope.com/u/Mangetout)\
**Post date:** [December 14, 2002, 9:46pm UTC](https://boards.straightdope.com/t/another-pi-question/142608/31 "2002-12-14T21:46:08Z")

</div>

> [@](#):
>
> \*Originally posted by DarrenS \*  
> **That was nice of them - they left a message specially for us creatures with 10 fingers. While pi may be universal, and natural, the base 10 number system is arbitrary. Or did they encode a message for each possible number base? I know, it’s only a book 🙂**

Good point; As far as I recall it’s not specifically mentioned, but if they were advanced enough to actually bend the _universe_ in such a way as to modify a constant, I think we could assume that they would have engineered a certain degree of universality in the message.

---

<div class="post-metadata">

**Author:** ![Wikkit](https://avatars.discourse-cdn.com/v4/letter/w/c0e974/32.png) [@Wikkit](https://boards.straightdope.com/u/Wikkit)\
**Post date:** [December 14, 2002, 9:56pm UTC](https://boards.straightdope.com/t/another-pi-question/142608/32 "2002-12-14T21:56:55Z")

</div>

> [@](#):
>
> \*Originally posted by Hari Seldon \*
> 
> ```auto
> 
> n + 1
> -----------------------------
> m + 1
> ------------------------
> p + 1
> -------------------
> q + . 
> .
> .
> 
> ```

---

<div class="post-metadata">

**Author:** ![knock\_knock](https://avatars.discourse-cdn.com/v4/letter/k/22d042/32.png) [@knock\_knock](https://boards.straightdope.com/u/knock_knock)\
**Post date:** [December 14, 2002, 10:16pm UTC](https://boards.straightdope.com/t/another-pi-question/142608/33 "2002-12-14T22:16:01Z")

</div>

Some people already made the point that “patterned” does not mean “rational,” with the example 0.12345678910111213… Even a transcendental number can be patterned. For instance,  
[symbol]S[/symbol][sub]k=1[/sub][sup]infinity[/sup] 10[sup]-(k!)[/sup] =0.1100010000000000000000010… is [transcendental](http://hades.ph.tn.tudelft.nl/Internal/PHServices/Documentation/MathWorld/math/math/l/l328.htm) but has a visible pattern.

Pi, as far as anybody knows, is random based on any statistical test or visible pattern in the digits, though it can be computed by fairly simple programs.

---

<div class="post-metadata">

**Author:** ![BioHazard](https://avatars.discourse-cdn.com/v4/letter/b/3bc359/32.png) [@BioHazard](https://boards.straightdope.com/u/BioHazard)\
**Post date:** [December 15, 2002, 4:57pm UTC](https://boards.straightdope.com/t/another-pi-question/142608/34 "2002-12-15T16:57:46Z")

</div>

> [@](#):
>
> \*Originally posted by DarrenS \*  
> \*\*That was nice of them - they left a message specially for us creatures with 10 fingers. While pi may be universal, and natural, the base 10 number system is arbitrary. Or did they encode a message for each possible number base? I know, it’s only a book 🙂
> 
> Hehe, I just noticed that smilies still show even in a spoiler tag - and when you select the happy smiley it turns into a frown. \*\*

This spoiler thing is really cool. Actually Im pretty sure that it was not base 10 that she was using as she searched through pi. I think it was base 12. Im not sure. So the proof mentioned in Contact was irrelevent because any sequence imaginable is in there? Terry pratchet wrote a book based around what Sagan was hinting at, a long time before Sagan did. The book called Strata.

A happy smiley 🙂 when I select it turns into an evil smiley when I select it.

---

<div class="post-metadata">

**Author:** ![Shalmanese](https://avatars.discourse-cdn.com/v4/letter/s/45deac/32.png) [@Shalmanese](https://boards.straightdope.com/u/Shalmanese)\
**Post date:** [December 22, 2002, 4:58pm UTC](https://boards.straightdope.com/t/another-pi-question/142608/35 "2002-12-22T16:58:45Z")

</div>

Base 11 actually. Although I hardly see why somebody knowing this particular fact would ruin their reading of the story.

---

<div class="post-metadata">

**Author:** ![BrandonR](https://avatars.discourse-cdn.com/v4/letter/b/779978/32.png) [@BrandonR](https://boards.straightdope.com/u/BrandonR)\
**Post date:** [December 22, 2002, 5:07pm UTC](https://boards.straightdope.com/t/another-pi-question/142608/36 "2002-12-22T17:07:17Z")

</div>

Let’s say someone DID find a pattern to pi or some other universal “mystery” if you will… Most people say that person would be rich, but how? Who would pay him for that information? And how WOULD you get payed? Would you just walk up to Universities or companies and tell them you discovered \_\_\_\_\_\_ and they need to pay you to tell them?

---

<div class="post-metadata">

**Author:** ![ozziemaland](https://avatars.discourse-cdn.com/v4/letter/o/f07891/32.png) [@ozziemaland](https://boards.straightdope.com/u/ozziemaland)\
**Post date:** [December 22, 2002, 7:06pm UTC](https://boards.straightdope.com/t/another-pi-question/142608/37 "2002-12-22T19:06:13Z")

</div>

\>Let’s say someone DID find a pattern to pi

The New Yorker profiled the work of the Chudnovsky brothers, back in the early '90s IIRC, and the article stressed the wave-like patterns that were found when the repetitions of the digits were plotted graphically; much like waves of the oceans.

---

<div class="post-metadata">

**Author:** ![Scott\_Dickerson](https://avatars.discourse-cdn.com/v4/letter/s/f04885/32.png) [@Scott\_Dickerson](https://boards.straightdope.com/u/Scott_Dickerson)\
**Post date:** [December 22, 2002, 7:19pm UTC](https://boards.straightdope.com/t/another-pi-question/142608/38 "2002-12-22T19:19:10Z")

</div>

1. The motive behind the OP may be: what if some sort of analysis allowed one to actually “decipher” the decimal expansion of Pi, in such a way that it was found to contain an endless number of messages, not only in all languages known but in all POSSIBLE languages, with a content that was, in crucial respects, mutually consistent? (Maybe this is the idea in the Sagan novel; I’m also reminded of a Star Trek TNG episode in which ancient aliens encoded a video greeting in the DNA structure of all galactic life-forms). If someone insists on an evidentiary “proof of the existence of God,” it’s hard to imagine a better one.

But that’s just a speculation as to the OP’s motive.

1. This distribution of prime numbers along the number line is also said to be “random” by our high school math teachers. But it turns out to have what I think is termed “order of the second degree.” Imagine creating a string of beads: black beads for nonprimes, white beads for primes, each representing an integer and ordered from one to N (N has to be fairly large). Make the first bead the centerpoint, and wrap the string compactly about that point in an outward-going spiral–creating a disk of beads, so to speak. If you have good eyesight, you will now see that the white beads form a very obvious pattern, rather like a poppy. If I’m interpreting this correctly: you cannot predict where the next prime will be, but you can assign varying degrees of probability to its appearance.

My point being–I wonder if some version of the “bead test” would reveal a VISUAL form in the expansion of Pi. Would any of you folks care to perform this test and report the results here?

Now that my juices are flowing…start with the first digit of the expansion of Pi (“1”) and pretend that as you go to the right, you are actually going left, in terms of decimal values. Ie, an unending string that begins 14159265358979323…etc. Now perform the bead test on that number (the rule is that you never have a lesser number after a greater, and you never jump to, for instance, three-digit numbers until you have exhausted the two-digit ones per the preceding clause). So the first few are:  
1  
4  
15  
92  
653  
5897  
What will the bead test show regarding the distribution of primes in this series? Anything visually interesting?

---

<div class="post-metadata">

**Author:** ![BioHazard](https://avatars.discourse-cdn.com/v4/letter/b/3bc359/32.png) [@BioHazard](https://boards.straightdope.com/u/BioHazard)\
**Post date:** [December 22, 2002, 9:26pm UTC](https://boards.straightdope.com/t/another-pi-question/142608/39 "2002-12-22T21:26:11Z")

</div>

I really like that idea, Scott. Someone try it? IANAProgrammer but I do think it would be relativly easy to make a program to do that. It would need to use the pi decimal finding algorithm as a base.

As for my OP, I was thinking more along the lines of Sagan’s book, Contact, with the “evidence” being proof of something greater than us.

---

<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:** [December 22, 2002, 9:54pm UTC](https://boards.straightdope.com/t/another-pi-question/142608/40 "2002-12-22T21:54:06Z")

</div>

> [@](#):
>
> \*Originally posted by Scott Dickerson \*  
> \*\*1) The motive behind the OP may be: what if some sort of analysis allowed one to actually “decipher” the decimal expansion of Pi, in such a way that it was found to contain an endless number of messages, not only in all languages known but in all POSSIBLE languages, with a content that was, in crucial respects, mutually consistent? (Maybe this is the idea in the Sagan novel; I’m also reminded of a Star Trek TNG episode in which ancient aliens encoded a video greeting in the DNA structure of all galactic life-forms). If someone insists on an evidentiary “proof of the existence of God,” it’s hard to imagine a better one.
> 
> But that’s just a speculation as to the OP’s motive.\*\*

If [symbol]p[/symbol] is absolutely normal, then it all is in there at some point. If not, 1415 can be made to represent anything you like by means of a suitable decoder. 😉

\*\*

> [@](#):
>
> 1. This distribution of prime numbers along the number line is also said to be “random” by our high school math teachers. But it turns out to have what I think is termed “order of the second degree.” Imagine creating a string of beads: black beads for nonprimes, white beads for primes, each representing an integer and ordered from one to N (N has to be fairly large). Make the first bead the centerpoint, and wrap the string compactly about that point in an outward-going spiral–creating a disk of beads, so to speak. If you have good eyesight, you will now see that the white beads form a very obvious pattern, rather like a poppy. If I’m interpreting this correctly: you cannot predict where the next prime will be, but you can assign varying degrees of probability to its appearance.
> 
> My point being–I wonder if some version of the “bead test” would reveal a VISUAL form in the expansion of Pi. Would any of you folks care to perform this test and report the results here?
> 
> Now that my juices are flowing…start with the first digit of the expansion of Pi (“1”) and pretend that as you go to the right, you are actually going left, in terms of decimal values. Ie, an unending string that begins 14159265358979323…etc. Now perform the bead test on that number (the rule is that you never have a lesser number after a greater, and you never jump to, for instance, three-digit numbers until you have exhausted the two-digit ones per the preceding clause). So the first few are:  
> 1  
> 4  
> 15  
> 92  
> 653  
> 5897  
> What will the bead test show regarding the distribution of primes in this series? Anything visually interesting? \*\*

Again, if [symbol]p[/symbol] is absolutely normal, no large-scale pattern will emerge. If not, who knows?

[Previous page](https://boards.straightdope.com/t/another-pi-question/142608.md?page=1)

[Next page](https://boards.straightdope.com/t/another-pi-question/142608.md?page=3)
