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.

A061716 Binary order of n-th prime.

Original entry on oeis.org

1, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10
Offset: 1

Views

Author

Labos Elemer, Jun 20 2001

Keywords

Comments

Apart from the first terms, the same as A035100. - R. J. Mathar, Oct 02 2008

Crossrefs

Programs

  • Mathematica
    Ceiling[Log2[Prime[Range[110]]]] (* Harvey P. Dale, Apr 12 2023 *)
  • PARI
    a(n) = { logint(prime(n)-1, 2) + 1 } \\ Harry J. Smith, Jul 26 2009

Formula

a(n) = ceiling(log_2(prime(n))) = A029837(A000040(n)).

Extensions

Offset changed from 0 to 1 by Harry J. Smith, Jul 26 2009