login
Union of missing numbers in first 10, 100, 1000, 10000, ... digits after the decimal point in expansion of Pi.
2

%I #25 May 29 2019 12:42:56

%S 0,7,8,12,13,18,22,24,29,31,36,47,52,54,55,56,57,60,61,63,66,68,72,73,

%T 76,77,85,87,90,91,96,103,106,107,108,114,123,124,125,126,131,135,140,

%U 143,144,149,150,154,156,157,158,161,162,163,166,167,168,175,180

%N Union of missing numbers in first 10, 100, 1000, 10000, ... digits after the decimal point in expansion of Pi.

%C Analogous to A228988 and A260627.

%H MIT Student Information Processing Board, <a href="https://stuff.mit.edu/afs/sipb/contrib/pi/">One billion (10^9) digits of pi</a>.

%e In the first 10^1 digits of Pi after the decimal (1415926535), the digits 0, 7 and 8 do not appear, so they are members of this sequence.

%e In the first 10^2 digits of Pi after the decimal, the terms 12, 13, 18, ... 90, 91, 96 do not appear, so they are members of this sequence.

%o (Python)

%o with open("newseq.txt","w") as keep:

%o ....for a in range(1, 8):

%o ........start = 0

%o ........best = 0

%o ........with open("pi-billion.txt", "r") as f:

%o ............g = f.read(10**a)

%o ............while start < 10**a:

%o ................if g.find(str(start)) == -1:

%o ....................keep.write(str(start)+"\n")

%o ....................best = start

%o ................start += 1

%o # David Consiglio, Jr., Nov 11 2015

%o # http://stuff.mit.edu/afs/sipb/contrib/pi/pi-billion.txt

%Y Cf. A228988, A260627.

%K nonn,base

%O 1,2

%A _David Consiglio, Jr._, Nov 11 2015