OFFSET
0,4
LINKS
Index entries for linear recurrences with constant coefficients, signature (2,-3,-2,-1).
FORMULA
a(n) = 2*a(n-1) - 3*a(n-2) - 2*a(n-3) - a(n-4).
a(n) = Sum_{k=0..floor(n/2)} (-1)^k * binomial(2*n-2*k,2*k).
PROG
(PARI) my(N=40, x='x+O('x^N)); Vec((1-x+x^2)/(1-2*x+3*x^2+2*x^3+x^4))
(PARI) a(n) = sum(k=0, n\2, (-1)^k*binomial(2*n-2*k, 2*k));
CROSSREFS
KEYWORD
sign
AUTHOR
Seiichi Manyama, Aug 09 2024
STATUS
approved