login
A155644
11^n-5^n+1.
16
1, 7, 97, 1207, 14017, 157927, 1755937, 19409047, 213968257, 2355994567, 25927658977, 285262842487, 3138184236097, 34521491440807, 379743730067617, 4177217651837527, 45949577275681537, 505446265559840647
OFFSET
0,2
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
KEYWORD
nonn,easy
AUTHOR
Mohammad K. Azarian, Jan 30 2009
STATUS
approved