OFFSET
0,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (6,-5).
FORMULA
a(n) = 5*a(n-1) + 20 with a(0) = -4.
From R. J. Mathar, Jan 03 2011: (Start)
G.f.: 4*(-1+6*x)/((1-5*x)*(1-x)).
a(n) = 4*A104891(n-1), n > 0. (End)
a(n) = 6*a(n-1) - 5*a(n-2) for n > 1. - Vincenzo Librandi, Jan 25 2013
E.g.f.: exp(5*x) - 5*exp(x). - G. C. Greubel, Jan 28 2019
EXAMPLE
MATHEMATICA
5^Range[0, 30]-5 (* Vladimir Joseph Stephan Orlovsky, Feb 20 2011 *)
LinearRecurrence[{6, -5}, {-4, 0}, 30] (* Harvey P. Dale, Aug 23 2024 *)
PROG
(Magma) [5^n-5: n in [0..25]];
(PARI) vector(30, n, n--; 5^n-5) \\ G. C. Greubel, Jan 28 2019
(Sage) [5^n-5 for n in range(30)] # G. C. Greubel, Jan 28 2019
(GAP) List([0..30], n -> 5^n-5); # G. C. Greubel, Jan 28 2019
CROSSREFS
KEYWORD
sign,easy
AUTHOR
Vincenzo Librandi, Dec 25 2010
STATUS
approved