OFFSET
1,2
COMMENTS
Build up an array in which the rows are the numbers n^2 + k - 1, where k is the smallest number that has not yet been covered:
1, 4, 9,16,25,...
2, 5,10,17,26,...
3, 6,11,18,27,...
7,10,15,22,...
8,11,16,23,...
12,15,20,27,...
13,16,21,28,...
14,17,22,29,...
19,22,27,...
24,27,...
30,...
Sequence gives first column.
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Brendan McKay and Don Reble, Jan 27 2005
EXTENSIONS
More terms from David Wasserman, Apr 09 2008
STATUS
approved