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.

A120949 2n+3^n+5^n.

Original entry on oeis.org

2, 10, 38, 158, 714, 3378, 16366, 80326, 397202, 1972826, 9824694, 49005294, 244672090, 1222297474, 6108298622, 30531927062, 152630937378, 763068593322, 3815084686150, 19074648589630, 95370918425066, 476847618556370
Offset: 0

Views

Author

Mohammad K. Azarian, Aug 19 2006

Keywords

Crossrefs

Programs

  • Magma
    [2*n+3^n+5^n: n in [0..30]]; // Vincenzo Librandi, Feb 27 2013
    
  • Mathematica
    Table[2 n + 3^n + 5^n, {n, 0, 30}] (* or *) CoefficientList[Series[2 (1 - 5 x + x^2 + 11 x^3)/((1 -5 x) (1 - 3 x) (1 - x)^2), {x, 0, 30}], x] (* Vincenzo Librandi, Feb 26 2013 *)
    LinearRecurrence[{10,-32,38,-15},{2,10,38,158},30] (* Harvey P. Dale, Jan 18 2021 *)
  • PARI
    a(n)=2*n+3^n+5^n \\ Charles R Greathouse IV, Feb 27 2013

Formula

G.f.: 2*(1-5*x+x^2+11*x^3)/((1-5*x)*(1-3*x)*(1-x)^2). - Vincenzo Librandi, Feb 26 2013

Extensions

Edited by Ray Chandler, Sep 06 2006