login
A260627
Largest n-digit number missing in first 10^n digits after the decimal point in expansion of Pi.
2
8, 96, 997, 9997, 99997, 999997, 9999997, 99999992, 999999998
OFFSET
1,1
COMMENTS
Analogous to A228988.
EXAMPLE
In the first 10^1 digits of Pi after the decimal (1415926535), the digits 0, 7 and 8 do not appear. 8 is the largest.
In the first 10^2 digits of Pi after the decimal, the terms 12, 13, 18, ... 90, 91, 96 do not appear. 96 is the largest.
MATHEMATICA
Do[With[{r=ToString[FromDigits[Rest[RealDigits[Pi, 10, 10^k][[1]]]]]}, Do[If[StringPosition[r, ToString[n]]=={}, Print[n]; k=k+1; Break[]], {n, 10^k-1, 10^(k-1), -1}]], {k, 6}] (* Jinyuan Wang, Mar 26 2020 *)
PROG
(Python)
with open("pi-billion.txt", "r") as f:
for a in range(1, 10):
g = f.read(10**a)
for x in reversed(range((10**a)-50, (10**a)-1)):
if g.find(str(x)) == -1:
print(a, x)
break
# David Consiglio, Jr., Nov 11 2015
# using the file http://stuff.mit.edu/afs/sipb/contrib/pi/pi-billion.txt
CROSSREFS
Sequence in context: A211345 A060458 A173834 * A098430 A365847 A369538
KEYWORD
nonn,base,more
AUTHOR
STATUS
approved