A351596 Numbers k such that the k-th composition in standard order has all distinct run-lengths.
0, 1, 2, 3, 4, 7, 8, 10, 11, 14, 15, 16, 19, 21, 23, 26, 28, 30, 31, 32, 35, 36, 39, 42, 47, 56, 60, 62, 63, 64, 67, 71, 73, 74, 79, 84, 85, 87, 95, 100, 106, 112, 119, 120, 122, 123, 124, 126, 127, 128, 131, 135, 136, 138, 143, 146, 159, 164, 168, 170, 171
Offset: 1
Keywords
Examples
The terms together with their binary expansions and corresponding compositions begin: 0: 0 () 1: 1 (1) 2: 10 (2) 3: 11 (1,1) 4: 100 (3) 7: 111 (1,1,1) 8: 1000 (4) 10: 1010 (2,2) 11: 1011 (2,1,1) 14: 1110 (1,1,2) 15: 1111 (1,1,1,1) 16: 10000 (5) 19: 10011 (3,1,1) 21: 10101 (2,2,1) 23: 10111 (2,1,1,1)
Crossrefs
The version using binary expansions is A044813.
The version for Heinz numbers and prime multiplicities is A130091.
A011782 counts integer compositions.
A351204 counts partitions where every permutation has all distinct runs.
Counting words with all distinct run-lengths:
- Length is A000120.
- Sum is A070939.
- Heinz number is A333219.
- Number of distinct parts is A334028.
Programs
-
Mathematica
stc[n_]:=Differences[Prepend[Join@@Position[Reverse[IntegerDigits[n,2]],1],0]]//Reverse; Select[Range[0,100],UnsameQ@@Length/@Split[stc[#]]&]
Comments