OFFSET
1,4
LINKS
Hugo Pfoertner, Table of n, a(n) for n = 1..10000
EXAMPLE
The first few points (listing [x^2+y^2,x,y]) are:
[0, 0, 0], [1, 1, 0], [2, 1, 1], [4, 2, 0], [5, 2, 1], [8, 2, 2], [9, 3, 0], [10, 3, 1], [13, 3, 2], [16, 4, 0], [17, 4, 1], [18, 3, 3], [20, 4, 2], [25, 4, 3], [25, 5, 0], [26, 5, 1], [29, 5, 2], [32, 4, 4], [34, 5, 3], [36, 6, 0], [37, 6, 1], [40, 6, 2], [41, 5, 4], [45, 6, 3], [49, 7, 0], ...
MAPLE
MATHEMATICA
nt = 105; (* number of terms to produce *)
S[m_] := S[m] = Table[{x, y}, {y, 0, m}, {x, y, m}] // Flatten[#, 1]& // SortBy[#, {#.#&, #[[1]]&}]& // #[[All, 1]]& // PadRight[#, nt]&
S[m = 2];
S[m = 2 m];
While[S[m] =!= S[m/2], m = 2 m];
S[m] (* Jean-François Alcover, Mar 05 2023 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Mar 04 2017, following a suggestion from Ahmet Arduç.
STATUS
approved