OFFSET
0,5
COMMENTS
The sequence contains 2 copies of 1 and 3 copies of the higher powers 2^j (up to sign).
LINKS
Index entries for linear recurrences with constant coefficients, signature (0, 2, 0, -2).
FORMULA
a(n) = 2a(n-2)-2a(n-4). a(n) = -4a(n-8).
O.g.f.: (x-1)(x^2-x-1)/(1-2x^2+2x^4). - R. J. Mathar, Jul 08 2008
MATHEMATICA
LinearRecurrence[{0, 2, 0, -2}, {1, 0, 0, 1}, 70] (* Harvey P. Dale, Apr 23 2022 *)
CROSSREFS
KEYWORD
sign
AUTHOR
Paul Curtz, May 05 2008
EXTENSIONS
Edited by R. J. Mathar, Jul 08 2008
STATUS
approved