Problem

Source: Taiwan NMO 2006

Tags: function, floor function, algebra proposed, algebra



Find all reals $x$ satisfying $0 \le x \le 5$ and $\lfloor x^2-2x \rfloor = \lfloor x \rfloor ^2 - 2 \lfloor x \rfloor$.