OFFSET
0,2
LINKS
Index entries for linear recurrences with constant coefficients, signature (17,-76,60).
FORMULA
G.f.: 1/(1-10*x) + 1/(1-6*x) - 1/(1-x).
E.g.f.: e^(10*x) + e^(6*x) - e^x.
a(n) = 16*a(n-1) - 60*a(n-2) - 45; a(0)=1, a(1)=15. - Vincenzo Librandi, Jul 21 2010
a(n) = 17*a(n-1) - 76*a(n-2) + 60*a(n-3); a(0)=1, a(1)=15, a(2)=135. - Harvey P. Dale, Mar 30 2014
MATHEMATICA
Table[10^n+6^n-1, {n, 0, 20}] (* or *) LinearRecurrence[{17, -76, 60}, {1, 15, 135}, 20] (* Harvey P. Dale, Mar 30 2014 *)
PROG
(PARI) a(n)=10^n+6^n-1 \\ Charles R Greathouse IV, Sep 24 2015
(Magma) [10^n + 6^n - 1 : n in [0..20]]; // Wesley Ivan Hurt, Jan 06 2024
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Mohammad K. Azarian, Jan 31 2009
STATUS
approved