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