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.

A000193 Nearest integer to log n.

Original entry on oeis.org

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

Views

Author

Keywords

Crossrefs

Programs

  • Haskell
    a000193 = round . log . fromIntegral  -- Reinhard Zumkeller, Mar 17 2015
  • Maple
    Digits := 100; f := n->round(evalf(log(n))); [ seq(f(n), n=1..100) ];
  • Mathematica
    Round[Log[Range[100]]] (* Paolo Xausa, Jun 28 2024 *)
  • PARI
    a(n)=round(log(n))