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.

This page as a plain text file.
%I A246136 #6 May 22 2025 10:21:40
%S A246136 211,227,373,503,32119,856147,2054519,131479927
%N A246136 Numbers that are palindromic right angle numbers in base 8.
%e A246136 856147 is in the list since it is prime and is equal to 3210123 in base 8.
%o A246136 (Python)
%o A246136 from sympy import isprime
%o A246136 A246136 = []
%o A246136 for n in range(1,8):
%o A246136     for m in range(n-1,-1,-1):
%o A246136         l = ''.join([str(d) for d in range(n,m-1,-1)])
%o A246136         p = int(l+l[-2::-1],8)
%o A246136         if isprime(p):
%o A246136             A246136.append(p)
%o A246136     for m in range(n+1,8):
%o A246136         l = ''.join([str(d) for d in range(n,m+1)])
%o A246136         p = int(l+l[-2::-1],8)
%o A246136         if isprime(p):
%o A246136             A246136.append(p)
%o A246136 A246136 = sorted(A246136)
%Y A246136 Cf. A246135, A244369.
%K A246136 nonn,base,fini,full
%O A246136 1,1
%A A246136 _Chai Wah Wu_, Aug 15 2014