I'm trying to solve $$\lfloor \sqrt x \rfloor = \left\lfloor \frac{x}{2} \right\rfloor$$ for real $x$. Obviously this can't be true for any negative reals, since the root isn't defined for such.
My approach is the following: Let $x=:n+r$, $n \in \mathbb{N}_0, 0\leq r < 1$.
For the left hand side $\lfloor \sqrt {n+r} \rfloor = \lfloor \sqrt {\lfloor n+r\rfloor} \rfloor = \lfloor \sqrt n \rfloor$ holds (without further proof).
$$\left\lfloor \frac{x}{2} \right\rfloor = \left\lfloor \frac{n+r}{2} \right\rfloor = \left\{ \begin{array}{l l} \frac{n}{2} & \quad \text{for n even} \\ \frac{n-1}{2} & \quad \text{for n odd} \end{array}\right.$$
Now I don't really know if that'd lead me in the right direction, but I'll write my thoughts down anyways.
Let $\sqrt n =: n'+r'$, $n \in \mathbb{N}_0, 0\leq r < 1$.
Therefore $\lfloor n'+r' \rfloor = n'$. And $n = (n'+r')^2 = n'^2 +2n'r' +r'^2$
For which $n',r'$ holds $$ n' < n'^2 + 2n'r' + r'^2.$$
Well and now I'm stuck and don't know how to proceed.
I'd appreciate any help.