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
KEYWORD
nonn,base
AUTHOR
James S. DeArmon, Mar 30 2024
STATUS
approved