OFFSET
0,4
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
Andrew Howroyd, Table of n, a(n) for n = 0..1000
FORMULA
G.f.: Product_{k>=1} (1 + x^k*Product_{j=1..k-1} (1 + x^j)). - Andrew Howroyd, Jul 31 2024
EXAMPLE
The a(0) = 1 through a(7) = 18 compositions:
() (1) (2) (3) (4) (5) (6) (7)
(12) (13) (14) (15) (16)
(21) (31) (23) (24) (25)
(121) (32) (42) (34)
(41) (51) (43)
(131) (123) (52)
(132) (61)
(141) (124)
(213) (142)
(231) (151)
(321) (214)
(232)
(241)
(421)
(1213)
(1231)
(1321)
(2131)
MATHEMATICA
Table[Length[Select[Join@@Permutations /@ IntegerPartitions[n], Less@@First/@Split[#, Greater]&]], {n, 0, 15}]
PROG
(PARI) seq(n) = Vec(prod(k=1, n, 1 + x^k*prod(j=1, min(n-k, k-1), 1 + x^j, 1 + O(x^(n-k+1))))) \\ Andrew Howroyd, Jul 31 2024
CROSSREFS
For partitions instead of compositions we have A000009.
The weak version appears to be A188900.
The opposite version is A374689.
Other types of runs (instead of strictly decreasing):
- For leaders of identical runs we have A000041.
- For leaders of weakly increasing runs we have A374634.
- For leaders of anti-runs we have A374679.
Other types of run-leaders (instead of strictly increasing):
- For strictly decreasing leaders we have A374763.
- For weakly increasing leaders we have A374764.
- For weakly decreasing leaders we have A374765.
A011782 counts compositions.
A374700 counts compositions by sum of leaders of strictly increasing runs.
KEYWORD
nonn
AUTHOR
Gus Wiseman, Jul 29 2024
EXTENSIONS
a(24) onwards from Andrew Howroyd, Jul 31 2024
STATUS
approved