OFFSET
0,1
LINKS
FORMULA
a(n) = 2*a(n-1) - a(n-2) + a(n-3); 3 initial terms required.
G.f.: (2 - x - x^2)/(1 - 2*x + x^2 - x^3). - Stefano Spezia, Sep 10 2022
MATHEMATICA
LinearRecurrence[{2, -1, 1}, {2, 3, 3}, 38] (* Stefano Spezia, Sep 10 2022 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved