OFFSET
0,2
LINKS
Harvey P. Dale, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (15,-62,48).
FORMULA
G.f.: 1/(1-8*x)-1/(1-6*x)+1/(1-x). E.g.f.: e^(8*x)-e^(6*x)+e^x.
a(n)=14*a(n-1)-48*a(n-2)+35 with a(0)=1, a(1)=3 - Vincenzo Librandi, Jul 21 2010
MATHEMATICA
Table[8^n-6^n+1, {n, 0, 20}] (* or *) LinearRecurrence[{15, -62, 48}, {1, 3, 29}, 20] (* Harvey P. Dale, Jul 12 2020 *)
PROG
(PARI) a(n)=8^n-6^n+1 \\ Charles R Greathouse IV, Jun 11 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Mohammad K. Azarian, Jan 31 2009
STATUS
approved