πKNOWS Blog

Does pi contain every number? What 10 billion digits show

Does pi contain every number? Probably, but nobody has proved it. Here is what mathematicians know, and what the first 10 billion digits of pi show.

The digits of pi as colors, with six nines in a row at position 762, the Feynman point
The first digits of pi, one color per digit. Six nines in a row start at position 762, a spot known as the Feynman point.

What is proven about pi

Pi never ends and never repeats. Johann Heinrich Lambert proved that it is irrational in the 1760s, and Ferdinand von Lindemann proved in 1882 that it is transcendental: it is not the root of any polynomial with whole number coefficients.

Neither fact puts every number in pi. The number 0.101001000100001… never ends and never repeats either, yet it never contains a single 2.

What would make it true: normal numbers

Mathematicians call a number normal when every string of digits appears as often as chance predicts: each digit once in every 10, each pair once in every 100, and so on. A normal number contains every finite string of digits, infinitely many times.

Émile Borel showed in 1909 that almost every real number is normal. For pi, as for √2 and e, nobody has a proof.

What the first 10 billion digits of pi show

The first 10,000,000,000 digits look the way a normal number should. Each digit makes up 10% of them, to within 0.0007%. Chance alone typically moves a count about 30,000 away from one billion. The largest gap, for the digit 4, is 62,312, about twice that, which is ordinary among ten digits:

How far each digit's count is from exactly one billionA tenth of 10,000,000,000 is 1,000,000,000. The band is 30,000 either side: how far chance alone typically moves a count.
In piTypical chance wobble
−60−300+30+60count minus one billion, in thousandsDigit 0: 999,967,995 times, 32,005 fewer than one billion.0Digit 1: 1,000,037,790 times, 37,790 more than one billion.1Digit 2: 1,000,017,271 times, 17,271 more than one billion.2Digit 3: 999,976,483 times, 23,517 fewer than one billion.3Digit 4: 999,937,688 times, 62,312 fewer than one billion.4Digit 5: 1,000,007,928 times, 7,928 more than one billion.5Digit 6: 999,985,731 times, 14,269 fewer than one billion.6Digit 7: 1,000,041,330 times, 41,330 more than one billion.7Digit 8: 999,991,772 times, 8,228 fewer than one billion.8Digit 9: 1,000,036,012 times, 36,012 more than one billion.9digit
DigitCountShare
0999,967,9959.99968%
11,000,037,79010.00038%
21,000,017,27110.00017%
3999,976,4839.99976%
4999,937,6889.99938%
51,000,007,92810.00008%
6999,985,7319.99986%
71,000,041,33010.00041%
8999,991,7729.99992%
91,000,036,01210.00036%

Longer strings tell the same story. Every 8 digit string appears, between 50 and 165 times, and the spread of those counts sits right on the curve chance predicts:

