OFFSET
0,1
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (11,-24).
FORMULA
From Mohammad K. Azarian, Jan 11 2009: (Start)
G.f.: 1/(1-3*x) + 1/(1-8*x).
E.g.f.: exp(3*x) + exp(8*x). (End)
a(n) = 11*a(n-1) - 24*a(n-2) with a(0)=2, a(1)=11. - Vincenzo Librandi, Jul 21 2010
MATHEMATICA
Table[3^n + 8^n, {n, 0, 25}]
LinearRecurrence[{11, -24}, {2, 11}, 30] (* Harvey P. Dale, Mar 10 2015 *)
PROG
(Magma) [3^n+8^n: n in [0..30]]; // G. C. Greubel, Jan 14 2024
(SageMath) [3^n+9^n for n in range(31)] # G. C. Greubel, Jan 14 2024
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Robert G. Wilson v, Aug 25 2002
STATUS
approved