OFFSET
0,3
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000 (terms 0..100 from Vincenzo Librandi)
Index entries for linear recurrences with constant coefficients, signature (5,-3,7).
FORMULA
a(n) = 5*a(n-1) - 3*a(n-2) + 7*a(n-3).
G.f.: x*(1-3*x)/(1-5*x+3*x^2-7*x^3). - Bruno Berselli, Jul 11 2011
MATHEMATICA
(See A192814.)
LinearRecurrence[{5, -3, 7}, {0, 1, 2}, 30] (* G. C. Greubel, Jan 03 2019 *)
PROG
(PARI) my(x='x+O('x^30)); concat([0], Vec(x*(1-3*x)/(1-5*x+3*x^2-7*x^3))) \\ G. C. Greubel, Jan 03 2019
(Magma) m:=30; R<x>:=PowerSeriesRing(Integers(), m); [0] cat Coefficients(R!( x*(1-3*x)/(1-5*x+3*x^2-7*x^3) )); // G. C. Greubel, Jan 03 2019
(Sage) (x*(1-3*x)/(1-5*x+3*x^2-7*x^3)).series(x, 30).coefficients(x, sparse=False) # G. C. Greubel, Jan 03 2019
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Jul 10 2011
STATUS
approved