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