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.

A006941 Expansion of Pi in base 8.

Original entry on oeis.org

3, 1, 1, 0, 3, 7, 5, 5, 2, 4, 2, 1, 0, 2, 6, 4, 3, 0, 2, 1, 5, 1, 4, 2, 3, 0, 6, 3, 0, 5, 0, 5, 6, 0, 0, 6, 7, 0, 1, 6, 3, 2, 1, 1, 2, 2, 0, 1, 1, 1, 6, 0, 2, 1, 0, 5, 1, 4, 7, 6, 3, 0, 7, 2, 0, 0, 2, 0, 2, 7, 3, 7, 2, 4, 6, 1, 6, 6, 1, 1, 6, 3, 3, 1, 0, 4, 5, 0, 5, 1, 2, 0, 2, 0, 7, 4, 6, 1, 6, 1, 5, 0, 0, 2, 3
Offset: 1

Views

Author

Keywords

Examples

			3.1103755242102643021514230630505600670...
		

References

  • D. E. Knuth, The Art of Computer Programming. Addison-Wesley, Reading, MA, Vol. 1, p. 614.
  • N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).

Crossrefs

Pi in base b: A004601 (b=2), A004602 (b=3), A004603 (b=4), A004604 (b=5), A004605 (b=6), A004606 (b=7), this sequence (b=8), A004608 (b=9), A000796 (b=10), A068436 (b=11), A068437 (b=12), A068438 (b=13), A068439 (b=14), A068440 (b=15), A062964 (b=16), A060707 (b=60).
Cf. A007514.

Programs

  • Maple
    convert(evalf(Pi), octal, 120);  # Alois P. Heinz, Dec 16 2018
  • Mathematica
    RealDigits[ N[ Pi, 105], 8] [[1]]
    Table[ResourceFunction["NthDigit"][Pi, n, 8], {n, 1, 105}] (* Joan Ludevid, Sep 13 2022; easy to compute a(10000000)=1 with this function; requires Mathematica 12.0+ *)

Formula

a(n) = 4*A004601(3n) + 2*A004601(3n+1) + 1*A004601(3n+2). - Jason Kimberley, Nov 06 2012

Extensions

More terms from Michel ten Voorde, Apr 14 2001