I am working on an assignment and have to write a proof for the following:
$$\lfloor 4x \rfloor = \lfloor x \rfloor + \lfloor x+\frac{1}4 \rfloor + \lfloor x+\frac{1}2 \rfloor + \lfloor x+\frac{3}4 \rfloor$$
I have to do by proof by case I know the cases to be as follows
$$0 \le x-\lfloor x \rfloor \lt \frac 1 4$$ $$\frac 1 4 \le x-\lfloor x \rfloor \lt \frac 1 2$$ $$\frac 1 2 \le x-\lfloor x \rfloor \lt \frac 3 4$$ $$\frac 3 4 \le x-\lfloor x \rfloor \lt 1$$
The problem is I don't understand how I can express this.
Case 0
In this case I know that it would be $4n$ here
Case 1
In this case I know that it would be $4n+1$
Case 2
Here it would be $4n+2$
Case 3
Now the last case would end up being $4n+3$
Can someone help me express this?