OFFSET
0,2
LINKS
Roman Witula, Damian Slota and Adam Warzynski, Quasi-Fibonacci Numbers of the Seventh Order, J. Integer Seq., 9 (2006), Article 06.4.3 (p. 26, table 5).
Index entries for linear recurrences with constant coefficients, signature (1,9,-1).
FORMULA
G.f.: 2*x*(1 + x)/(1 - x - 9*x^2 + x^3).
a(n) = a(n-1) + 9*a(n-2) - a(n-3).
MATHEMATICA
CoefficientList[Series[2 x (1 + x)/(1 - x - 9 x^2 + x^3), {x, 0, 33}], x]
PROG
(Magma) [n le 2 select 2*n else Self(n)+9*Self(n-1)-Self(n-2): n in [0..30]];
(PARI) x='x+O('x^99); concat(0, Vec(2*x*(1+x)/(1-x-9*x^2+x^3))) \\ Altug Alkan, Apr 18 2016
(Sage) gf = 2*x*(1+x)/(1-x-9*x^2+x^3); taylor(gf, x, 0, 40).list() # Bruno Berselli, Apr 18 2016
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vincenzo Librandi, Apr 18 2016
STATUS
approved