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.

A273264 Volume of unit n-ball, rounded to the nearest integer.

Original entry on oeis.org

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

Views

Author

Felix Fröhlich, May 18 2016

Keywords

Examples

			The volume of the unit 3-ball (the set of points of distance equal to or less than the radius of the midpoint of the ordinary sphere or 2-sphere) is equal to 4/3*Pi, which is 4.1887902047... (A019699) and when rounded down this is 4, so a(3) = 4.
		

Crossrefs

Programs

  • Mathematica
    Table[Round[(Pi^(n/2))/Gamma[1 + n/2]], {n, 120}] (* Michael De Vlieger, May 19 2016 *)
  • PARI
    a(n) = round((Pi^(n/2)) / (gamma(1+n/2)))

Formula

a(n) = round((Pi^(n/2)) / (Gamma(1 + n/2))).