I need some help to solve the next equation: $$ \left \lfloor x^2 - x - 2 \right \rfloor = \left \lfloor x \right \rfloor $$
Where $ \left \lfloor \cdot \right \rfloor $ is the floor function.
What I've tried: $$ x^2 - x - 2 - x < 1 $$ $$ x^2 - x - 2 \leq x < x^2 - x - 1 $$
When I try to solve this system, I don't get the right solution. Is it right what I'm doing? How can I do to solve this?