login
A246136
Numbers that are palindromic right angle numbers in base 8.
2
211, 227, 373, 503, 32119, 856147, 2054519, 131479927
OFFSET
1,1
EXAMPLE
856147 is in the list since it is prime and is equal to 3210123 in base 8.
PROG
(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)
CROSSREFS
Sequence in context: A133959 A133960 A031931 * A087833 A240918 A346948
KEYWORD
nonn,base,fini,full
AUTHOR
Chai Wah Wu, Aug 15 2014
STATUS
approved