OFFSET
0,3
COMMENTS
The leaders of strictly decreasing runs in a sequence are obtained by splitting it into maximal strictly decreasing subsequences and taking the first term of each.
LINKS
EXAMPLE
The maximal strictly decreasing subsequences of the 1234567th composition in standard order are ((3,2,1),(2),(2,1),(2),(5,1),(1),(1)) with leaders (3,2,2,2,5,1,1), so a(1234567) = 16.
MATHEMATICA
stc[n_]:=Differences[Prepend[Join @@ Position[Reverse[IntegerDigits[n, 2]], 1], 0]]//Reverse;
Table[Total[First/@Split[stc[n], Greater]], {n, 0, 100}]
CROSSREFS
Row sums of A374757.
For leaders of constant runs we have A373953.
For leaders of anti-runs we have A374516.
For leaders of weakly increasing runs we have A374630.
For length instead of sum we have A124769.
The case of partitions ranked by Heinz numbers is A374706.
All of the following pertain to compositions in standard order:
- Length is A000120.
- Sum is A029837(n+1).
- Leader is A065120.
- Parts are listed by A066099.
- Run-compression transform is A373948.
Six types of runs:
KEYWORD
nonn
AUTHOR
Gus Wiseman, Jul 29 2024
STATUS
approved