A386581 Number of normal multisets of size n with no permutation having all distinct run lengths.
0, 0, 1, 1, 5, 11, 20, 51, 108, 229, 448, 953, 1940, 3951, 7986, 15972
Offset: 0
Examples
The normal multiset m = {1,1,1,2,2,2} has permutation (1,2,2,2,1,1) with run lengths (1,3,2), so m is not counted under a(6). The a(1) = 0 through a(6) = 20 multisets: . (12) (123) (1122) (11123) (111123) (1123) (11223) (111234) (1223) (11233) (112233) (1233) (11234) (112234) (1234) (12223) (112334) (12233) (112344) (12234) (112345) (12333) (122223) (12334) (122234) (12344) (122334) (12345) (122344) (122345) (123333) (123334) (123344) (123345) (123444) (123445) (123455) (123456)
Crossrefs
A032020 counts normal multisets with distinct multiplicities.
Programs
-
Mathematica
allnorm[n_]:=If[n<=0,{{}},Function[s,Array[Count[s,y_/;y<=#]+1&,n]]/@Subsets[Range[n-1]+1]]; nodrm[y_]:=Select[Permutations[y],UnsameQ@@Length/@Split[#]&]; Table[Length[Select[allnorm[n],nodrm[#]=={}&]],{n,0,7}]
Comments