Let $ax+by=n<(a-1)(b-1)$. This has exactly $(a-1)(b-1)/2$ non-negative solutions.
I understand that $ax+by\geq (a-1)(b-1)+1$ has a non-negative solution because the spacing between solution is greater than $\sqrt{a^2+b^2}$. However, in the situation $ax+by<(a-1)(b-1)$, I'm not sure how to show this has $(a-1)(b-1)/2$ non-negative solutions. I thought this would have no solutions since it would seem like the points are too close.