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 pp. 11-12.
Index entries for linear recurrences with constant coefficients, signature (8,-22,24,-9).
FORMULA
From Baril et al.: (Start)
G.f.: x*(1 - 4*x + 4*x^2 + 2*x^3)/((1 - x)^2*(1 - 3*x)^2).
a(n) = (27*n - 9 + (5*n + 1)*3^n)/36. (End)
E.g.f.: (8 + 9*exp(x)*(3*x - 1) + exp(3*x)*(15*x+1))/36.
MATHEMATICA
LinearRecurrence[{8, -22, 24, -9}, {1, 4, 14, 50}, 28]
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Stefano Spezia, May 15 2024
STATUS
approved