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.

Showing 1-2 of 2 results.

A153221 Numbers k such that the string k is found at position k-3 in the decimal digits of Pi.

Original entry on oeis.org

51, 875, 62843, 242424, 4308765, 9710721, 24747689, 126987778
Offset: 1

Views

Author

Gil Broussard, Dec 21 2008

Keywords

Examples

			a(1) = 51 because 51 occurs at offset (51-3) after the decimal in the digits of Pi.
		

Crossrefs

Programs

  • 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

Extensions

a(5)-a(8) from Michael S. Branicky, Jan 30 2022

A153223 Numbers k such that the string k is found at position k-4 in the decimal digits of Pi.

Original entry on oeis.org

9, 233, 1614, 9218, 27755974, 81259258, 120526011, 238732548, 651265325, 783609697
Offset: 1

Views

Author

Gil Broussard, Dec 21 2008

Keywords

Examples

			a(1) = 9 because 9 occurs at offset (9-4) after the decimal in the digits of Pi.
		

Crossrefs

Programs

  • 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 afind():
        for k in range(5, len(pi_digits)):
            sk = str(k)
            if sk == pi_digits[k-4:k-4+len(sk)]:
                print(k, end=", ")
    afind() # Michael S. Branicky, Jan 30 2022

Extensions

a(5)-a(10) from Michael S. Branicky, Jan 30 2022
Showing 1-2 of 2 results.