OFFSET
0,2
LINKS
Index entries for linear recurrences with constant coefficients, signature (11,-26,16).
FORMULA
G.f.: 1/(1-8*x) - 1/(1-2*x) + 1/(1-x).
E.g.f.: e^(8*x) - e^(2*x) + e^x.
a(n) = 10*a(n-1) - 16*a(n-2) + 7 with a(0)=1, a(1)=7 - Vincenzo Librandi, Jul 21 2010
a(n) = A248217(n)+1. - R. J. Mathar, Mar 10 2022
MATHEMATICA
Table[8^n-2^n+1, {n, 0, 30}] (* or *) LinearRecurrence[{11, -26, 16}, {1, 7, 61}, 30] (* Harvey P. Dale, Feb 25 2014 *)
PROG
(PARI) a(n)=8^n-2^n+1 \\ Charles R Greathouse IV, Sep 24 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Mohammad K. Azarian, Jan 25 2009
STATUS
approved