OFFSET
0,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (19,-116,224).
FORMULA
From Mohammad K. Azarian, Dec 30 2008: (Start)
G.f.: 1/(1-4*x) + 1/(1-7*x) + 1/(1-8*x).
E.g.f.: exp(4*x) + exp(7*x) + exp(8*x). (End)
a(n) = 19*a(n-1) - 116*a(n-2) + 224*a(n-3). - Wesley Ivan Hurt, Apr 19 2021
MATHEMATICA
Table[4^n + 7^n + 8^n, {n, 0, 20}]
LinearRecurrence[{19, -116, 224}, {3, 19, 129}, 20] (* Harvey P. Dale, Aug 15 2016 *)
PROG
(Magma) [4^n + 7^n + 8^n: n in [0..20]]; // Vincenzo Librandi, Aug 14 2011
(PARI) vector(20, n, n--; 4^n + 7^n + 8^n) \\ G. C. Greubel, Nov 08 2018
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Robert G. Wilson v, Aug 23 2002
STATUS
approved