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.

A025010 a(1) = 5; a(n+1) = a(n)-th nonprime, where nonprimes begin at 4.

Original entry on oeis.org

5, 10, 18, 28, 42, 60, 84, 115, 152, 198, 253, 320, 399, 494, 605, 736, 891, 1072, 1280, 1521, 1800, 2120, 2488, 2910, 3387, 3934, 4552, 5250, 6038, 6929, 7931, 9057, 10324, 11733, 13315, 15076, 17043, 19224, 21656, 24361, 27353, 30660, 34330, 38382, 42866
Offset: 1

Views

Author

Keywords

Crossrefs

Programs

  • Mathematica
    g[ n_Integer ] := (k = n + PrimePi[ n ] + 1; While[ k - PrimePi[ k ] - 1, k++ ]; k); NestList[ g, 5, 45 ]