OFFSET
0,4
LINKS
Index entries for linear recurrences with constant coefficients, signature (1, -1, 2).
FORMULA
G.f.: (-1 - x^2)/(-1 + x - x^2 + 2*x^3). - Stefano Spezia, Nov 30 2019
MATHEMATICA
CoefficientList[Series[(-1 - x^2)/(-1 + x - x^2 + 2 x^3), {x, 0, 49}], x] (* Michael De Vlieger, Dec 14 2019 *)
PROG
(Magma) [1, 1] cat [ n le 3 select n else Self(n-1)-(-1)^n*Self(n-2)+2*Self(n-3): n in [1..55]];
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Juri-Stepan Gerasimov, Nov 30 2019
STATUS
approved