OFFSET
1,3
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (5,1,-5).
FORMULA
O.g.f.: (1 -4*x -x^2)/((1+x)*(1-5*x)). - R. J. Mathar, Dec 05 2007
a(n) = (1/3)*(2*5^(n-2) - 2*(-1)^n) + (1/5)*0^(n-1). - Ridouane Oudra, Feb 22 2021
E.g.f.: (1/75)*(48 + 158x - 50*exp(-x) + 2*exp(5*x)). - G. C. Greubel, Jul 13 2021
MATHEMATICA
LinearRecurrence[{5, 1, -5}, {1, 0, 4, 16}, 40] (* G. C. Greubel, Jul 13 2021 *)
PROG
(PARI) my(x='x+O('x^33)); Vec((x^2+4*x-1)/((x+1)*(5*x-1))) \\ Joerg Arndt, Feb 22 2021
(Sage) [1]+[(2/3)*(5^(n-2) - (-1)^n) for n in (2..40)] # G. C. Greubel, Jul 13 2021
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Roger L. Bagula, Sep 23 2006
EXTENSIONS
Edited by N. J. A. Sloane, Oct 15 2006
Edited by Joerg Arndt, Feb 22 2021
STATUS
approved