login
A155668
11^n-8^n+1.
6
1, 4, 58, 820, 10546, 128284, 1509418, 17390020, 197581666, 2223729964, 24863682778, 276721736020, 3069708899986, 33972956330044, 375351787072138, 4142063797326820, 45668254886861506, 503195228685608524
OFFSET
0,2
FORMULA
G.f.: 1/(1-11*x)-1/(1-8*x)+1/(1-x). E.g.f.: e^(11*x)-e^(8*x)+e^x.
a(n)=19*a(n-1)-88*a(n-2)+70 with a(0)=1, a(1)=4 - Vincenzo Librandi, Jul 21 2010
MATHEMATICA
Table[11^n-8^n+1, {n, 0, 20}] (* or *) LinearRecurrence[{20, -107, 88}, {1, 4, 58}, 20] (* Harvey P. Dale, Jan 12 2019 *)
PROG
(PARI) a(n)=11^n-8^n+1 \\ Charles R Greathouse IV, Jun 11 2015
KEYWORD
nonn,easy
AUTHOR
Mohammad K. Azarian, Jan 31 2009
STATUS
approved