# What texts or images have we found in pi?

**URL:** <https://boards.straightdope.com/t/what-texts-or-images-have-we-found-in-pi/689378>\
**Category:** Factual Questions\
**Created:** [May 27, 2014, 3:45pm UTC](https://boards.straightdope.com/t/what-texts-or-images-have-we-found-in-pi/689378 "2014-05-27T15:45:36Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![cmyk](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/cmyk/32/3353_2.png) [@cmyk](https://boards.straightdope.com/u/cmyk)\
**Post date:** [May 27, 2014, 3:45pm UTC](https://boards.straightdope.com/t/what-texts-or-images-have-we-found-in-pi/689378/1 "2014-05-27T15:45:36Z")

</div>

That is, being a normalized random string of infinite digits, if one converted the string to binary, ascii, or what have you, as the myth goes: If you search long enough you can find the complete works of Shakespeare, an image of the Titanic as it’s sinking, the movie π encoded in h264, plans to build a nuke, images of life on another planet, or even the equations of the grand unified theory, etc.

But, of course, you’d need to know what to look for, and might need next to an infinite amount of time, as well as weed through an infinite amount of gibberish. Despite that, has anybody attempted to find something—anything—even if it just be the words, “Never tell me the odds.” or this emoticon: 🙂 ?

mmmm… pi…

---

<div class="post-metadata">

**Author:** ![Exapno\_Mapcase](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/exapno_mapcase/32/1051_2.png) [@Exapno\_Mapcase](https://boards.straightdope.com/u/Exapno_Mapcase)\
**Post date:** [May 27, 2014, 4:34pm UTC](https://boards.straightdope.com/t/what-texts-or-images-have-we-found-in-pi/689378/2 "2014-05-27T16:34:33Z")

</div>

The obligatory nitpick.

Pi is assumed to be normal, but has not yet been shown so.

We’ve never found a text in pi, although you can certainly find certain words if you assume various coding procedures.

---

<div class="post-metadata">

**Author:** ![Chronos](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/chronos/32/134_2.png) [@Chronos](https://boards.straightdope.com/u/Chronos)\
**Post date:** [May 27, 2014, 4:34pm UTC](https://boards.straightdope.com/t/what-texts-or-images-have-we-found-in-pi/689378/3 "2014-05-27T16:34:47Z")

</div>

On average, for a search string of length n bits, you’d expect to have to look through something on the order of 2^n bits of pi before you found it (though of course, you might find it earlier or later). The string “Never tell me the odds.”, assuming ASCII encoding, would be 184 bits, meaning you’d need 2^184 bits of pi, or 2.5e55, to have a reasonable expectation of finding it. Nobody’s searched anywhere remotely near that far, so I highly doubt that that string has ever been found. On the other hand, “:)” is only 16 bits (again, assuming ASCII encoding, and also assuming that we want the characters and not the image), so you’d expect to find it somewhere in the first 66000 or so digits, more or less. That much, people have done, so the smiley face probably has been found.

---

<div class="post-metadata">

**Author:** ![EdwardLost](https://avatars.discourse-cdn.com/v4/letter/e/bbe5ce/32.png) [@EdwardLost](https://boards.straightdope.com/u/EdwardLost)\
**Post date:** [May 27, 2014, 5:12pm UTC](https://boards.straightdope.com/t/what-texts-or-images-have-we-found-in-pi/689378/4 "2014-05-27T17:12:51Z")

</div>

Sounds like this could be the basis for a hobby: The Pi Searchers Club. You try out different coding schemes and, when you find something interesting, you share it online. Maybe “disco sucks” or a 16-pixel portrait of Abraham Lincoln.

---

<div class="post-metadata">

**Author:** ![Exapno\_Mapcase](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/exapno_mapcase/32/1051_2.png) [@Exapno\_Mapcase](https://boards.straightdope.com/u/Exapno_Mapcase)\
**Post date:** [May 27, 2014, 5:21pm UTC](https://boards.straightdope.com/t/what-texts-or-images-have-we-found-in-pi/689378/5 "2014-05-27T17:21:26Z")

</div>

> [@Chronos](#):
>
> On average, for a search string of length n bits, you’d expect to have to look through something on the order of 2^n bits of pi before you found it (though of course, you might find it earlier or later). The string “Never tell me the odds.”, assuming ASCII encoding, would be 184 bits, meaning you’d need 2^184 bits of pi, or 2.5e55, to have a reasonable expectation of finding it. Nobody’s searched anywhere remotely near that far, so I highly doubt that that string has ever been found.

I believe that those are the odds of finding that specific 184 bit phrase. It you look for any 184 bit phrase that is meaningful in English (or in any other language) then the odds grow much, much better.

---

<div class="post-metadata">

**Author:** ![Thudlow\_Boink](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/thudlow_boink/32/320_2.png) [@Thudlow\_Boink](https://boards.straightdope.com/u/Thudlow_Boink)\
**Post date:** [May 27, 2014, 5:27pm UTC](https://boards.straightdope.com/t/what-texts-or-images-have-we-found-in-pi/689378/6 "2014-05-27T17:27:41Z")

</div>

> [@Exapno\_Mapcase](#):
>
> The obligatory nitpick.
> 
> Pi is assumed to be normal, but has not yet been shown so.

Correct. I just yesterday posted this link in another thread, but it’s appropriate here: [Infinite and Non-Repeating Does Not Mean Unstructured](http://www.goodmath.org/blog/2014/05/22/infinite-and-non-repeating-does-not-mean-unstructured/).

> [@](#):
>
> Before I go into detail, let me start with one simple fact: No one knows whether or not π contains every possible finite-length sequence of digits. There is no proof that it does, and there is no proof that it does not. We don’t know. At the moment, no one does. If someone tells you for certain that it does, they’re bullshitting. If someone tell you for certain that it doesn’t,  
> they’re also bullshitting.

---

<div class="post-metadata">

**Author:** ![cmyk](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/cmyk/32/3353_2.png) [@cmyk](https://boards.straightdope.com/u/cmyk)\
**Post date:** [May 27, 2014, 5:40pm UTC](https://boards.straightdope.com/t/what-texts-or-images-have-we-found-in-pi/689378/7 "2014-05-27T17:40:46Z")

</div>

> [@Exapno\_Mapcase](#):
>
> The obligatory nitpick.
> 
> Pi is assumed to be normal, but has not yet been shown so.
> 
> We’ve never found a text in pi, although you can certainly find certain words if you assume various coding procedures.

:smack:

I knew that… I should’ve typed “assuming that it’s normal”. I guess I’m just so used to thinking of it as so.

Interesting responses so far… thanks!

---

<div class="post-metadata">

**Author:** ![cmyk](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/cmyk/32/3353_2.png) [@cmyk](https://boards.straightdope.com/u/cmyk)\
**Post date:** [May 27, 2014, 5:51pm UTC](https://boards.straightdope.com/t/what-texts-or-images-have-we-found-in-pi/689378/8 "2014-05-27T17:51:16Z")

</div>

> [@Chronos](#):
>
> On average, for a search string of length n bits, you’d expect to have to look through something on the order of 2^n bits of pi before you found it (though of course, you might find it earlier or later). The string “Never tell me the odds.”, assuming ASCII encoding, would be 184 bits, meaning you’d need 2^184 bits of pi, or 2.5e55, to have a reasonable expectation of finding it. Nobody’s searched anywhere remotely near that far, so I highly doubt that that string has ever been found. On the other hand, “:)” is only 16 bits (again, assuming ASCII encoding, and also assuming that we want the characters and not the image), so you’d expect to find it somewhere in the first 66000 or so digits, more or less. That much, people have done, so the smiley face probably has been found.

Assuming there’s tools on the net that have pi converted to ASCII, let’s do it! 66-thousand digits doesn’t seem like it’d take long at all to search. Hell, a million should be a breeze, no?

Anyone want to take a crack at finding the ASCII encoded characters for this .gif 🙂 in pi?

---

<div class="post-metadata">

**Author:** ![Half\_Man\_Half\_Wit](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/half_man_half_wit/32/21766_2.png) [@Half\_Man\_Half\_Wit](https://boards.straightdope.com/u/Half_Man_Half_Wit)\
**Post date:** [May 27, 2014, 6:03pm UTC](https://boards.straightdope.com/t/what-texts-or-images-have-we-found-in-pi/689378/9 "2014-05-27T18:03:51Z")

</div>

The problem is that whatever coding scheme you use is going to be arbitrary—you could use one in which “[noparse]:)[/noparse]” maps to “14”, then it’s right there in the beginning. (Nevertheless, what **Chronos** says remains true, statistically, for any appropriate—say, Shannon-Fano—code.)

---

<div class="post-metadata">

**Author:** ![Omar\_Little](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/omar_little/32/269_2.png) [@Omar\_Little](https://boards.straightdope.com/u/Omar_Little)\
**Post date:** [May 27, 2014, 6:19pm UTC](https://boards.straightdope.com/t/what-texts-or-images-have-we-found-in-pi/689378/10 "2014-05-27T18:19:44Z")

</div>

I remember reading about this phenomena in a scientific research magazine while waiting in a doctor’s office a few years back. The researchers, mainly graduate students from MIT, I think, had discovered bit string that translated into an image that eerily resembled Richard Nixon. Here’s a link to the image: [LINK](https://www.youtube.com/watch?v=dQw4w9WgXcQ).

---

<div class="post-metadata">

**Author:** ![GargoyleWB](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/gargoylewb/32/199_2.png) [@GargoyleWB](https://boards.straightdope.com/u/GargoyleWB)\
**Post date:** [May 27, 2014, 6:22pm UTC](https://boards.straightdope.com/t/what-texts-or-images-have-we-found-in-pi/689378/11 "2014-05-27T18:22:58Z")

</div>

Here are the results of the obligatory “5318008” from [The Pi Search](http://pi.nersc.gov/) page…

Pi-Search Result:

search string = “5318008”  
28-bit binary equivalent = 0101001100011000000000001000

search string found at binary index = **2729541692**  
binary pi : 1100100001010011000110000000000010000010000101111111110011111110  
binary string: 0101001100011000000000001000  
hex pi : 4d3f224e5763dfd833a3fc85318008217fcfe5503a4a1545  
hex string: 5318008

---

<div class="post-metadata">

**Author:** ![cmyk](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/cmyk/32/3353_2.png) [@cmyk](https://boards.straightdope.com/u/cmyk)\
**Post date:** [May 27, 2014, 6:27pm UTC](https://boards.straightdope.com/t/what-texts-or-images-have-we-found-in-pi/689378/12 "2014-05-27T18:27:44Z")

</div>

> [@Half\_Man\_Half\_Wit](#):
>
> The problem is that whatever coding scheme you use is going to be arbitrary—you could use one in which “[noparse]:)[/noparse]” maps to “14”, then it’s right there in the beginning. (Nevertheless, what **Chronos** says remains true, statistically, for any appropriate—say, Shannon-Fano—code.)

Why not just convert the gif image to its binary form, then search for that string?

---

<div class="post-metadata">

**Author:** ![cmyk](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/cmyk/32/3353_2.png) [@cmyk](https://boards.straightdope.com/u/cmyk)\
**Post date:** [May 27, 2014, 6:30pm UTC](https://boards.straightdope.com/t/what-texts-or-images-have-we-found-in-pi/689378/13 "2014-05-27T18:30:18Z")

</div>

> [@Omar\_Little](#):
>
> I remember reading about this phenomena in a scientific research magazine while waiting in a doctor’s office a few years back. The researchers, mainly graduate students from MIT, I think, had discovered bit string that translated into an image that eerily resembled Richard Nixon. Here’s a link to the image: [LINK](https://www.youtube.com/watch?v=dQw4w9WgXcQ).

🙂

---

<div class="post-metadata">

**Author:** ![robert\_columbia](https://avatars.discourse-cdn.com/v4/letter/r/e79b87/32.png) [@robert\_columbia](https://boards.straightdope.com/u/robert_columbia)\
**Post date:** [May 27, 2014, 6:35pm UTC](https://boards.straightdope.com/t/what-texts-or-images-have-we-found-in-pi/689378/14 "2014-05-27T18:35:10Z")

</div>

> [@cmyk](#):
>
> 🙂

Now I want a drink, alcoholic of course, after the heavy chapters involving quantum mechanics.

---

<div class="post-metadata">

**Author:** ![Yllaria](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/yllaria/32/3452_2.png) [@Yllaria](https://boards.straightdope.com/u/Yllaria)\
**Post date:** [May 27, 2014, 7:05pm UTC](https://boards.straightdope.com/t/what-texts-or-images-have-we-found-in-pi/689378/15 "2014-05-27T19:05:25Z")

</div>

> [@GargoyleWB](#):
>
> Here are the results of the obligatory “5318008” from [The Pi Search](http://pi.nersc.gov/) page…
> 
> Pi-Search Result:
> 
> search string = “5318008”  
> 28-bit binary equivalent = 0101001100011000000000001000
> 
> search string found at binary index = **2729541692**  
> binary pi : 1100100001010011000110000000000010000010000101111111110011111110  
> binary string: 0101001100011000000000001000  
> hex pi : 4d3f224e5763dfd833a3fc85318008217fcfe5503a4a1545  
> hex string: 5318008

I’m not sure what that result means. Does it mean that the string “5318008” begins at digit 2,729,541,692 of pi? Is that including the initial 3?

---

<div class="post-metadata">

**Author:** ![hajario](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/hajario/32/171_2.png) [@hajario](https://boards.straightdope.com/u/hajario)\
**Post date:** [May 27, 2014, 7:18pm UTC](https://boards.straightdope.com/t/what-texts-or-images-have-we-found-in-pi/689378/16 "2014-05-27T19:18:22Z")

</div>

This is interesting.

Has every possible three digit sequence been found? Four?

What is the longest string of the same number consecutive? The same number however many times in a row might be where the idea that every possible sequence will come out eventually. Can we know what is the theoretical longest possible string of the same number in a consecutively?

---

<div class="post-metadata">

**Author:** ![Dr\_Doom](https://avatars.discourse-cdn.com/v4/letter/d/0ea827/32.png) [@Dr\_Doom](https://boards.straightdope.com/u/Dr_Doom)\
**Post date:** [May 27, 2014, 7:34pm UTC](https://boards.straightdope.com/t/what-texts-or-images-have-we-found-in-pi/689378/17 "2014-05-27T19:34:42Z")

</div>

> [@GargoyleWB](#):
>
> Here are the results of the obligatory “5318008” from [The Pi Search](http://pi.nersc.gov/) page…
> 
> Pi-Search Result:
> 
> search string = “5318008”  
> 28-bit binary equivalent = 0101001100011000000000001000
> 
> search string found at binary index = **2729541692**  
> binary pi : 1100100001010011000110000000000010000010000101111111110011111110  
> binary string: 0101001100011000000000001000  
> hex pi : 4d3f224e5763dfd833a3fc85318008217fcfe5503a4a1545  
> hex string: 5318008

Glad to know someone is keeping abreast of these things.

---

<div class="post-metadata">

**Author:** ![Half\_Man\_Half\_Wit](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/half_man_half_wit/32/21766_2.png) [@Half\_Man\_Half\_Wit](https://boards.straightdope.com/u/Half_Man_Half_Wit)\
**Post date:** [May 27, 2014, 7:35pm UTC](https://boards.straightdope.com/t/what-texts-or-images-have-we-found-in-pi/689378/18 "2014-05-27T19:35:08Z")

</div>

> [@cmyk](#):
>
> Why not just convert the gif image to its binary form, then search for that string?

What, other than convention, singles out the .gif format, as opposed to other formats like .jpeg, .bmp and so on? Or something else entirely?

Ultimately, that picture is just a set of pixels lighting up on a screen. How you code for that is (within the limits that make a code reasonable) entirely arbitrary. A code exists such that the first few digits of π represent the image, a code exists such that it only occurs after the umptillionth one, and so on.

---

<div class="post-metadata">

**Author:** ![Thudlow\_Boink](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/thudlow_boink/32/320_2.png) [@Thudlow\_Boink](https://boards.straightdope.com/u/Thudlow_Boink)\
**Post date:** [May 27, 2014, 7:35pm UTC](https://boards.straightdope.com/t/what-texts-or-images-have-we-found-in-pi/689378/19 "2014-05-27T19:35:49Z")

</div>

> [@hajario](#):
>
> This is interesting.
> 
> Has every possible three digit sequence been found? Four?
> 
> What is the longest string of the same number consecutive? The same number however many times in a row might be where the idea that every possible sequence will come out eventually. Can we know what is the theoretical longest possible string of the same number in a consecutively?

There is no theoretical longest possible string of the same consecutive digit. If pi is indeed normal (and maybe even if it’s not) its digits could contain consecutive sequences of _any_ particular finite length.

---

<div class="post-metadata">

**Author:** ![GargoyleWB](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/gargoylewb/32/199_2.png) [@GargoyleWB](https://boards.straightdope.com/u/GargoyleWB)\
**Post date:** [May 27, 2014, 7:38pm UTC](https://boards.straightdope.com/t/what-texts-or-images-have-we-found-in-pi/689378/20 "2014-05-27T19:38:27Z")

</div>

> [@Yllaria](#):
>
> I’m not sure what that result means. Does it mean that the string “5318008” begins at digit 2,729,541,692 of pi? Is that including the initial 3?

I believe that is what it means, but don’t know if it includes the 3. So hedge it with a “+/- 1” when showing off at a party 🙂

[Next page](https://boards.straightdope.com/t/what-texts-or-images-have-we-found-in-pi/689378.md?page=2)
