OFFSET
1,6
COMMENTS
LINKS
EXAMPLE
The a(72) = 8 multiset partitions with distinct block-sums:
{{1,1,1,2,2}}
{{1},{1,1,2,2}}
{{2},{1,1,1,2}}
{{1,1},{1,2,2}}
{{1,2},{1,1,2}}
{{2,2},{1,1,1}}
{{1},{2},{1,1,2}}
{{1},{1,1},{2,2}}
Missing from this list are:
{{1},{1},{1,2,2}}
{{1},{1,2},{1,2}}
{{2},{2},{1,1,1}}
{{2},{1,1},{1,2}}
{{1},{1},{1},{2,2}}
{{1},{1},{2},{1,2}}
{{1},{2},{2},{1,1}}
{{1},{1},{1},{2},{2}}
MATHEMATICA
primeMS[n_]:=If[n==1, {}, Flatten[Cases[FactorInteger[n], {p_, k_}:>Table[PrimePi[p], {k}]]]];
sps[{}]:={{}}; sps[set:{i_, ___}]:=Join@@Function[s, Prepend[#, s]&/@sps[Complement[set, s]]]/@Cases[Subsets[set], {i, ___}];
mps[set_]:=Union[Sort[Sort/@(#/.x_Integer:>set[[x]])]&/@sps[Range[Length[set]]]];
Table[Length[Select[mps[primeMS[n]], UnsameQ@@Sort[Total/@#]&]], {n, 100}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Gus Wiseman, Nov 11 2018
STATUS
approved