OFFSET
0,2
LINKS
Harvey P. Dale, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (-2,0,5,10,10,5,1).
FORMULA
a(n) = -2*a(n-1) + 5*a(n-3) + 10*a(n-4) + 10*a(n-5) + 5*a(n-6) + a(n-7).
a(n) = Sum_{k=0..floor(n/2)} binomial(3*k-2,n-2*k).
MATHEMATICA
CoefficientList[Series[1/((1+x)^2(1-x^2(1+x)^3)), {x, 0, 40}], x] (* or *) LinearRecurrence[{-2, 0, 5, 10, 10, 5, 1}, {1, -2, 4, -3, 6, -2, 14}, 40] (* Harvey P. Dale, Aug 07 2025 *)
PROG
(PARI) my(N=40, x='x+O('x^N)); Vec(1/((1+x)^2*(1-x^2*(1+x)^3)))
(PARI) a(n) = sum(k=0, n\2, binomial(3*k-2, n-2*k));
CROSSREFS
KEYWORD
sign
AUTHOR
Seiichi Manyama, Aug 13 2024
STATUS
approved