How often each 8 digit string appearsAll 100,000,000 strings from 00000000 to 99999999, counted in the first 10 billion digits of pi, two counts to a bar.
In piChance predicts
02468millions of strings50 or 51 times: 4 strings. Chance predicts 4.52 or 53 times: 14 strings. Chance predicts 13.54 or 55 times: 45 strings. Chance predicts 45.56 or 57 times: 144 strings. Chance predicts 144.58 or 59 times: 400 strings. Chance predicts 427.60 or 61 times: 1,168 strings. Chance predicts 1,180.62 or 63 times: 3,108 strings. Chance predicts 3,058.64 or 65 times: 7,520 strings. Chance predicts 7,442.66 or 67 times: 16,905 strings. Chance predicts 17,034.68 or 69 times: 36,788 strings. Chance predicts 36,739.70 or 71 times: 74,562 strings. Chance predicts 74,797.72 or 73 times: 144,028 strings. Chance predicts 143,972.74 or 75 times: 262,757 strings. Chance predicts 262,409.76 or 77 times: 453,815 strings. Chance predicts 453,533.78 or 79 times: 742,942 strings. Chance predicts 744,333.80 or 81 times: 1,161,424 strings. Chance predicts 1,161,496.82 or 83 times: 1,725,904 strings. Chance predicts 1,725,433.84 or 85 times: 2,442,969 strings. Chance predicts 2,442,984.86 or 87 times: 3,303,086 strings. Chance predicts 3,300,447.88 or 89 times: 4,257,861 strings. Chance predicts 4,259,124.90 or 91 times: 5,256,328 strings. Chance predicts 5,255,427.92 or 93 times: 6,202,074 strings. Chance predicts 6,206,706.94 or 95 times: 7,021,206 strings. Chance predicts 7,022,423.96 or 97 times: 7,619,485 strings. Chance predicts 7,618,608.98 or 99 times: 7,932,440 strings. Chance predicts 7,932,338.100 or 101 times: 7,939,031 strings. Chance predicts 7,932,733.102 or 103 times: 7,624,010 strings. Chance predicts 7,625,800.104 or 105 times: 7,054,695 strings. Chance predicts 7,052,135.106 or 107 times: 6,280,232 strings. Chance predicts 6,278,378.108 or 109 times: 5,381,831 strings. Chance predicts 5,384,844.110 or 111 times: 4,452,238 strings. Chance predicts 4,452,395.112 or 113 times: 3,548,980 strings. Chance predicts 3,551,357.114 or 115 times: 2,734,262 strings. Chance predicts 2,734,327.116 or 117 times: 2,032,731 strings. Chance predicts 2,033,424.118 or 119 times: 1,460,088 strings. Chance predicts 1,461,448.120 or 121 times: 1,016,904 strings. Chance predicts 1,015,699.122 or 123 times: 683,443 strings. Chance predicts 682,987.124 or 125 times: 444,150 strings. Chance predicts 444,589.126 or 127 times: 280,859 strings. Chance predicts 280,303.128 or 129 times: 171,251 strings. Chance predicts 171,253.130 or 131 times: 101,662 strings. Chance predicts 101,438.132 or 133 times: 58,054 strings. Chance predicts 58,280.134 or 135 times: 32,545 strings. Chance predicts 32,493.136 or 137 times: 17,486 strings. Chance predicts 17,588.138 or 139 times: 9,340 strings. Chance predicts 9,246.140 or 141 times: 4,750 strings. Chance predicts 4,723.142 or 143 times: 2,346 strings. Chance predicts 2,345.144 or 145 times: 1,119 strings. Chance predicts 1,132.146 or 147 times: 580 strings. Chance predicts 532.148 or 149 times: 252 strings. Chance predicts 243.150 or 151 times: 106 strings. Chance predicts 108.152 or 153 times: 49 strings. Chance predicts 47.154 or 155 times: 17 strings. Chance predicts 20.156 or 157 times: 9 strings. Chance predicts 8.158 or 159 times: 2 strings. Chance predicts 3.164 or 165 times: 1 strings. Chance predicts 0.60801001201401606603576150 times41825645165 timestimes a string appears

Runs of a single digit fit chance as well. The first 10 billion digits hold eight runs of ten identical digits and none of eleven, close to the eight chance predicts. The earliest long run, six 9s at position 762, is known as the Feynman point.

Long strings need many digits

A string of n digits turns up on average once in every 10n digits. In the first 10 billion digits, all 500 random 9 digit strings we tried appear, 629 of 1,000 random 10 digit strings do, close to the 63% chance predicts, and only about 1% of 12 digit strings:

Share of random numbers found in pi, by lengthSearched in the first 10 billion digits. 8 digits: every one of the 100,000,000. 9 to 12 digits: 500, 1,000, 1,000 and 2,000 random numbers.
In piChance predicts
0%25%50%75%100%share found8 digits: 100,000,000 of 100,000,000 found (100%). Chance predicts 100.000%.100%8 digits: 100,000,000 of 100,000,000 found (100%). Chance predicts 100.000%.89 digits: 500 of 500 found (100%). Chance predicts 99.995%.100%9 digits: 500 of 500 found (100%). Chance predicts 99.995%.910 digits: 629 of 1,000 found (62.9%). Chance predicts 63.2%.62.9%10 digits: 629 of 1,000 found (62.9%). Chance predicts 63.2%.1011 digits: 105 of 1,000 found (10.5%). Chance predicts 9.5%.10.5%11 digits: 105 of 1,000 found (10.5%). Chance predicts 9.5%.1112 digits: 25 of 2,000 found (1.25%). Chance predicts 1.0%.1.25%12 digits: 25 of 2,000 found (1.25%). Chance predicts 1.0%.12digits in the number

That is why 0123456789 is not in the first 10 billion digits. It does appear at position 17,387,594,880. A 12 digit string needs around a trillion digits, and a 20 digit string about a hundred billion billion.

So is your name in pi?

If pi is normal, then yes, and so is everything that can be written with digits. Words are easy to try: reading each pair of digits as a letter, hello first appears at position 310,131, and 993 times in the first 10 billion digits. A word found by chance is not a message, though: see is there a message in pi. Dates are certain to be there: see is your birthday in pi.

Frequently asked questions

Does pi contain every number?

Nobody knows. It would if pi is a normal number, which most mathematicians believe but nobody has proved. In the first 10 billion digits, every 8 digit string appears at least 50 times.

Is pi a normal number?

It is not proven. Its first 10 billion digits look normal: each digit makes up 10% of them to within 0.0007%, and every 8 digit string appears about as often as chance predicts.

Is it enough that pi never ends and never repeats?

No. The number 0.101001000100001… never ends and never repeats, yet it contains no 2 at all. Containing every number needs more than being irrational.

Where does 0123456789 appear in pi?

Not in the first 10 billion digits. It appears at position 17,387,594,880.