OFFSET
0,1
LINKS
Michael De Vlieger, Table of n, a(n) for n = 0..4925
Yüksel Soykan, Summing Formulas For Generalized Tribonacci Numbers, arXiv:1910.03490 [math.GM], 2019.
Index entries for linear recurrences with constant coefficients, signature (-1,-2,1).
FORMULA
MATHEMATICA
LinearRecurrence[{-1, -2, 1}, {3, -1, -3}, 50]
CoefficientList[Series[(3 + 2 x + 2 x^2)/(1 + x + 2 x^2 - x^3), {x, 0, 38}], x] (* Michael De Vlieger, Aug 25 2016 *)
nxt[{a_, b_, c_}]:={b, c, a-2b-c}; NestList[nxt, {3, -1, -3}, 40][[All, 1]] (* Harvey P. Dale, Dec 19 2022 *)
PROG
(Magma) I:=[3, -1, -3]; [n le 3 select I[n] else -Self(n-1)- 2*Self(n-2)+Self(n-3): n in [1..40]]; // Vincenzo Librandi, Aug 25 2016
(PARI) Vec((3+2*x+2*x^2)/(1+x+2*x^2-x^3) + O(x^99)) \\ Altug Alkan, Aug 25 2016
CROSSREFS
KEYWORD
sign,easy
AUTHOR
G. C. Greubel, Aug 24 2016
EXTENSIONS
Deleted certain dangerous or potentially dangerous links. - N. J. A. Sloane, Jan 30 2021
STATUS
approved