OFFSET
0,2
LINKS
Index entries for linear recurrences with constant coefficients, signature (1,3,-2,-1).
FORMULA
MATHEMATICA
CoefficientList[Series[(1 + x - x^2)/((1 - x) (1 - 3 x^2 - x^3)), {x, 0, 40}], x] (* Bruno Berselli, Mar 25 2013 *)
PROG
(Magma) m:=40; R<x>:=PowerSeriesRing(Integers(), m); Coefficients(R!((1+x-x^2)/((1-x)*(1-3*x^2-x^3)))); // Bruno Berselli, Mar 25 2013
(Maxima) makelist(coeff(taylor((1+x-x^2)/((1-x)*(1-3*x^2-x^3)), x, 0, n), x, n), n, 0, 40); /* Bruno Berselli, Mar 25 2013 */
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Philippe Deléham, Mar 22 2013
STATUS
approved