login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A074608
a(n) = 3^n + 7^n.
7
2, 10, 58, 370, 2482, 17050, 118378, 825730, 5771362, 40373290, 282534298, 1977503890, 13841818642, 96890604730, 678227855818, 4747575858850, 33232973616322, 232630643127370, 1628413985330938, 11398896347634610
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).
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
KEYWORD
easy,nonn
AUTHOR
Robert G. Wilson v, Aug 25 2002
STATUS
approved