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.

This page as a plain text file.
%I A168038 #12 Jun 20 2024 11:08:05
%S A168038 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,
%T A168038 49,49,49,49,64,64,64,64,64,64,64,64,81,81,81,81,81,81,81,81,81,100,
%U A168038 100,100,100,100,100,100,100,100,100,121,121,121,121,121,121,121,121,121
%N A168038 Squares closest to 2*n.
%H A168038 Vincenzo Librandi, <a href="/A168038/b168038.txt">Table of n, a(n) for n = 0..1000</a>
%F A168038 a(n) = A002024(n)^2. - _Chai Wah Wu_, Jun 19 2024
%t A168038 Round[Sqrt[2*Range[0,120]]]^2
%o A168038 (Python)
%o A168038 from math import isqrt
%o A168038 def A168038(n): return (isqrt(n<<3)+1>>1)**2 # _Chai Wah Wu_, Jun 19 2024
%Y A168038 Cf. A002024, A093995.
%Y A168038 Essentially partial sums of A198954.
%K A168038 nonn
%O A168038 0,3
%A A168038 _Zak Seidov_, Nov 17 2009