OFFSET
0,1
LINKS
Index entries for linear recurrences with constant coefficients, signature (2,0,-1,1).
FORMULA
a(n) = 2*a(n-1) - a(n-3) + a(n-4).
G.f.: (x - 1)*(-2*x^2 + x + 2)/(x^4 - x^3 + 2*x - 1). - Chai Wah Wu, Feb 20 2023
MATHEMATICA
LinearRecurrence[{2, 0, -1, 1}, {2, 3, 3, 6}, 40] (* Harvey P. Dale, Nov 21 2023 *)
CROSSREFS
KEYWORD
nonn,easy,changed
AUTHOR
STATUS
approved