OFFSET
0,1
LINKS
G. C. Greubel and Jon E. Schoenfield, Table of n, a(n) for n = 0..1000 (terms 0..160 from G. C. Greubel).
Index entries for linear recurrences with constant coefficients, signature (10,-21).
FORMULA
From Mohammad K. Azarian, Jan 11 2009: (Start)
G.f.: 1/(1-3*x) + 1/(1-7*x).
E.g.f.: exp(3*x) + exp(7*x). (End)
a(n) = 10*a(n-1)-21*a(n-2) with a(0)=2, a(1)=10. - Vincenzo Librandi, Jul 21 2010
a(n) = 2 * A081336(n). - Michel Marcus, Oct 07 2015
MATHEMATICA
Table[3^n + 7^n, {n, 0, 25}]
RecurrenceTable[{a[0]== 2, a[1]== 10, a[n]== 10*a[n-1] - 21*a[n-2]}, a, {n, 30}] (* G. C. Greubel, Aug 20 2015 *)
PROG
(PARI) first(m)=vector(m, i, i--; 3^i + 7^i) \\ Anders Hellström, Aug 20 2015
(PARI) Vec(1/(1-3*x) + 1/(1-7*x) + O(x^50)) \\ Altug Alkan, Oct 12 2015
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Robert G. Wilson v, Aug 25 2002
STATUS
approved