A326211 Number of unsortable normal multiset partitions of weight n.
0, 0, 0, 1, 17, 170, 1455, 11678, 92871, 752473
Offset: 0
Examples
The a(3) = 1 and a(4) = 17 multiset partitions: {{1,3},{2}} {{1,1,3},{2}} {{1,2},{1,2}} {{1,2},{1,3}} {{1,2,3},{2}} {{1,2,4},{3}} {{1,3},{2,2}} {{1,3},{2,3}} {{1,3},{2,4}} {{1,3,3},{2}} {{1,3,4},{2}} {{1,4},{2,3}} {{1},{1,3},{2}} {{1},{2,4},{3}} {{1,3},{2},{2}} {{1,3},{2},{3}} {{1,3},{2},{4}} {{1,4},{2},{3}}
Crossrefs
Programs
-
Mathematica
lexsort[f_,c_]:=OrderedQ[PadRight[{f,c}]]; allnorm[n_]:=If[n<=0,{{}},Function[s,Array[Count[s,y_/;y<=#]+1&,n]]/@Subsets[Range[n-1]+1]]; 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[Sort[#,lexsort]&/@Join@@mps/@allnorm[n],!OrderedQ[Join@@#]&]],{n,0,5}]
Comments