OFFSET
1,3
COMMENTS
Numbers n such that n, n^2 and n^3 are all palindromes.
Essentially A002780 with two terms removed, 7 and 2201.
EXAMPLE
11^2=121, 11^3=1331.
MAPLE
rev:=proc(a) local aa, ct: aa:=convert(a, base, 10): ct:=nops(aa): add(10^(ct-j)*aa[j], j=1..ct) end: p:=proc(n) if rev(n)=n and rev(n^2)=n^2 and rev(n^3)=n^3 then n else fi end: seq(p(n), n=0..12*10^5); # Emeric Deutsch, May 01 2005
PROG
(PARI) ispal(n) = my(d = digits(n)); Vecrev(d) == d;
isok(n) = ispal(n) && ispal(n^2) && ispal(n^3); \\ Michel Marcus, Oct 25 2015
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Labos Elemer, Oct 01 2003
EXTENSIONS
More terms from Ray Chandler, Oct 05 2003
Edited by N. J. A. Sloane, Aug 29 2008 at the suggestion of R. J. Mathar
STATUS
approved