OFFSET
1,8
COMMENTS
A057555 gives the lexicographic ordering of N x N, where N={1,2,3,...}.
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..20022
EXAMPLE
Flatten the ordered lattice points: (0,0) < (0,1) < (1,0) < (0,2) < (1,1) < ... as 0,0, 0,1, 1,0, 0,2, 1,1, ...
MATHEMATICA
lexicographicLattice[{dim_, maxHeight_}]:= Flatten[Array[Sort@Flatten[(Permutations[#1]&)/@IntegerPartitions[#1+dim-1, {dim}], 1]&, maxHeight], 1]; Flatten@lexicographicLattice[{2, 12}]-1 (* Peter J. C. Moses, Feb 10 2011 *)
PROG
(Python)
[l for i in range(20) for k in range(i, -1, -1) for l in (i-k, k)] # Nicholas Stefan Georgescu, Oct 10 2023
CROSSREFS
KEYWORD
nonn
AUTHOR
Clark Kimberling, Sep 07 2000
STATUS
approved