The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A153221 Numbers k such that the string k is found at position k-3 in the decimal digits of Pi. 2
51, 875, 62843, 242424, 4308765, 9710721, 24747689, 126987778 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
EXAMPLE
a(1) = 51 because 51 occurs at offset (51-3) 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 afind():
for k in range(len(pi_digits)):
sk = str(k)
if sk == pi_digits[k-3:k-3+len(sk)]:
print(k, end=", ")
afind() # Michael S. Branicky, Jan 30 2022
CROSSREFS
Sequence in context: A201832 A317651 A201212 * A172639 A231648 A017767
KEYWORD
base,more,nonn
AUTHOR
Gil Broussard, Dec 21 2008
EXTENSIONS
a(5)-a(8) 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.

License Agreements, Terms of Use, Privacy Policy. .

Last modified June 2 21:07 EDT 2024. Contains 373049 sequences. (Running on oeis4.)