The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A135066 Primes p such that p^3 is a palindrome. 1
2, 7, 11, 101 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Note that all first 4 listed terms are the palindromes. Corresponding palindromic cubes a(n)^3 are listed in A135067 = {8, 343, 1331, 1030301, ...}. PrimePi[ a(n) ] = {1, 4, 5, 26, ...}.
No further terms less than 1.29 * 10^10. - Michael S. Branicky, Feb 07 2021
LINKS
Patrick De Geest, Palindromic Cubes
FORMULA
a(n) = A135067(n)^(1/3).
EXAMPLE
a(3) = 11 because 11^3 = 1331 is a palindrome.
MATHEMATICA
Do[ p = Prime[n]; f = p^3; If[ f == FromDigits[ Reverse[ IntegerDigits[ f ] ] ], Print[ {n, p, f} ]], {n, 1, 200000} ]
PROG
(Python)
from sympy import nextprime
def ispal(n): s = str(n); return s == s[::-1]
p = 2
while True:
if ispal(p**3): print(p)
p = nextprime(p) # Michael S. Branicky, Feb 07 2021
CROSSREFS
Cf. A002780 (cube is a palindrome), A069748 (n and n^3 are both palindromes), A002781 (palindromic cubes), A135067 (palindromic cubes of primes).
Sequence in context: A073623 A101592 A349709 * A085315 A002780 A069885
KEYWORD
nonn,base,more
AUTHOR
Alexander Adamchuk, Nov 16 2007
STATUS
approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 23 03:43 EDT 2024. Contains 372758 sequences. (Running on oeis4.)