A382430 Number of non-isomorphic finite multisets of size n that cannot be partitioned into sets with distinct sums.
0, 0, 1, 1, 2, 3, 5, 6, 9, 12, 17, 22, 32
Offset: 0
Examples
The a(2) = 1 through a(7) = 6 multisets: {1,1} {1,1,1} {1,1,1,1} {1,1,1,1,1} {1,1,1,1,1,1} {1,1,1,1,1,1,1} {1,1,1,2} {1,1,1,1,2} {1,1,1,1,1,2} {1,1,1,1,1,1,2} {1,1,1,2,2} {1,1,1,1,2,2} {1,1,1,1,1,2,2} {1,1,1,1,2,3} {1,1,1,1,1,2,3} {1,1,1,2,2,2} {1,1,1,1,2,2,2} {1,1,1,1,2,2,3}
Crossrefs
Programs
-
Mathematica
strnorm[n_]:=Flatten[MapIndexed[Table[#2,{#1}]&,#]]&/@IntegerPartitions[n]; 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[strnorm[n],Select[mps[#],UnsameQ@@Total/@#&&And@@UnsameQ@@@#&]=={}&]],{n,0,5}]
Comments