Prove that $\sum_{i=1}^{n^2} \left \lfloor \sqrt{i} \right \rfloor = \frac{n(4n^2 - 3n + 5)}{6} $ using induction?

64 Views Asked by At

Clearly, it's true for n=1.

Assuming true for n=k, we have $$\left \lfloor \sqrt{1} \right \rfloor + \left \lfloor \sqrt{2} \right \rfloor ..... + k = \frac{k(4k^2 - 3k + 5)}{6} $$ But how can we prove that $$\frac{k(4k^2 - 3k + 5)}{6} + \left \lfloor \sqrt{k^2 + 1} \right \rfloor + \left \lfloor \sqrt{k^2 + 2} \right \rfloor ..... + k+1 = \frac{(k+1))(4(k+1)^2 - 3(k+1) + 5)}{6}$$

1

There are 1 best solutions below

0
On BEST ANSWER

Hint :

For $k^2 \le p < (k+1)^2$, we have $k=\sqrt{k^2} \le \sqrt{p} < \sqrt{(k+1)^2}= k+1$. So using the definition of the floor function, what could be the value of $\lfloor \sqrt{p} \rfloor$?