solve floor(x^2)+floor(2x)=3x, 0<=x<=6