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.

A199424 Index of first row in triangle A199333 containing n-th prime.

Original entry on oeis.org

2, 3, 4, 4, 6, 5, 8, 9, 6, 6, 12, 7, 14, 15, 16, 7, 18, 19, 20, 9, 22, 23, 24, 25, 8, 27, 28, 8, 30, 31, 11, 33, 34, 35, 36, 9, 12, 39, 40, 41, 42, 43, 13, 45, 46, 47, 9, 10, 50, 14, 52, 53, 54, 55, 56, 57, 58, 15, 60, 61, 62, 63, 64, 65, 66, 16, 11, 69, 70
Offset: 1

Views

Author

Reinhard Zumkeller, Nov 09 2011

Keywords

Comments

a(n) <= n + 1.

Crossrefs

Programs

  • Haskell
    import Data.List (findIndex)
    import Data.Maybe (fromJust)
    a199424 n = fromJust $ findIndex (elem $ a000040 n) a199333_tabl