A124735 Table with all sequences of nonnegative integers sorted first by total plus length, then by length and finally lexicographically.
0, 1, 0, 0, 2, 0, 1, 1, 0, 0, 0, 0, 3, 0, 2, 1, 1, 2, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 4, 0, 3, 1, 2, 2, 1, 3, 0, 0, 0, 2, 0, 1, 1, 0, 2, 0, 1, 0, 1, 1, 1, 0, 2, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 4, 1, 3, 2, 2, 3, 1, 4, 0, 0, 0, 3, 0, 1, 2, 0, 2, 1, 0, 3, 0, 1, 0
Offset: 1
Examples
The table starts: 0 1; 0 0 2; 0 1; 1 0; 0 0 0
Formula
a(n) = A124734(n) - 1.
Comments