OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..200
Index entries for linear recurrences with constant coefficients, signature (8,-19,12).
FORMULA
G.f.: 1/(1-4*x)+1/(1-3*x)-1/(1-x). E.g.f.: e^(4*x)+e^(3*x)-e^x.
a(n) = 7*a(n-1) - 12*a(n-2) -6, n>1 - Gary Detlefs, Jun 21 2010
a(n) = 8*a(n-1) - 19*a(n-2) + 12*a(n-3), n>2, a(0)=1, a(1)=6, a(2)=24. - L. Edson Jeffery, Oct 17 2012
a(n) = A074605(n)-1. - R. J. Mathar, Mar 10 2022
MATHEMATICA
Table[4^n + 3^n - 1, {n, 0, 50}] (* Vincenzo Librandi, Oct 17 2012 *)
LinearRecurrence[{8, -19, 12}, {1, 6, 24}, 30] (* Harvey P. Dale, Apr 28 2018 *)
PROG
(Magma) [(4^n + 3^n - 1): n in [0..30]]; // Vincenzo Librandi, Oct 17 2012
(PARI) a(n)=4^n+3^n-1 \\ Charles R Greathouse IV, Sep 24 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Mohammad K. Azarian, Jan 25 2009
STATUS
approved