OFFSET
0,3
REFERENCES
J. H. Conway, personal communication, Aug 27, 2001.
MATHEMATICA
ok[n_] := And @@ (Reduce[# + x^2 + y^2 + z^2 == n, {x, y, z}, Integers] =!= False & /@ Select[ Range[n-1], IntegerQ[Sqrt[#]]& ]); Reap[ Do[ If[Mod[n, 4] != 2 && ok[n], Print[n]; Sow[n]], {n, 0, 4000}]][[2, 1]] (* Jean-François Alcover, Jun 22 2012 *)
CROSSREFS
KEYWORD
nonn,easy,nice,fini,full
AUTHOR
N. J. A. Sloane, Sep 04 2001
STATUS
approved