OFFSET
0,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..200
Index entries for linear recurrences with constant coefficients, signature (17,-84,108).
FORMULA
From Mohammad K. Azarian, Dec 27 2008: (Start)
G.f.: 1/(1-2*x) + 1/(1-6*x) + 1/(1-9*x).
E.g.f.: exp(2*x) + exp(6*x) + exp(9*x). (End)
a(n) = 17*a(n-1) - 84*a(n-2) + 108*a(n-3); a(0)=3, a(1)=17, a(2)=121. - Harvey P. Dale, Feb 20 2015
MATHEMATICA
Table[2^n + 6^n + 9^n, {n, 0, 20}]
LinearRecurrence[{17, -84, 108}, {3, 17, 121}, 30] (* Harvey P. Dale, Feb 20 2015 *)
PROG
(Magma) [2^n + 6^n + 9^n: n in [0..20]]; // Vincenzo Librandi, Jun 11 2011
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Robert G. Wilson v, Aug 23 2002
STATUS
approved