A358525 Number of distinct permutations of the n-th composition in standard order.
1, 1, 1, 1, 1, 2, 2, 1, 1, 2, 1, 3, 2, 3, 3, 1, 1, 2, 2, 3, 2, 3, 3, 4, 2, 3, 3, 4, 3, 4, 4, 1, 1, 2, 2, 3, 1, 6, 6, 4, 2, 6, 1, 6, 6, 6, 6, 5, 2, 3, 6, 4, 6, 6, 6, 5, 3, 4, 6, 5, 4, 5, 5, 1, 1, 2, 2, 3, 2, 6, 6, 4, 2, 3, 3, 12, 3, 12, 12, 5, 2, 6, 3, 12, 3, 4
Offset: 0
Keywords
Examples
The a(45) = 6 permutations are: (2121), (2112), (2211), (1221), (1212), (1122).
Links
Crossrefs
Programs
-
Mathematica
stc[n_]:=Reverse[Differences[Prepend[Join@@Position[Reverse[IntegerDigits[n,2]],1],0]]]; Table[Length[Permutations[stc[n]]],{n,0,100}]
Comments