OFFSET
0,2
COMMENTS
From the third entry on, the last digits have period 2.
LINKS
Harvey P. Dale, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (-2, 1, 2).
FORMULA
G.f.: (1-x-11x^2)/((1+2x)(1+x)(x-1)). - R. J. Mathar, Oct 24 2008
a(n)=(5*2^n/3-9/2)*(-1)^n+11/6. - R. J. Mathar, Oct 24 2008
MATHEMATICA
LinearRecurrence[{-2, 1, 2}, {-1, 3, 4}, 30] (* Harvey P. Dale, May 11 2024 *)
CROSSREFS
KEYWORD
sign
AUTHOR
Paul Curtz, Oct 14 2008
EXTENSIONS
Extended by R. J. Mathar, Oct 24 2008
STATUS
approved