OFFSET
1,1
COMMENTS
A subsequence of A000404.
Two subsequences are given by: n = 2*m^4 with a = b = 2*m^6, and n = 5^3*m^4 with a = 5^4*m^6, b = 2*a.
LINKS
Giovanni Resta, Table of n, a(n) for n = 1..526 (terms < 10^10)
Giovanni Resta, Decompositions for the first 526 terms.
MATHEMATICA
L = {}; n = 0; Clear[x, y]; While[n < 5000, n++; If[ And @@ (EvenQ /@ Last /@ Select[FactorInteger[n], Mod[First[#] + 1, 4] == 0 &]) && False =!= (sol = Reduce[n^3 == x^2 + y^2 && x >= y > 0, {x, y}, Integers]), ss = {x, y} /. List@ToRules@sol; If[{} != Select[ss, IntegerQ@ Sqrt@ Total[#^3] &, 1], AppendTo[L, n]; Print@L]]]; L (* Giovanni Resta, May 18 2015 *)
PROG
CROSSREFS
KEYWORD
nonn
AUTHOR
M. F. Hasler, May 14 2015
EXTENSIONS
Corrected and extended by Giovanni Resta, May 18 2015
STATUS
approved