editing
approved
editing
approved
[1]
[1];
[2], [1,1];
[3], [2,1], [1,1,1];
[4], [3,1], [2,2], [2,1,1], [1,1,1,1];
[5], [4,1], [3,2], [3,1,1], [2,2,1], [2,1,1,1], [1,1,1,1,1];
[6], [5,1], [4,2], [3,3], [4,1,1], [3,2,1], [3,1,1,1], [2,2,2], ...;
...
approved
editing
proposed
approved
editing
proposed
f[P_] := Times @@ (Prime[Range[Length[P]]]^P);
row[n_] := SortBy[IntegerPartitions[n], f];
Array[row, 7] // Flatten (* Jean-François Alcover, Feb 16 2021 *)
approved
editing
proposed
approved
editing
proposed
1, 2, 1, 1, 3, 2, 1, 1, 1, 1, 4, 3, 1, 2, 2, 2, 1, 1, 1, 1, 1, 1, 5, 4, 1, 3, 2, 3, 1, 1, 2, 2, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 6, 5, 1, 4, 2, 3, 3, 4, 1, 1, 3, 2, 1, 3, 1, 1, 1, 2, 2, 2, 2, 2, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 7, 6, 1, 5, 2, 4, 3, 5, 1, 1, 4, 2, 1, 3, 3, 1, 4, 1, 1, 1, 3, 2, 2, 3, 2, 1, 1, 2
approved
editing
editing
approved
elif n=0 then ll:= ll, [mul (ithprime (t)^l[t], t=1..nops(l)), l]
map (h-> h[2][], sort ([ll], (x, y)-> x[1]<y[1]))[]
approved
editing