[go: up one dir, main page]

login
A374758
Sum of leaders of strictly decreasing runs in the n-th composition in standard order.
15
0, 1, 2, 2, 3, 2, 3, 3, 4, 3, 4, 3, 4, 3, 4, 4, 5, 4, 3, 4, 5, 4, 4, 4, 5, 4, 5, 4, 5, 4, 5, 5, 6, 5, 4, 5, 6, 3, 5, 5, 6, 5, 6, 5, 5, 4, 5, 5, 6, 5, 4, 5, 6, 5, 5, 5, 6, 5, 6, 5, 6, 5, 6, 6, 7, 6, 5, 6, 4, 4, 6, 6, 7, 6, 5, 4, 6, 5, 6, 6, 7, 6, 5, 6, 7, 6, 6
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.
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 opposite version is A374684, sum of A374683 (length A124768).
The case of partitions ranked by Heinz numbers is A374706.
The weak version is A374741, sum of A374740 (length A124765).
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.
- Number of adjacent equal pairs is A124762, unequal A333382.
- Run-length transform is A333627, sum A070939.
- Run-compression transform is A373948.
- Ranks of contiguous compositions are A374249, counted by A274174.
- Ranks of non-contiguous compositions are A374253, counted by A335548.
Six types of runs:
Sequence in context: A050430 A277329 A071330 * A358635 A366615 A092333
KEYWORD
nonn
AUTHOR
Gus Wiseman, Jul 29 2024
STATUS
approved