OFFSET
1,1
LINKS
Index entries for linear recurrences with constant coefficients, signature (0,2,0,-1).
FORMULA
G.f.: x*(x^4 + 3*x^2 + x+2) / ((x-1)^2*(x+1)^2). - Colin Barker, Mar 04 2013
From Colin Barker, Apr 06 2013: (Start)
a(n) = -1 + (-1)^n - (1/4)*(-7 + 5*(-1)^n)*n for n > 1.
a(n) = 2*a(n-2) - a(n-4) for n > 5. (End)
MATHEMATICA
LinearRecurrence[{0, 2, 0, -1}, {2, 1, 7, 2, 13}, 100] (* Amiram Eldar, Feb 02 2024 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Omar E. Pol, Jun 13 2009
EXTENSIONS
More terms from Colin Barker, Apr 06 2013
More terms from Amiram Eldar, Feb 02 2024
STATUS
approved
