OFFSET
0,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..200
Index entries for linear recurrences with constant coefficients, signature (10,-31,30).
FORMULA
From Mohammad K. Azarian, Dec 26 2008: (Start)
G.f.: 1/(1-2*x) + 1/(1-3*x) + 1/(1-5*x).
E.g.f.: exp(2*x) + exp(3*x) + exp(5*x). (End)
a(n) = 10*a(n-1) - 31*a(n-2) + 30*a(n-3). - Wesley Ivan Hurt, May 26 2024
MATHEMATICA
Table[2^n + 3^n + 5^n, {n, 0, 21}]
LinearRecurrence[{10, -31, 30}, {3, 10, 38}, 30] (* Harvey P. Dale, Feb 05 2022 *)
PROG
(Magma) [2^n + 3^n + 5^n: n in [0..25]]; // Vincenzo Librandi, Jun 11 2011
(PARI) a(n)=2^n+3^n+5^n \\ Charles R Greathouse IV, Oct 07 2015
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Robert G. Wilson v, Aug 23 2002
STATUS
approved