Problem

Source: Pan African MO 2012 Day 1 Q3

Tags: function, floor function, algebra proposed, algebra



Find all real solutions $x$ to the equation $\lfloor x^2 - 2x \rfloor + 2\lfloor x \rfloor = \lfloor x \rfloor^2$.