A326521 Number of normal multiset partitions of weight n where each part has a different average.
1, 1, 3, 11, 49, 251, 1418, 8904
Offset: 0
Examples
The a(0) = 1 through a(3) = 11 normal multiset partitions where each part has a different average: {} {{1}} {{1,1}} {{1,1,1}} {{1,2}} {{1,1,2}} {{1},{2}} {{1,2,2}} {{1,2,3}} {{1},{1,2}} {{1},{2,2}} {{1},{2,3}} {{2},{1,1}} {{2},{1,2}} {{3},{1,2}} {{1},{2},{3}}
Links
Crossrefs
Programs
-
Mathematica
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]]]]; allnorm[n_]:=If[n<=0,{{}},Function[s,Array[Count[s,y_/;y<=#]+1&,n]]/@Subsets[Range[n-1]+1]]; Table[Length[Select[Join@@mps/@allnorm[n],UnsameQ@@Mean/@#&]],{n,0,5}]
Comments