Suppose I have an interval that looks like this:
$\left[\frac{k}{\lfloor m \rfloor }, \frac{k}{\lfloor mr \rfloor}\right)$
$m$ and $r$ are positive real numbers, but are constants in this problem.
Here is the question:
Which integer values of $k$ make this interval include at least one integer?
I have tried various ways to tackle this problem, but none have panned out. The thing is I have no idea where to even start. How does one solve problems like this?
Let $n$ be the enclosed integer. Assuming $p=\lfloor m\rfloor>q=\lfloor mr\rfloor$, we have
$$\frac kp\le n<\frac kq$$ so that
$$nq<k\le np$$ for all positive $n$.
These intervals go growing with $n$ and start touching when
$$np>(n+1)q$$ or
$$n(p-q)>q.$$
When this condition is met, every $k>nq$ is a good fit.
Hence
$$k\in(q,p]\cup(2q,2p]\cup(3q,3p]\cup\cdots(nq,\infty)$$ where $n=\left\lceil\dfrac{q+1}{p-q}\right\rceil$.