Working through some sample problems on flooring from a guide book and I'm stuck on the following questions:
What is the maximum and minimum value of $\lfloor 2x\rfloor − 2 \lfloor x\rfloor$ for any real number $x$ and positive integer $n$? How about if $x$ is any positive real number?
What is the maximum and minimum value of $\lfloor nx\rfloor − n \lfloor x\rfloor$ for any real number $x$ and positive integer $n$? How about if $x$ is any positive real number?
I'm not sure how to go about finding the minimum and maximum values. Could anybody help me out?
You can think of $\lfloor x \rfloor$ as a piece-wise defined function, where on any interval $[k,k+1)$ between two integers, it takes the value $k$.
Similarly $\lfloor 2x \rfloor$ is a piece-wise defined function, but it is only constant on intervals between half integers (i.e., integers or integers plus one half). I.e., on the interval $[k,k+1/2)$ it takes the value $2k$, and on the interval $[k+1/2,k+1)$ it takes the value $2k+1$.
So it is helpful to consider cases based on which half-integer interval $x$ lies in. If $x = k+\epsilon$ for some integer $k$ and some $0 \leq \epsilon < \frac{1}{2}$, then $\lfloor x \rfloor = k$, and $\lfloor 2x \rfloor = \lfloor 2k+2\epsilon \rfloor = 2k$. If instead $x=k+\frac{1}{2}+\epsilon$ for some integer $k$ and some $0 \leq \epsilon < \frac{1}{2}$, then $\lfloor x \rfloor = k$ and $\lfloor 2x \rfloor = \lfloor 2k+1+2\epsilon \rfloor = 2k+1$. Compute the difference $\lfloor 2x \rfloor - 2 \lfloor x \rfloor$ in both of these cases.
Similarly, for the second problem you will want to write $x= k + \frac{\ell}{n}+\epsilon$ for some integer $k$, some integer $0 \leq \ell < n$, and some $0 \leq \epsilon < \frac{1}{n}$ (do you see why this is always possible?). Then calculate the value of the function $\lfloor nx \rfloor - n \lfloor x\rfloor$ and see what the maximum and minimum possible values are.
I'll let you think about what to do for the last problem (but again, you'll want to determine the intervals where $x$ can "live" and in each case calculate the floor functions in question).