OFFSET
0,3
COMMENTS
For n > 0, a(n) is the n-th row sum of the triangle A333416.
LINKS
Index entries for linear recurrences with constant coefficients, signature (1,2,-2,-1,1).
FORMULA
O.g.f.: x*(1 + 2*x + x^2 - 4*x^3 - x^4 + 2*x^5)/((1 - x)^3*(1 + x)^2).
E.g.f.: ((8 + 9*x + x^2)*cosh(x) + (15 + 7*x + x^2)*sinh(x) - 8*(1 + 2*x))/8.
a(n) = a(n-1) + 2*a(n-2) - 2*a(n-3) - a(n-4) + a(n-5) for n > 2.
a(n) = A008805(n+1) for n > 2.
MATHEMATICA
LinearRecurrence[{1, 2, -2, -1, 1}, {0, 1, 3, 6, 6, 10, 10, 15}, 59]
PROG
(PARI) my(x='x + O('x^59)); concat([0], Vec(serlaplace(((8 + 9*x + x^2)*cosh(x) + (15 + 7*x + x^2)*sinh(x) - 8*(1 + 2*x))/8)))
(Sage) (x*(1 + 2*x + x^2 - 4*x^3 - x^4 + 2*x^5)/((1 - x)^3*(1 + x)^2)).series(x, 59).coefficients(x, sparse=False)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Stefano Spezia, Mar 29 2020
STATUS
approved