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.

A246136 Numbers that are palindromic right angle numbers in base 8.

Original entry on oeis.org

211, 227, 373, 503, 32119, 856147, 2054519, 131479927
Offset: 1

Views

Author

Chai Wah Wu, Aug 15 2014

Keywords

Examples

			856147 is in the list since it is prime and is equal to 3210123 in base 8.
		

Crossrefs

Programs

  • Python
    from sympy import isprime
    A246136 = []
    for n in range(1,8):
        for m in range(n-1,-1,-1):
            l = ''.join([str(d) for d in range(n,m-1,-1)])
            p = int(l+l[-2::-1],8)
            if isprime(p):
                A246136.append(p)
        for m in range(n+1,8):
            l = ''.join([str(d) for d in range(n,m+1)])
            p = int(l+l[-2::-1],8)
            if isprime(p):
                A246136.append(p)
    A246136 = sorted(A246136)