OFFSET
1,4
COMMENTS
A knapsack factorization is a finite multiset of positive integers greater than one such that every distinct submultiset has a different product.
The sequence giving the number of factorizations of n is described as "the multiplicative partition function" (see A001055), so knapsack factorizations are a multiplicative generalization of knapsack partitions. - Gus Wiseman, Oct 24 2017
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..2000
EXAMPLE
The a(36) = 8 factorizations are 2*2*3*3, 2*2*9, 2*18, 3*3*4, 3*12, 4*9, 6*6, 36. The factorization 2*3*6 is not knapsack.
MATHEMATICA
postfacs[n_]:=If[n<=1, {{}}, Join@@Table[Map[Prepend[#, d]&, Select[postfacs[n/d], Min@@#>=d&]], {d, Rest[Divisors[n]]}]];
Table[Length[Select[postfacs[n], UnsameQ@@Times@@@Union[Subsets[#]]&]], {n, 100}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Gus Wiseman, Sep 26 2017
STATUS
approved