OFFSET
0,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (9,-20).
FORMULA
From Mohammad K. Azarian, Jan 11 2009: (Start)
G.f.: 1/(1-4*x) + 1/(1-5*x).
E.g.f.: exp(4*x) + exp(5*x). (End)
a(n) = 9*a(n-1) - 20*a(n-2), with n>1, a(0)=2, a(1)=9. - Vincenzo Librandi, Jul 21 2010
MATHEMATICA
Table[4^n + 5^n, {n, 0, 25}]
CoefficientList[Series[1/(1 - 4 x) + 1/(1 - 5 x), {x, 0, 30}], x] (* Vincenzo Librandi, Feb 06 2013 *)
PROG
(Magma) [4^n + 5^n: n in [0..30]]; // Vincenzo Librandi, Feb 06 2013
(SageMath) [4^+5^n for n in range(31)] # G. C. Greubel, Jan 13 2024
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Robert G. Wilson v, Aug 25 2002
STATUS
approved