0
$\begingroup$

First of all apologies for the typo I made in an earlier question, I decided to delete that post and reformulate it

I am asked to prove that

$$\int_{(0,1)} \lfloor nx\rfloor^2\,\mathrm{d}x =\frac{1}{n}\sum_{k=1}^{n-1} k^2$$

If $x \in (0,1)$, then the values of $\lfloor nx\rfloor^2$ will be integers on the interval $[0,n^2-1]$.

For any given $k$ in this interval, we will have $\lfloor nx\rfloor^2 = k$ for $\lfloor nx \rfloor \in [\sqrt{k}, \sqrt{k+1})$

After this I am not sure how to proceed

$\endgroup$
2
  • 3
    $\begingroup$ I think there is a typo and it should be $\int_0^1 \lfloor nx \rfloor ^2 dx$, otherwise equality doesn't hold. $\endgroup$ Commented Nov 8, 2023 at 15:49
  • $\begingroup$ @GiorgosGiapitzakis I have now fixed the typo. Apologies $\endgroup$
    – John Doe
    Commented Nov 8, 2023 at 16:29

1 Answer 1

1
$\begingroup$

Instead of working with the squares work with $\lfloor nx \rfloor$ first. Notice that for $x \in [k/n, (k+1)/n)$ we have $\lfloor nx \rfloor = k$. So we can split the original integral as: $$\int_0^1 \lfloor nx \rfloor^2 \,dx = \sum_{k=0}^{n-1}\int_{\frac{k}{n}}^\frac{k+1}{n} \lfloor nx\rfloor^2\,dx = \sum_{k=0}^{n-1}\int_{\frac{k}{n}}^\frac{k+1}{n} k^2\,dx=\frac{1}{n}\sum_{k=1}^{n-1}k^2$$ which is exactly what we wanted to prove.

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .