OFFSET
0,2
LINKS
Michael De Vlieger, Table of n, a(n) for n = 0..1430
Index entries for linear recurrences with constant coefficients, signature (8,-17,10).
FORMULA
G.f.: 1/(1-5*x)+1/(1-2*x)-1/(1-x).
E.g.f.: e^(5*x)+e^(2*x)-e^x.
a(n) = 7*a(n-1)-10*a(n-2)-4 with a(0)=1, a(1)=6. - Vincenzo Librandi, Jul 21 2010
a(n) = A074600(n)-1. - R. J. Mathar, Mar 10 2022
MATHEMATICA
CoefficientList[Series[1/(1 - 5 x) + 1/(1 - 2 x) - 1/(1 - x), {x, 0, 21}], x] (* Michael De Vlieger, Mar 02 2022 *)
PROG
(PARI) a(n)=5^n+2^n-1 \\ Charles R Greathouse IV, Sep 24 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Mohammad K. Azarian, Jan 24 2009
STATUS
approved