OFFSET
0,2
LINKS
FORMULA
MATHEMATICA
LinearRecurrence[{2, 1, 1}, {0, 6, 8}, 50]
CoefficientList[Series[2 (3 x - 2 x^2)/(1 - 2 x - x^2 - x^3), {x, 0, 33}], x] (* Michael De Vlieger, Aug 25 2016 *)
PROG
(Magma) I:=[0, 6, 8]; [n le 3 select I[n] else 2*Self(n-1)+ Self(n-2)+Self(n-3): n in [1..40]]; // Vincenzo Librandi, Aug 25 2016
(PARI) concat(0, Vec(2*(3*x-2*x^2)/(1-2*x-x^2-x^3) + O(x^99))) \\ Altug Alkan, Aug 25 2016
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
G. C. Greubel, Aug 24 2016
STATUS
approved