The OEIS is supported by the many generous donors to the OEIS Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A153226 Numbers k such that the string k modulo 1000 is found at position k in the decimal digits of Pi. 1
 1, 1005, 1053, 1255, 2006, 2025, 2246, 2560, 3712, 4063, 4066, 4087, 5006, 5009, 5038, 5068, 5076, 5538, 6000, 6025, 6045, 7007, 7025, 7037, 8068, 8960, 9009, 9052, 10007, 10823, 11003, 11005, 12000, 12003, 12134, 12639, 14009, 14207, 14326, 14944, 15052, 16000 (list; graph; refs; listen; history; text; internal format)
 OFFSET 1,2 LINKS Michael S. Branicky, Table of n, a(n) for n = 1..10000 EXAMPLE a(4) = 1255 because 255 occurs at offset 1255 after the decimal in the digits of Pi. PROG (Python) from sympy import S # download https://stuff.mit.edu/afs/sipb/contrib/pi/pi-billion.txt, then #with open('pi-billion.txt', 'r') as f: pi_digits = f.readline() pi_digits = str(S.Pi.n(3*10**5+2))[:-2] # alternative to above pi_digits = pi_digits.replace(".", "") def ispal(s): return s == s[::-1] def agen(): for k in range(len(pi_digits)): sk = str(k%1000) if sk == pi_digits[k:k+len(sk)]: yield k g = agen() print([next(g) for n in range(1, 43)]) # Michael S. Branicky, Jan 30 2022 CROSSREFS Cf. A000796, A057679, A057680, A109513, A109514. Sequence in context: A182935 A350692 A013686 * A202147 A252417 A067918 Adjacent sequences: A153223 A153224 A153225 * A153227 A153228 A153229 KEYWORD base,nonn AUTHOR Gil Broussard, Dec 21 2008 EXTENSIONS a(40) and beyond from Michael S. Branicky, Jan 30 2022 STATUS approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

Last modified June 2 11:12 EDT 2023. Contains 363097 sequences. (Running on oeis4.)