OFFSET
0,3
LINKS
Stefano Spezia, Table of n, a(n) for n = 0..3000
Index entries for linear recurrences with constant coefficients, signature (0,-8,0,-16).
FORMULA
a(n) = (-1)^floor(n/2)*A001787(n).
G.f.: x*(1 - 4*x - 4*x^2)/(1 + 4*x^2)^2.
E.g.f.: x*(cos(2*x) - sin(2*x)). - Stefano Spezia, Jul 01 2023
MATHEMATICA
LinearRecurrence[{0, -8, 0, -16}, {0, 1, -4, -12}, 40] (* Harvey P. Dale, Dec 29 2014 *)
PROG
(PARI) {a(n)=polcoeff(x*(1 - 4*x - 4*x^2)/(1 + 4*x^2 +x*O(x^n))^2, n)}
CROSSREFS
KEYWORD
sign,easy
AUTHOR
Paul D. Hanna, Apr 28 2006
STATUS
approved