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.

A020951 a(2n+1)=a(n), a(2n)=a(n)+a(n-1).

Original entry on oeis.org

1, 0, 1, 0, 1, 1, 1, 0, 1, 1, 2, 1, 2, 1, 1, 0, 1, 1, 2, 1, 3, 2, 3, 1, 3, 2, 3, 1, 2, 1, 1, 0, 1, 1, 2, 1, 3, 2, 3, 1, 4, 3, 5, 2, 5, 3, 4, 1, 4, 3, 5, 2, 5, 3, 4, 1, 3, 2, 3, 1, 2, 1, 1, 0, 1, 1, 2, 1, 3, 2, 3, 1, 4, 3, 5, 2, 5, 3, 4, 1, 5
Offset: 0

Views

Author

Keywords

Crossrefs

Cf. A082498.

Programs

  • Haskell
    a020951 n = a020951_list !! n
    a020951_list = 1 : ws where
       ws = 0 : 1 : concat (zipWith (\u v -> [u, u + v]) ws $ tail ws)
    -- Reinhard Zumkeller, Jul 19 2013, Mar 13 2013