How do I solve $2x^2-2\lfloor x \rfloor-1=0$?
I have tried setting $x=\lfloor x \rfloor + \{x\}$, where $\{x\}$ is the fractional part of $x$. Then, I tried $$2x^2-2\lfloor x \rfloor-1=0$$ $$2(\lfloor x \rfloor + \{x\})^2-2\lfloor x \rfloor-1=0$$ $$2\lfloor x \rfloor^2 + 4\lfloor x \rfloor\{x\}+2\{x\}^2-2\lfloor x \rfloor-1=0$$ but now I am stuck. How should I proceed?
Hint
$$2x^2-1=2\lfloor x \rfloor \leq 2x$$
Therefore $$2x^2-2x-1 \leq 0$$
Solve, and the solution will tell you that there are only few potential values for $\lfloor x \rfloor$. Solve for each.