OFFSET
1,1
LINKS
Zak Seidov, Table of n, a(n) for n = 1..1000
EXAMPLE
a(2) = 3 because 3 - a(1) = 1^3.
a(3) = 11 because 11 - a(2) = 2^3, while neither 5 - 3 nor 7 - 3 is a cube.
MATHEMATICA
p = 3; s = Join[{2, 3}, Table[x = 2; While[!PrimeQ[q = p + x^3], x = x + 2]; p = q, {29}]] (* Zak Seidov, Apr 08 2013 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Zak Seidov, Nov 02 2002
STATUS
approved