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.

A221175 a(0)=-5, a(1)=6; thereafter a(n) = 2*a(n-1) + a(n-2).

Original entry on oeis.org

-5, 6, 7, 20, 47, 114, 275, 664, 1603, 3870, 9343, 22556, 54455, 131466, 317387, 766240, 1849867, 4465974, 10781815, 26029604, 62841023, 151711650, 366264323, 884240296, 2134744915, 5153730126, 12442205167, 30038140460, 72518486087, 175075112634
Offset: 0

Views

Author

N. J. A. Sloane, Jan 04 2013

Keywords

Crossrefs

Programs

  • Haskell
    a221175 n = a221175_list !! n
    a221175_list = -5 : 6 : zipWith (+)
                            (map (* 2) $ tail a221175_list) a221175_list
    -- Reinhard Zumkeller, Jan 04 2013
    
  • PARI
    Vec(-(16*x-5)/(x^2+2*x-1) + O(x^50)) \\ Colin Barker, Jul 10 2015

Formula

a(n) = 16*A000129(n)-5*A000129(n+1). - R. J. Mathar, Jan 14 2013
G.f.: -(16*x-5) / (x^2+2*x-1). - Colin Barker, Jul 10 2015