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.

A067017 Start with a(0)=1, a(1)=4, a(2)=3, a(3)=2; for n>=3, a(n+1) = mex_i (a(i)+a(n-i)), where mex means smallest nonnegative missing number.

Original entry on oeis.org

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

Views

Author

N. J. A. Sloane, Feb 17 2002

Keywords

References

  • R. K. Guy, Unsolved Problems in Number Theory, E27.

Crossrefs

Programs

  • Haskell
    import Data.List ((\\))
    a067017 n = a067017_list !! n
    a067017_list =  [1,4,3,2] ++ f [2,3,4,1] where
      f xs = mexi : f (mexi : xs) where
        mexi = head $ [0..] \\ zipWith (+) xs (reverse xs)
    -- Reinhard Zumkeller, May 05 2012

Extensions

More terms from John W. Layman, Feb 20 2002