OFFSET
0,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (4,-3).
FORMULA
a(n) = 4*a(n-1) - 3*a(n-2).
G.f.: ( 18 - 14*x ) / ( (1-x)*(1-3*x) ).
a(n) = 3*a(n-1) - a(n-2) + 3*a(n-3) + 8.
From G. C. Greubel, Mar 20 2021: (Start)
E.g.f.: 2*( 10*exp(3*x) - exp(x) ). (End)
a(n) = 2 * A198645(n). - Joerg Arndt, Mar 21 2021
MAPLE
seq(2*(10*3^n -1), n=0..30); # G. C. Greubel, Mar 20 2021
MATHEMATICA
2*(10*3^Range[0, 30] -1) (* G. C. Greubel, Mar 20 2021 *)
PROG
(Magma) [2*(10*3^n-1): n in [0..30]]; // Vincenzo Librandi, Aug 07 2011
(Sage) [2*(10*3^n - 1) for n in (0..30)] # G. C. Greubel, Mar 20 2021
CROSSREFS
KEYWORD
nonn,easy,less
AUTHOR
Paul Curtz, Jan 21 2009
STATUS
approved