$$\lim_{n\rightarrow \infty}\frac{1}{n}\bigg(\sum^{n}_{i=1}\left\lfloor \frac{2n}{i}\right\rfloor-2\left\lfloor\frac{n}{i}\right\rfloor \bigg)$$
Where $\lfloor x \rfloor$ is a floor function of $x$
Trial: using limit as a sum put $\displaystyle \frac{i}{n}=x$ and $\displaystyle \frac{1}{n}=dx$
$$\int^{1}_{0}\bigg(\left\lfloor\frac{2}{x}\right\rfloor -2\left\lfloor\frac{1}{x}\right\rfloor \bigg)dx$$
Let $\displaystyle \frac{1}{x}=t$ and $dx=-\frac{1}{t^2}dt$
So $\displaystyle \int^{1}_{0}\bigg(\lfloor 2t \rfloor - 2\lfloor t\rfloor \bigg)\cdot\frac{1}{t^2}dt$
Could some help me to solve it, Thanks
To calculate the integral, we may consider the following partition of interval $(0,1)$: $$\frac{1}{2}\leq x<1\Rightarrow \left[\frac{1}{x} \right]=1, $$ $$\frac{1}{3}\leq x<\frac{1}{2}\Rightarrow \left[\frac{1}{x} \right]=2, $$ and so on.
Note also that for any $\alpha\in\mathbb{R}$, $[2\alpha]=[\alpha]+[\alpha+1/2] $.