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.

A168038 Squares closest to 2*n.

Original entry on oeis.org

0, 1, 4, 4, 9, 9, 9, 16, 16, 16, 16, 25, 25, 25, 25, 25, 36, 36, 36, 36, 36, 36, 49, 49, 49, 49, 49, 49, 49, 64, 64, 64, 64, 64, 64, 64, 64, 81, 81, 81, 81, 81, 81, 81, 81, 81, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 121, 121, 121, 121, 121, 121, 121, 121, 121
Offset: 0

Views

Author

Zak Seidov, Nov 17 2009

Keywords

Crossrefs

Essentially partial sums of A198954.

Programs

  • Mathematica
    Round[Sqrt[2*Range[0,120]]]^2
  • Python
    from math import isqrt
    def A168038(n): return (isqrt(n<<3)+1>>1)**2 # Chai Wah Wu, Jun 19 2024

Formula

a(n) = A002024(n)^2. - Chai Wah Wu, Jun 19 2024