OFFSET
0,10
LINKS
Seiichi Manyama, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (4,-6,4,-1,0,0,0,-1).
FORMULA
G.f.: (1-x)^3/((1-x)^4 + x^8).
a(n) = 4*a(n-1) - 6*a(n-2) + 4*a(n-3) - a(n-4) - a(n-8).
MATHEMATICA
LinearRecurrence[{4, -6, 4, -1, 0, 0, 0, -1}, {1, 1, 1, 1, 1, 1, 1, 1}, 45] (* Amiram Eldar, Oct 11 2021 *)
PROG
(PARI) a(n) = sum(k=0, n\8, (-1)^k*binomial(n-4*k, 4*k));
(PARI) my(N=66, x='x+O('x^N)); Vec((1-x)^3/((1-x)^4+x^8))
CROSSREFS
KEYWORD
sign,easy
AUTHOR
Seiichi Manyama, Oct 11 2021
STATUS
approved