OFFSET
0,3
COMMENTS
The ratio a(n+1)/a(n) approaches -1.7963219032594415... as n-> infinity.
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (1,1,-5,4).
FORMULA
G.f.: -1/((1 - x)*(1 - x^2 + 4*x^3)).
MAPLE
seq(coeff(series(-1/((1-x)*(1-x^2+4*x^3)), x, n+1), x, n), n = 0..40); # G. C. Greubel, Dec 04 2019
MATHEMATICA
LinearRecurrence[{1, 1, -5, 4}, {-1, -1, -2, 2}, 40] (* Bruno Berselli, May 17 2017 *)
PROG
(PARI) my(x='x+O('x^40)); Vec(-1/((1-x)*(1-x^2+4*x^3))) \\ G. C. Greubel, Dec 04 2019
(Magma) R<x>:=PowerSeriesRing(Integers(), 40); Coefficients(R!( -1/((1-x)*(1-x^2+4*x^3)) )); // G. C. Greubel, Dec 04 2019
(Sage)
def A175714_list(prec):
P.<x> = PowerSeriesRing(ZZ, prec)
return P( -1/((1-x)*(1-x^2+4*x^3)) ).list()
A175714_list(40) # G. C. Greubel, Dec 04 2019
(GAP) a:=[-1, -1, -2, 2];; for n in [5..40] do a[n]:=a[n-1]+a[n-2]-5*a[n-3] + 4*a[n-4]; od; a; # G. C. Greubel, Dec 04 2019
CROSSREFS
KEYWORD
sign,easy
AUTHOR
Roger L. Bagula, Dec 04 2010
STATUS
approved