|
|
A062840
|
|
Palindromes of the form k^3 + 1.
|
|
0
|
|
|
0, 1, 2, 9, 1001, 29792, 1000001, 1000000001, 1000000000001, 1000000000000001, 1000000000000000001, 1000000000000000000001, 1000000000000000000000001, 1000000000000000000000000001, 1000000000000000000000000000001
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,3
|
|
LINKS
|
|
|
EXAMPLE
|
1000001 = 100^3 + 1 and is a palindrome.
|
|
MATHEMATICA
|
Do[k = n^3 + 1; If[FromDigits[Reverse[IntegerDigits[k]]] == k, Print[k]], {n, -1, 10^8}] (* Ryan Propper, Aug 13 2005 *)
Select[Range[-1, 10^8]^3+1, #==IntegerReverse[#]&] (* The program uses the IntegerReverse function from Mathematica version 10 *) (* Harvey P. Dale, May 05 2016 *)
|
|
CROSSREFS
|
|
|
KEYWORD
|
base,nonn
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|