OFFSET
1,2
LINKS
Jean-Luc Baril, Pamela E. Harris, and José L. Ramírez, Flattened Catalan Words, arXiv:2405.05357 [math.CO], 2024. See p. 7.
Index entries for linear recurrences with constant coefficients, signature (8,-22,24,-9).
FORMULA
From Baril et al.: (Start)
G.f.: x*(1 - 5*x + 8*x^2 - 3*x^2)/((1 - x)^2*(1 - 3*x)^2).
a(n) = (3^(n-1) + 1)*(n + 1)/4. (End)
E.g.f.: exp(x)*(exp(2*x) - 1)*(x - 2)/4.
MATHEMATICA
LinearRecurrence[{8, -22, 24, -9}, {1, 3, 10, 35}, 28]
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Stefano Spezia, May 15 2024
STATUS
approved