OFFSET
1,3
COMMENTS
Numbers N such that N^2 = x^3 + y^3 where x and y are nonnegative integers. First case with 2 solutions is 77976^2 = 228^3 + 1824^3 = 1026^3 + 1710^3, see A051302. - Zak Seidov, Mar 21 2013
LINKS
Chai Wah Wu, Table of n, a(n) for n = 1..5000
EXAMPLE
312 is in the sequence because 312^2 = 2^3 + 46^3.
MATHEMATICA
m = 2888; Sort[Reap[Do[If[IntegerQ[c = Sqrt[a^3 + b^3]], Sow[c]], {a, 0, m^(2/3)}, {b, a, (m^2 - a^3)^(1/3)}]][[2, 1]]] (* Zak Seidov, Mar 21 2013 *)
PROG
(R)
y=c(); maxsol=3000 #All solutions <this value
for(i in 0:(maxsol^(2/3))) for(j in i:((maxsol^2-i^3)^(1/3)))
if(i<=j & 2*i^3<maxsol^2) if((sqrt(i^3+j^3)->x)==as.integer(x))y=c(y, x)
sort(y)
(PARI) is(n)=n*=n; for(k=ceil((n/2-.5)^(1/3)), (n+.5)^(1/3), if(ispower(n-k^3, 3), return(1))); 0 \\ Charles R Greathouse IV, Mar 20 2013
CROSSREFS
KEYWORD
nonn
AUTHOR
Christian N. K. Anderson & Kevin L. Schwartz, Mar 20 2013
EXTENSIONS
Offset and a(35) corrected and a(36)-a(51) from Giovanni Resta, Mar 20 2013
STATUS
approved