login
A369598
In the decimal expansion of Pi, positions of ends of sublists each containing decimal digits 0 through 9 in order. Leftmost digit "3" is at position 0.
1
122, 247, 328, 433, 482, 553, 636, 762, 894, 1027, 1143, 1228, 1416, 1519, 1677, 1760, 1859, 1963, 2127, 2285, 2324, 2423, 2557, 2630, 2736, 2817, 2896, 2983, 3049, 3167, 3267, 3369, 3463, 3562, 3670, 3774, 3881, 4036, 4125, 4212, 4269, 4379, 4434, 4532, 4632
OFFSET
1,1
LINKS
Michael S. Branicky, Table of n, a(n) for n = 1..10000 (terms 1..194 from James S. DeArmon)
EXAMPLE
Scanning from the leftmost digit "3" at position 0, the first "0" is at position 32, followed by "1" at position 37, ..., followed by "9" at position 122. The first term of the sequence is thus 122. The next "0" is at position 128, etc.
PROG
(Python)
from sympy import pi
from itertools import count, islice
def agen(prec=10**5): # generator of terms to prec digits
i, digits_of_pi = -1, str(pi.n(prec+5))[1:-1]
while True:
for d in "0123456789":
i = digits_of_pi.find(d, i+1)
if i == -1: print("Increase precision"); return
if d == "9": yield i
print(list(islice(agen(), 45))) # Michael S. Branicky, Apr 10 2024
CROSSREFS
Sequence in context: A304605 A158131 A004925 * A276303 A224598 A070955
KEYWORD
nonn,base
AUTHOR
James S. DeArmon, Mar 30 2024
STATUS
approved