OFFSET
1,4
COMMENTS
Essentially the same as A095310. - Georg Fischer, Oct 07 2018
LINKS
Muniru A Asiru, Table of n, a(n) for n = 1..500
Index entries for linear recurrences with constant coefficients, signature (2,3,-1)
FORMULA
a(n)= +2*a(n-1) +3*a(n-2) -a(n-3).
MAPLE
seq(coeff(series(x*(1-x)/(1-2*x-3*x^2+x^3), x, n+1), x, n), n = 0 .. 30); # Muniru A Asiru, Oct 07 2018
MATHEMATICA
CoefficientList[Series[x*(1-x)/(1-2*x-3*x^2+x^3), {x, 0, 30}], x] (* G. C. Greubel, Oct 08 2018 *)
PROG
(GAP) a:=[0, 1, 1];; for n in [4..30] do a[n]:=2*a[n-1]+3*a[n-2]-a[n-3]; od; a; # Muniru A Asiru, Oct 07 2018
(Magma) I:=[0, 1, 1]; [n le 3 select I[n] else 2*Self(n-1)+3*Self(n-2)-Self(n-3): n in [1..30]]; // Vincenzo Librandi, Oct 08 2018
(PARI) x='x+O('x^30); concat([0], Vec(x*(1-x)/(1-2*x-3*x^2+x^3))) \\ G. C. Greubel, Oct 08 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
Gary W. Adamson and Roger L. Bagula, Oct 19 2006
STATUS
approved