cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A153226 Numbers k such that the string k modulo 1000 is found at position k in the decimal digits of Pi.

This page as a plain text file.
%I A153226 #10 Jan 30 2022 23:05:10
%S A153226 1,1005,1053,1255,2006,2025,2246,2560,3712,4063,4066,4087,5006,5009,
%T A153226 5038,5068,5076,5538,6000,6025,6045,7007,7025,7037,8068,8960,9009,
%U A153226 9052,10007,10823,11003,11005,12000,12003,12134,12639,14009,14207,14326,14944,15052,16000
%N A153226 Numbers k such that the string k modulo 1000 is found at position k in the decimal digits of Pi.
%H A153226 Michael S. Branicky, <a href="/A153226/b153226.txt">Table of n, a(n) for n = 1..10000</a>
%e A153226 a(4) = 1255 because 255 occurs at offset 1255 after the decimal in the digits of Pi.
%o A153226 (Python)
%o A153226 from sympy import S
%o A153226 # download https://stuff.mit.edu/afs/sipb/contrib/pi/pi-billion.txt, then
%o A153226 #with open('pi-billion.txt', 'r') as f: pi_digits = f.readline()
%o A153226 pi_digits = str(S.Pi.n(3*10**5+2))[:-2] # alternative to above
%o A153226 pi_digits = pi_digits.replace(".", "")
%o A153226 def ispal(s): return s == s[::-1]
%o A153226 def agen():
%o A153226     for k in range(len(pi_digits)):
%o A153226         sk = str(k%1000)
%o A153226         if sk == pi_digits[k:k+len(sk)]:
%o A153226             yield k
%o A153226 g = agen()
%o A153226 print([next(g) for n in range(1, 43)]) # _Michael S. Branicky_, Jan 30 2022
%Y A153226 Cf. A000796, A057679, A057680, A109513, A109514.
%K A153226 base,nonn
%O A153226 1,2
%A A153226 _Gil Broussard_, Dec 21 2008
%E A153226 a(40) and beyond from _Michael S. Branicky_, Jan 30 2022