login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A077118 Nearest integer square to n^3. 9
0, 1, 9, 25, 64, 121, 225, 361, 529, 729, 1024, 1296, 1764, 2209, 2704, 3364, 4096, 4900, 5776, 6889, 7921, 9216, 10609, 12100, 13924, 15625, 17689, 19600, 21904, 24336, 26896, 29929, 32761, 36100, 39204, 42849, 46656, 50625, 54756, 59536 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
LINKS
FORMULA
a(n) = if A077116(n) < A070929(n) then A065733(n) else A077115(n).
a(n) = A002821(n)^2. - Chai Wah Wu, Jul 30 2022
EXAMPLE
a(5)=121, as 121=11^2 is the nearest square to 125=5^3.
MATHEMATICA
Table[Round[Sqrt[n^3]]^2, {n, 0, 39}] (* Alonso del Arte, Dec 07 2011, based on Artur Jasinski's program for A077119 *)
PROG
(Python)
from math import isqrt
def A077118(n): return ((m:=isqrt(k:=n**3))+int((k-m*(m+1)<<2)>=1))**2 # Chai Wah Wu, Jul 29 2022
CROSSREFS
Sequence in context: A049740 A147405 A111440 * A242116 A209530 A147392
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Oct 29 2002
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 27 12:38 EDT 2024. Contains 372019 sequences. (Running on oeis4.)