A293627 Number of knapsack factorizations whose factors sum to n.
1, 1, 1, 2, 2, 4, 4, 6, 8, 11, 12, 19, 21, 27, 34, 45, 51, 69, 77, 100, 117, 146
Offset: 1
Examples
The a(12) = 19 partitions are: (12), (10 2), (9 3), (8 4), (7 5), (6 6), (8 2 2), (7 3 2), (6 4 2), (6 3 3), (5 5 2), (5 4 3), (4 4 4), (6 2 2 2), (5 3 2 2), (4 3 3 2), (3 3 3 3), (3 3 2 2 2), (2 2 2 2 2 2).
Crossrefs
Programs
-
Mathematica
nn=22; apsQ[y_]:=UnsameQ@@Times@@@Union[Rest@Subsets[y]]; Table[Length@Select[IntegerPartitions[n],apsQ],{n,nn}]
Comments