login
A155654
11^n - 6^n + 1.
20
1, 6, 86, 1116, 13346, 153276, 1724906, 19207236, 212679266, 2347869996, 25876958426, 284948873556, 3136251594386, 34509651449916, 379671469419146, 4176777984431076, 45946908753664706, 505430101839849036
OFFSET
0,2
FORMULA
G.f.: 1/(1-11*x)-1/(1-6*x)+1/(1-x). E.g.f.: e^(11*x)-e^(6*x)+e^x.
a(n)=17*a(n-1)-66*a(n-2)+50 with a(0)=1, a(1)=6 [From Vincenzo Librandi, Jul 21 2010]
MATHEMATICA
Table[11^n-6^n+1, {n, 0, 30}] (* or *) LinearRecurrence[{18, -83, 66}, {1, 6, 86}, 30] (* Harvey P. Dale, Apr 11 2023 *)
PROG
(PARI) a(n)= 11^n-6^n+1 \\ Charles R Greathouse IV, Dec 22 2011
CROSSREFS
Sequence in context: A209035 A230782 A318042 * A231165 A091881 A004701
KEYWORD
nonn,easy
AUTHOR
Mohammad K. Azarian, Jan 31 2009
STATUS
approved