Increasing the integer $k$, I can make the floor of $L/k$ smaller than $r$:
$$\left\lfloor \frac{L}{k} \right\rfloor \lt r$$
where $L, k, r$ are positive integers, $k\leq \lfloor \frac{L}{2} \rfloor$.
Is it possible to write down a "closed form" (or whatever easily computable expression, possibly through low and upper bounds) for the first integer $k$ where the displayed inequality holds true ?
We want the first $k$ with $\frac Lk<\lceil r\rceil$, which is the first $k$ with $\frac L{\lceil r\rceil }<k$, i.e., $$ k=1+\left\lfloor \frac L{\lceil r\rceil }\right\rfloor$$
Edit: I just see that $r$ is an integer, so my writing $\lceil r\rceil$ is unnecessarily cautious, we can simplify to $$ k=1+\left\lfloor \frac L{r}\right\rfloor,$$ but note that this is not the same as $\lceil \frac L r\rceil$ because $r$ may be a divisor of $L$.