OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..300
Index entries for linear recurrences with constant coefficients, signature (3).
FORMULA
a(n) = (8*3^n - 5*0^n)/3.
G.f.: (1+5*x)/(1-3*x).
E.g.f.: (8*exp(3x) - 5*exp(0))/3.
a(n) = A005051(n-1), n > 0. - R. J. Mathar, Sep 17 2008
MATHEMATICA
Join[{1}, NestList[3#&, 8, 30]] (* Harvey P. Dale, Apr 08 2020 *)
PROG
(Magma) [(8*3^n-5*(0)^n)/3: n in [0..30]]; // Vincenzo Librandi, Jun 10 2011
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Paul Barry, May 01 2003
STATUS
approved