For $A \geq B$, both are strictly positive integers, what is the relationship between $A$ and $B$ such that the following is true? $$A - \lfloor A/B \rfloor - \lceil A/B \rceil \leq \lfloor A/B \rfloor \times (B+1)$$
Previously I asked this question can be here, and a counterexample has been shown to disprove it. Now I'd like to ask whether we can find the conditions (an expression in terms of $A$ and $B$) such that the above is true.
One thing I noticed (a generalisation from @Clement Yung's answer in my original post - thanks!) is that if $B = \lceil A/k \rceil$ (for any constant $k$), then the above is false. I wonder if there are any other cases such that it's false, or if better if there's condition(s) for when it is always true.