login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A246136 Numbers that are palindromic right angle numbers in base 8. 2

%I

%S 211,227,373,503,32119,856147,2054519,131479927

%N Numbers that are palindromic right angle numbers in base 8.

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

%o (Python)

%o from sympy import isprime

%o A246136 = []

%o for n in range(1,8):

%o ....for m in range(n-1,-1,-1):

%o ........l = ''.join([str(d) for d in range(n,m-1,-1)])

%o ........p = int(l+l[-2::-1],8)

%o ........if isprime(p):

%o ............A246136.append(p)

%o ....for m in range(n+1,8):

%o ........l = ''.join([str(d) for d in range(n,m+1)])

%o ........p = int(l+l[-2::-1],8)

%o ........if isprime(p):

%o ............A246136.append(p)

%o A246136 = sorted(A246136)

%Y Cf. A246135, A244369.

%K nonn,base,fini,full

%O 1,1

%A _Chai Wah Wu_, Aug 15 2014

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified October 1 17:45 EDT 2020. Contains 337444 sequences. (Running on oeis4.)