OFFSET
0,2
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (0,9,-4).
FORMULA
G.f.: (1 + 2*x - 3*x^2)/(1 - 9*x^2 + 4*x^3).
MAPLE
seq(coeff(series((1+2*x-3*x^2)/(1-9*x^2+4*x^3), x, n+1), x, n), n = 0..30); # G. C. Greubel, Oct 02 2019
MATHEMATICA
LinearRecurrence[{0, 9, -4}, {1, 2, 6}, 30] (* G. C. Greubel, Oct 02 2019 *)
PROG
(PARI) my(x='x+O('x^30)); Vec((1+2*x-3*x^2)/(1-9*x^2+4*x^3)) \\ G. C. Greubel, Oct 02 2019
(Magma) R<x>:=PowerSeriesRing(Integers(), 30); Coefficients(R!( (1+2*x-3*x^2)/(1-9*x^2+4*x^3) )); // G. C. Greubel, Oct 02 2019
(Sage)
def A122109_list(prec):
P.<x> = PowerSeriesRing(ZZ, prec)
return P((1+2*x-3*x^2)/(1-9*x^2+4*x^3)).list()
A122109_list(30) # G. C. Greubel, Oct 02 2019
(GAP) a:=[1, 2, 6];; for n in [4..30] do a[n]:=9*a[n-2]-4*a[n-3]; od; a; # G. C. Greubel, Oct 02 2019
CROSSREFS
KEYWORD
sign
AUTHOR
Philippe Deléham, Oct 18 2006
EXTENSIONS
Terms a(26) onward added by G. C. Greubel, Oct 02 2019
STATUS
approved