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.

A216544 Decimal expansion of Sum_{k=1..500000} (-1)^(k-1)/(2k-1).

Original entry on oeis.org

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

Views

Author

N. J. A. Sloane, Sep 08 2012

Keywords

Comments

An approximation to Pi/4. The constant is rational, by definition (a product of finitely many rational numbers).

Examples

			0.7853976633974483101156608458173757210493228498437757627437361733374541...
		

Crossrefs

Programs

  • Maple
    Digits:=300; M:=500000; add(evalf((-1)^(k-1)/(2*k-1)), k=1..M);
  • Mathematica
    RealDigits[Sum[(-1)^(k-1)/(2k-1),{k,500000}],10,130][[1]] (* Harvey P. Dale, Sep 11 2024 *)