login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A168038
Squares closest to 2*n.
2
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,3
LINKS
FORMULA
a(n) = A002024(n)^2. - Chai Wah Wu, Jun 19 2024
MATHEMATICA
Round[Sqrt[2*Range[0, 120]]]^2
PROG
(Python)
from math import isqrt
def A168038(n): return (isqrt(n<<3)+1>>1)**2 # Chai Wah Wu, Jun 19 2024
CROSSREFS
Essentially partial sums of A198954.
Sequence in context: A011364 A016713 A343620 * A093995 A168280 A162564
KEYWORD
nonn
AUTHOR
Zak Seidov, Nov 17 2009
STATUS
approved