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

 


A027662
a(n)/1000 gives sqrt(n) to 3 places after the decimal point.
2
1000, 1414, 1732, 2000, 2236, 2449, 2646, 2828, 3000, 3162, 3317, 3464, 3606, 3742, 3873, 4000, 4123, 4243, 4359, 4472, 4583, 4690, 4796, 4899, 5000, 5099, 5196, 5292, 5385, 5477, 5568, 5657, 5745, 5831, 5916, 6000, 6083, 6164, 6245, 6325, 6403, 6481, 6557, 6633
OFFSET
1,1
MAPLE
lprint(round(evalf(1000*sqrt(n))));
MATHEMATICA
Table[Floor[1000*Sqrt[n]+1/2], {n, 40}] (* Harvey P. Dale, Apr 22 2011 *)
PROG
(Python)
from math import isqrt
def A027662(n): return (m:=isqrt(k:=n*10**6))+int((k-m*(m+1)<<2)>=1) # Chai Wah Wu, Jul 30 2022
CROSSREFS
KEYWORD
nonn,base
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | 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 September 21 22:57 EDT 2024. Contains 376090 sequences. (Running on oeis4.)