OFFSET
0,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..300
Index entries for linear recurrences with constant coefficients, signature (21,-146,336).
FORMULA
From Mohammad K. Azarian, Dec 30 2008: (Start)
G.f.: 1/(1-6*x) + 1/(1-7*x) + 1/(1-8*x).
E.g.f.: e^(6*x) + e^(7*x) + e^(8*x). (End)
a(n) = 21*a(n-1) - 146*a(n-2) + 336*a(n-3); a(0)=3, a(1)=21, a(2)=149. - Harvey P. Dale, Dec 25 2011
MATHEMATICA
Table[6^n + 7^n + 8^n, {n, 0, 19}]
LinearRecurrence[{21, -146, 336}, {3, 21, 149}, 20] (* Harvey P. Dale, Dec 25 2011 *)
PROG
(Magma) [6^n + 7^n + 8^n: n in [0..20]]; // Vincenzo Librandi, May 20 2011
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Robert G. Wilson v, Aug 23 2002
STATUS
approved