OFFSET
0,2
LINKS
Index entries for linear recurrences with constant coefficients, signature (17,-71,55).
FORMULA
G.f.: 1/(1-11*x)-1/(1-5*x)+1/(1-x). E.g.f.: e^(11*x)-e^(5*x)+e^x.
a(n)=16*a(n-1)-55*a(n-2)+40 with a(0)=1, a(1)=7 - Vincenzo Librandi, Jul 21 2010
a(0)=1, a(1)=7, a(2)=97, a(n)=17*a(n-1)-71*a(n-2)+55*a(n-3) [From Harvey P. Dale, Jul 11 2011]
MATHEMATICA
Table[11^n-5^n+1, {n, 0, 20}] (* or *) LinearRecurrence[{17, -71, 55}, {1, 7, 97}, 20] (* Harvey P. Dale, Jul 11 2011 *)
PROG
(PARI) a(n)=11^n-5^n+1 \\ Charles R Greathouse IV, Jun 11 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Mohammad K. Azarian, Jan 30 2009
STATUS
approved