OFFSET
0,2
LINKS
Index entries for linear recurrences with constant coefficients, signature (2, -1, 1).
FORMULA
a(n)=2*a(n-1)-a(n-2)+a(n-3); 3 initial terms required.
MATHEMATICA
LinearRecurrence[{2, -1, 1}, {1, 3, 3}, 40] (* Harvey P. Dale, Jun 08 2022 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved