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.

A100197 Numbers of squares in the range [n^3, (n+1)^3].

Original entry on oeis.org

2, 2, 3, 3, 4, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 7, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 9, 8, 9, 9, 9, 10, 9, 9, 9, 10, 10, 9, 10, 10, 10, 11, 10, 11, 11, 11, 10, 11, 11, 11, 12, 11, 11, 12, 11, 12, 12, 12, 12, 13, 12, 12, 12, 13, 12, 13, 12, 13, 13, 13, 13, 13, 13, 14, 13, 14, 14, 14
Offset: 0

Views

Author

Giovanni Teofilatto, Dec 27 2004

Keywords

Examples

			a(0)=2 because between the cubes 0 and 1 there are exactly 2 squares, {0,1}.
a(1)=2 because between the cubes 1 and 8 there are exactly 2 squares, {1,4}.
		

Programs

  • Mathematica
    Table[ Floor[Sqrt[(n + 1)^3] - Ceiling[Sqrt[n^3]]] + 1, {n, 0, 82}] (* Ray Chandler, Jan 09 2005 *)

Extensions

Corrected and extended by Ray Chandler, Jan 09 2005