login
A074577
a(n) = 6^n + 7^n + 8^n.
1
3, 21, 149, 1071, 7793, 57351, 426449, 3200631, 24221633, 184649031, 1416683249, 10930058391, 84737546273, 659705518311, 5154633748049, 40402118583351, 317529017187713, 2501356987117191, 19744372064060849, 156123443001239511
OFFSET
0,1
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
KEYWORD
easy,nonn
AUTHOR
Robert G. Wilson v, Aug 23 2002
STATUS
approved