A374249 Numbers k such that the k-th composition in standard order has its equal parts contiguous.
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14, 15, 16, 17, 18, 19, 20, 21, 23, 24, 26, 28, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 47, 48, 50, 52, 56, 58, 60, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 78, 79, 80, 81, 83, 84, 85
Offset: 1
Keywords
Examples
The terms together with their standard compositions begin: 0: () 1: (1) 2: (2) 3: (1,1) 4: (3) 5: (2,1) 6: (1,2) 7: (1,1,1) 8: (4) 9: (3,1) 10: (2,2) 11: (2,1,1) 12: (1,3) 14: (1,1,2) 15: (1,1,1,1) 16: (5) See A374253 for the complement: 13, 22, 25, 27, 29, ...
Links
Crossrefs
Compositions of this type are counted by A274174.
Permutations of prime indices of this type are counted by A333175.
A011782 counts compositions.
A066099 lists compositions in standard order.
A333755 counts compositions by number of runs.
A335454 counts patterns matched by standard compositions.
A335462 counts (1,2,1)- and (2,1,2)-matching permutations of prime indices.
Programs
-
Mathematica
stc[n_]:=Differences[Prepend[Join @@ Position[Reverse[IntegerDigits[n,2]],1],0]]//Reverse; Select[Range[0,100],UnsameQ@@First/@Split[stc[#]]&]
Comments