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.

A057671 a(n) equals floor(Vc(n) - Vs(n)), where Vc(n) is the volume of the cube with side length n and Vs(n) is the volume of the sphere of diameter n.

Original entry on oeis.org

0, 3, 12, 30, 59, 102, 163, 243, 347, 476, 634, 823, 1046, 1307, 1607, 1951, 2340, 2778, 3267, 3811, 4411, 5072, 5796, 6585, 7443, 8373, 9377, 10457, 11618, 12862, 14192, 15610, 17120, 18724, 20425, 22226, 24131
Offset: 1

Views

Author

seiringer.flor(AT)eudoramail.com, Oct 18 2000

Keywords

Examples

			a(7)=163 because 163=floor(7^3*(1-Pi/6)).
		

Crossrefs

Cf. A057672.

Programs

  • Mathematica
    Table[Floor[n^3 (1-\[Pi]/6)],{n,40}]  (* Harvey P. Dale, Apr 24 2011 *)

Formula

a(n) = floor(n^3*(1-Pi/6)).

Extensions

Edited by James Sellers, Oct 20 2000

A235532 a(n) = floor(n^2 * (4-Pi)).

Original entry on oeis.org

0, 0, 3, 7, 13, 21, 30, 42, 54, 69, 85, 103, 123, 145, 168, 193, 219, 248, 278, 309, 343, 378, 415, 454, 494, 536, 580, 625, 672, 721, 772, 824, 879, 934, 992, 1051, 1112, 1175, 1239, 1305, 1373, 1442, 1514, 1587, 1661, 1738, 1816, 1896, 1977, 2061, 2146, 2232, 2321
Offset: 0

Views

Author

Alex Ratushnyak, Jan 11 2014

Keywords

Comments

a(n) = floor(As(n) - Ac(n)), where Ac(n) is the area of the circle of radius n, and As(n) is the area of square with side length 2n.

Crossrefs

Programs

  • Mathematica
    Floor[(4-Pi)#^2]&/@Range[0,60] (* Harvey P. Dale, Jan 10 2020 *)
  • Python
    import math
    for n in range(77): print(str(int(n*n*(4-math.pi))), end=',')
Showing 1-2 of 2 results.