cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A074608 a(n) = 3^n + 7^n.

Original entry on oeis.org

2, 10, 58, 370, 2482, 17050, 118378, 825730, 5771362, 40373290, 282534298, 1977503890, 13841818642, 96890604730, 678227855818, 4747575858850, 33232973616322, 232630643127370, 1628413985330938, 11398896347634610
Offset: 0

Views

Author

Robert G. Wilson v, Aug 25 2002

Keywords

Crossrefs

Programs

  • 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 *)
  • 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

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