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.

A261794 a(n) is the smallest nonzero number that is not a substring of n in decimal representation.

Original entry on oeis.org

1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 2, 2, 2, 2, 2, 2, 2, 1, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1
Offset: 0

Views

Author

Reinhard Zumkeller, Sep 01 2015

Keywords

Comments

A261795(n) = a(A261793(n)).

Crossrefs

Programs

  • Haskell
    import Data.List (isInfixOf)
    a261794 x = f $ tail a031298_tabf where
       f (cs:css) = if isInfixOf cs (a031298_row x)
                       then f css else foldr (\d v -> 10 * v + d) 0 cs

Extensions

Name corrected by Álvar Ibeas, Sep 08 2020