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.

Showing 1-2 of 2 results.

A228641 Volume of torus (rounded down) with major radius = n and minor radius = n/3.

Original entry on oeis.org

2, 17, 59, 140, 274, 473, 752, 1122, 1598, 2193, 2919, 3789, 4818, 6018, 7402, 8983, 10775, 12791, 15043, 17545, 20311, 23353, 26685, 30319, 34269, 38548, 43169, 48146, 53491, 59217, 65338, 71868, 78818, 86203, 94035, 102328, 111094, 120347, 130101, 140367, 151160
Offset: 1

Views

Author

K. D. Bajpai, Aug 28 2013

Keywords

Examples

			a(6) = 473 :  volume = ((2  *Pi * n) * (Pi * (n/3)^2)) = ((2 *Pi * 6) * (Pi * (6/3)^2)) = 473.7410114 and floor(473.7410114) =  473.
		

Crossrefs

Cf. A228272.

Programs

  • Maple
    KD := proc() local a; a:=floor( evalf( (2*Pi*n)*(Pi*(n/3)^2) ) ); RETURN (a) :end: seq(KD(),n=1..50);
  • PARI
    a(n)=floor(2/9*Pi^2*n^3) \\ Charles R Greathouse IV, Aug 28 2013

Formula

a(n) = floor( 2/9 * Pi^2 * n^3 ).

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))).
Showing 1-2 of 2 results.