OFFSET
0,1
LINKS
FORMULA
a(n) = 1 + (-1)^n*A002878(n).
From Michael Somos, Apr 07 2003: (Start)
G.f.: (2+x+2x^2)/((1+3x+x^2)(1-x)).
a(n) = -3a(n-1) - a(n-2)+5 = -2a(n-1) + 2a(n-2) + a(n-3) = a(-1-n). (End)
Sum_{n>=0} 1/a(n) = sqrt(5)/10. - Amiram Eldar, Jan 15 2022
a(n) = (-1)^n*A215602(n). - R. J. Mathar, Jul 09 2024
a(n) - a(n-1) = (-1)^n* A054888(n), n>0. - R. J. Mathar, Jul 09 2024
MATHEMATICA
CoefficientList[Series[(2 + x + 2x^2)/(1 + 2x - 2x^2 - x^3), {x, 0, 30}], x]
LinearRecurrence[{-2, 2, 1}, {2, -3, 12}, 30] (* Harvey P. Dale, Jun 30 2022 *)
PROG
(PARI) a(n)=1+(-1)^n*(fibonacci(2*n)+fibonacci(2*n+2))
CROSSREFS
KEYWORD
easy,sign
AUTHOR
Mario Catalani (mario.catalani(AT)unito.it), Sep 11 2002
STATUS
approved