A374698 Numbers k such that the leaders of strictly increasing runs in the k-th composition in standard order are distinct.
0, 1, 2, 4, 5, 6, 8, 9, 12, 16, 17, 18, 20, 22, 24, 26, 32, 33, 34, 37, 38, 40, 41, 44, 48, 50, 52, 64, 65, 66, 68, 69, 70, 72, 76, 80, 81, 88, 96, 98, 100, 104, 128, 129, 130, 132, 133, 134, 137, 140, 144, 145, 148, 150, 152, 154, 160, 161, 164, 166, 176, 180
Offset: 1
Keywords
Examples
The maximal strictly increasing subsequences of the 212th composition in standard order are ((1,2),(2,3)), with leaders (1,2), so 212 is in the sequence. The terms together with corresponding compositions begin: 0: () 1: (1) 2: (2) 4: (3) 5: (2,1) 6: (1,2) 8: (4) 9: (3,1) 12: (1,3) 16: (5) 17: (4,1) 18: (3,2) 20: (2,3) 22: (2,1,2) 24: (1,4) 26: (1,2,2)
Links
Crossrefs
Programs
-
Mathematica
stc[n_]:=Differences[Prepend[Join @@ Position[Reverse[IntegerDigits[n,2]],1],0]]//Reverse; Select[Range[0,100],UnsameQ@@First/@Split[stc[#],Less]&]
Comments