OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (6,-5).
FORMULA
G.f.: (1+3*x)/((1-5*x)*(1-x)).
E.g.f. 2*exp(5*x)-exp(x).
a(n) = 5*a(n-1)+4, with a(0)=1. - Vincenzo Librandi, Aug 01 2010
MATHEMATICA
CoefficientList[Series[(1 + 3 x) / ((1 - 5 x) (1 - x)), {x, 0, 40}], x] (* Vincenzo Librandi, Aug 10 2013 *)
NestList[5#+4&, 1, 30] (* Harvey P. Dale, Jul 04 2014 *)
PROG
(Magma) [2*5^n-1: n in [0..30]]; // Vincenzo Librandi, Aug 10 2013
(PARI) a(n)=2*5^n-1 \\ Charles R Greathouse IV, Sep 24 2015
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Paul Barry, Mar 26 2003
STATUS
approved