A124734 Table with all compositions sorted first by total, then by length and finally lexicographically.
1, 2, 1, 1, 3, 1, 2, 2, 1, 1, 1, 1, 4, 1, 3, 2, 2, 3, 1, 1, 1, 2, 1, 2, 1, 2, 1, 1, 1, 1, 1, 1, 5, 1, 4, 2, 3, 3, 2, 4, 1, 1, 1, 3, 1, 2, 2, 1, 3, 1, 2, 1, 2, 2, 2, 1, 3, 1, 1, 1, 1, 1, 2, 1, 1, 2, 1, 1, 2, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 6, 1, 5, 2, 4, 3, 3, 4, 2, 5, 1, 1, 1, 4, 1, 2, 3, 1, 3, 2, 1, 4, 1, 2, 1
Offset: 1
Examples
The table starts: 1 2; 1 1 3; 1 2; 2 1; 1 1 1 4; 1 3; 2 2; 3 1; 1 1 2; 1 2 1; 2 1 1; 1 1 1 1;
Links
- Alois P. Heinz, Rows n = 1..11, flattened
- M. Abramowitz and I. A. Stegun, eds., Handbook of Mathematical Functions, National Bureau of Standards, Applied Math. Series 55, Tenth Printing, 1972 [alternative scanned copy].
Programs
-
Mathematica
Table[Sort@Flatten[Permutations /@ IntegerPartitions@n, 1], {n, 8}] // Flatten (* Robert Price, Jun 13 2020 *)
Comments