OFFSET
1,1
REFERENCES
Albert H. Beiler, Recreations in the Theory of Numbers, Dover, pp. 140-141.
Elena Deza and Michel Marie Deza, Figurate numbers, World Scientific Publishing (2012), page 435.
LINKS
T. D. Noe and Ray Chandler, Table of n, a(n) for n = 1..2178 (a(2179) exceeds 1000 digits).
Carlos Rivera, Puzzle 62. The qs-sequence, (by T.W.A. Baumann), The Prime Puzzles & Problems Connection.
Eric Weisstein's World of Mathematics, Square Number
G. Xiao, Two squares
EXAMPLE
a(0) = 1 as 1 is the least positive integer not expressible as the sum of two squared positives.
a(1) = 2 from 2 = 1^2 + 1^2.
a(2) = 50 from 50 = 1^2 + 7^2 = 5^2 + 5^2.
MATHEMATICA
Array[Block[{k = 1}, While[Length@ DeleteCases[PowersRepresentations[k, 2, 2], _?(! FreeQ[#, 0] &)] != #, k++]; k] &, 6] (* Michael De Vlieger, Mar 31 2019 *)
PROG
CROSSREFS
KEYWORD
nonn,nice
AUTHOR
EXTENSIONS
Corrected and extended by Jud McCranie
Definition improved by several correspondents, Nov 12 2007
STATUS
approved

