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 (10,-27,10,-1).
FORMULA
G.f.: (1-8*x+4*x^2-x^3)/(1-5*x+x^2)^2.
MAPLE
seq(coeff(series((1-8*x+4*x^2-x^3)/(1-5*x+x^2)^2, x, n+1), x, n), n = 0..30); # G. C. Greubel, Nov 25 2019
MATHEMATICA
LinearRecurrence[{10, -27, 10, -1}, {1, 2, -3, -75}, 30] (* Harvey P. Dale, Oct 29 2017 *)
PROG
(PARI) my(x='x+O('x^30)); Vec((1-8*x+4*x^2-x^3)/(1-5*x+x^2)^2) \\ G. C. Greubel, Nov 25 2019
(Magma) R<x>:=PowerSeriesRing(Integers(), 30); Coefficients(R!( (1-8*x+4*x^2-x^3)/(1-5*x+x^2)^2 )); // G. C. Greubel, Nov 25 2019
(Sage)
def A176290_list(prec):
P.<x> = PowerSeriesRing(ZZ, prec)
return P((1-8*x+4*x^2-x^3)/(1-5*x+x^2)^2).list()
A176290_list(30) # G. C. Greubel, Nov 25 2019
(GAP) a:=[1, 2, -3, -75];; for n in [5..30] do a[n]:=10*a[n-1]-27*a[n-2]+10*a[n-3] -a[n-4]; od; a; # G. C. Greubel, Nov 25 2019
CROSSREFS
KEYWORD
easy,sign
AUTHOR
Paul Barry, Apr 14 2010
STATUS
approved