I've found a curious property of the fractional part.
Namely, let be given a number $n$. Then among the numbers
$ n/1, n/2, n/3, .... n/n, $
the proportion of elements whose fractional part is $\geq 1/2$ tends to $2.588\ldots$ as $n$ tends to $\infty$. Here is the Python code that helped me to discover this fact, by giving various values to $n$.
n = 7379491
count = 0
for i in range(1, n):
if n/i - n//i >= 0.5:
count += 1
print("{}, {}".format(n, n/count))
Is it something known? what is the rationale behind this?
n//iis $\lfloor n/i \rfloor$, so that $n/i - \lfloor n/i \rfloor = {n/i}$. – angryavian Dec 19 '23 at 17:53