OFFSET
0,2
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000 (terms 0..200 from Vincenzo Librandi)
Index entries for linear recurrences with constant coefficients, signature (5,-4).
FORMULA
a(n) = 4*a(n-1) + 21.
G.f.: (1+20*x)/((1-x)*(1-4*x)). - R. J. Mathar, Sep 13 2008
From G. C. Greubel, Sep 30 2017: (Start)
a(n) = 5*a(n-1) - 4*a(n-2).
E.g.f.: 8*exp(4*x) - 7*exp(x). (End)
MAPLE
MATHEMATICA
Table[8*4^n-7, {n, 0, 30}] (* Wesley Ivan Hurt, Feb 15 2014 *)
PROG
(Magma) [8*4^n-7: n in [0..30]]; // Vincenzo Librandi, May 31 2011
(PARI) x='x+O('x^50); Vec((1+20*x)/((1-x)*(1-4*x))) \\ G. C. Greubel, Sep 30 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Paul Curtz, Sep 12 2008
EXTENSIONS
Edited by N. J. A. Sloane, Sep 13 2008
More terms from R. J. Mathar, Sep 13 2008
More terms from Vincenzo Librandi, May 31 2011
Better name (using formula from R. J. Mathar) from Joerg Arndt, Feb 16 2014
STATUS
approved