OFFSET
0,6
COMMENTS
A rise is any pair of parts (p_{i-1},p_i) with p_{i-1} < p_i.
By reversal a(n) is also the number of descents in all compositions of n of this kind.
LINKS
Index entries for linear recurrences with constant coefficients, signature (0,0,2,0,2,-1,0,-2,0,-1).
FORMULA
G.f.: x^3*(1 + x^2)^2*(1 + x + x^3)/(1 - x^3 - x^5)^2.
EXAMPLE
For n = 6 the following compositions have 5 rises: (1,2,1,2), (1,2,3), (2,1,2,1), (3,2,1).
PROG
(PARI)
A_x(N) = {my(x='x+O('x^N)); concat([0, 0, 0], Vec(x^3*(1 + x^2)^2*(1 + x + x^3)/(1 - x^3 - x^5)^2))}
A_x(40)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
John Tyler Rascoe, Apr 29 2025
STATUS
approved
