I feel like I need some additional pointers on the following questions as I am unable to come up with a solution for it:
If $m$ and $n$ are any integers, and $x$ is any positive real number, what are the maximum and minimum values of $\lfloor x/nm\rfloor - \lfloor \lfloor x/n\rfloor /m\rfloor$?
Thanks for your help!
It is always $0$: $$\frac{x+mn}{mn}>\left\lfloor\frac x{mn}\right\rfloor\ge\frac x{mn}$$ $$\frac{x+mn}{mn}>\frac{\lfloor x/n\rfloor+m}m>\left\lfloor\frac{\left\lfloor\dfrac x{n}\right\rfloor}m\right\rfloor\ge\frac{\lfloor x/n\rfloor}m\ge \frac x{mn}$$