OFFSET
0,2
LINKS
Harvey P. Dale, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (12,-29,18).
FORMULA
G.f.: 1/(1-9*x)+1/(1-2*x)-1/(1-x).
E.g.f.: e^(9*x)+e^(2*x)-e^x.
a(n) = 11*a(n-1)-18*a(n-2)-8 with a(0)=1, a(1)=10. - Vincenzo Librandi, Jul 21 2010
a(n) = A074604(n)-1. - R. J. Mathar, Mar 10 2022
MATHEMATICA
Table[9^n+2^n-1, {n, 0, 30}] (* or *) LinearRecurrence[{12, -29, 18}, {1, 10, 84}, 30] (* Harvey P. Dale, Sep 09 2022 *)
PROG
(PARI) a(n)=9^n+2^n-1^n \\ Charles R Greathouse IV, Jun 11 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Mohammad K. Azarian, Jan 24 2009
STATUS
approved