OFFSET
0,2
LINKS
Matthew House, Table of n, a(n) for n = 0..6605
Index entries for linear recurrences with constant coefficients, signature (0,2).
FORMULA
From R. J. Mathar, Apr 22 2009: (Start)
G.f.: x*(2-x)/(1-2*x^2).
a(n) = (-1)^(n+1)*A135530(n-1). (End)
a(n) = 2*a(n-2). - Matthew House, Jan 15 2017
MATHEMATICA
LinearRecurrence[{0, 2}, {0, 2, -1}, 50] (* Paolo Xausa, Jun 03 2026 *)
PROG
(PARI) a(n)=if(n, ([0, 1; 2, 0]^(n-1)*[2; -1])[1, 1], 0) \\ Charles R Greathouse IV, Jun 03 2026
CROSSREFS
KEYWORD
sign,easy
AUTHOR
Paul Curtz, Mar 05 2008
EXTENSIONS
More terms from R. J. Mathar, Apr 22 2009
STATUS
approved
