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}]
PROG
(PARI)
A056239(n) = if(1==n, 0, my(f=factor(n)); sum(i=1, #f~, f[i, 2] * primepi(f[i, 1])));
all_have_different_sum_of_pis(facs) = if(!#facs, 1, (#Set(apply(A056239, facs)) == #facs));
A321469(n, m=n, facs=List([])) = if(1==n, all_have_different_sum_of_pis(facs), my(s=0, newfacs); fordiv(n, d, if((d>1)&&(d<=m), newfacs = List(facs); listput(newfacs, d); s += A321469(n/d, d, newfacs))); (s)); \\ Antti Karttunen, Jan 20 2025
CROSSREFS
KEYWORD
nonn,changed
AUTHOR
Gus Wiseman, Nov 11 2018
EXTENSIONS
Data section extended to a(105) by Antti Karttunen, Jan 20 2025
STATUS
approved