[seqfan] A228988

Dave Consiglio davecons at gmail.com
Mon Oct 19 16:31:39 CEST 2015


Hello all,

It seems like A228988 has a fundamental error, but I thought I'd post here
first to confer before editing the sequence directly.  Not sure I'm
understanding the description.

Shouldn't a(6) should be a 6-digit number? It is currently not.  a(7) is
not a 7-digit number either.

My search gives the following list:

(1, 0)
(2, 12)
(3, 103)
(4, 1001)
(5, 10000)
(6, 100000)
(7, 1000000)
(8, 10000001)
(9, 100000000)

Through a(9).

Code attached.  To get "pi-billion.txt" you can go to:
http://stuff.mit.edu/afs/sipb/contrib/pi/pi-billion.txt

There are two related sequences as well (e and phi: A228989 and A228990
respectively).  Are these in error as well?

Thanks,
Dave Consiglio
-------------- next part --------------
for a in range(1,10):
    search = range(10**(a-1),10**a)
    with open("pi-billion.txt","r") as f:
        g = f.read(10**a)
        if a == 1:
            search.insert(0,0)
        for x in search:
            mm = g.find(str(x))
            if mm == -1:
                print(a,x)
                break


More information about the SeqFan mailing list