OFFSET
1,1
COMMENTS
From a(28) on, terms are no more in the lexicographic order of increasing (m, n).
EXAMPLE
A000217 = (0, 1, 3, 6, ...), thus
a(1)=3^2+1^2, a(2)=6^2+1^2, a(3)=6^2+3^2, ...,
a(28)=45^2+1^2, ..., a(31)=36^2+28^2.
MATHEMATICA
With[{nn=50}, Take[Union[Total/@Subsets[Accumulate[Range[nn]]^2, {2}]], nn]] (* Harvey P. Dale, Sep 24 2016 *)
PROG
CROSSREFS
KEYWORD
nonn
AUTHOR
M. F. Hasler, May 27 2012
STATUS
approved