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 (11,-31,21).
FORMULA
G.f.: 1/(1-7*x)+1/(1-3*x)-1/(1-x). E.g.f.: e^(7*x)+e^(3*x)-e^x.
a(n)=10*a(n-1)-21*a(n-2)-12 with a(0)=1, a(1)=9 - Vincenzo Librandi, Jul 21 2010
a(0)=1, a(1)=9, a(2)=57, a(n)=11*a(n-1)-31*a(n-2)+21*a(n-3). - Harvey P. Dale, Nov 09 2012
MATHEMATICA
Table[7^n+3^n-1, {n, 0, 20}] (* or *) LinearRecurrence[{11, -31, 21}, {1, 9, 57}, 20] (* Harvey P. Dale, Nov 09 2012 *)
PROG
(PARI) a(n)=7^n+3^n-1 \\ Charles R Greathouse IV, Jun 11 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Mohammad K. Azarian, Jan 25 2009
STATUS
approved