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.

A022932 a(n) is the number of powers Pi^m between e^n and e^(n+1).

Original entry on oeis.org

0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1
Offset: 0

Views

Author

Keywords

Comments

Characteristic function of A059561. - Antti Karttunen, Sep 22 2017

Crossrefs

Cf. A059562 (positions of zeros after the initial a(0)=0), A059561 (of ones).

Programs

  • Mathematica
    t = Table[IntegerPart[i/Log[Pi]] - IntegerPart[(i - 1)/Log[Pi]], {i, 1000000}]; (* Hans Havermann, Sep 22 2017 *)
  • PARI
    a(n)=(n+1)\log(Pi) - n\log(Pi) \\ Charles R Greathouse IV, Jan 16 2017

Extensions

More terms from Antti Karttunen, Sep 22 2017