A276992 First 2-digit number to appear n times in the decimal expansion of Pi.
31, 26, 93, 62, 82, 28, 28, 28, 48, 48, 48, 48, 48, 9, 9, 81, 17, 17, 95, 95, 95, 95, 95, 95, 95, 19, 21, 21, 21, 19, 95, 9, 9, 9, 95, 46, 95, 59, 9, 9, 9, 95, 95, 95, 95, 59, 59, 59, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 14, 14, 14, 9, 9, 9, 9, 14, 9, 9
Offset: 1
Examples
a(2) = 26 because 26 is the first 2-digit number to appear 2 times in the decimal expansion of Pi = 3.14159(26)5358979323846(26)... a(14) = 9 because "09" is the first 2-digit number to appear 14 times in the decimal expansion of Pi.
References
- William Feller, An Introduction to Probability Theory and Its Applications, Vol. I, Chapter III, Wiley, 3rd Ed., Corrected printing 1970.
Links
- Alois P. Heinz, Table of n, a(n) for n = 1..10000
Programs
-
Mathematica
spi = ToString[Floor[10^100000 Pi]]; f[n_] := Block[{k = 2}, While[Length@ StringPosition[ StringTake[spi, k], StringTake[spi, {k - 1, k}]] != n, k++]; ToExpression@ StringTake[spi, {k - 1, k}]]; Apply[f, 72] (* Robert G. Wilson v, Oct 05 2016 *)
Extensions
a(21)-a(40) from Bobby Jacobs, Oct 01 2016
More terms from Alois P. Heinz, Oct 02 2016
Comments