Suppose we are trying to find the smallest positive integers, $x,y$ such that, $$a + bx = cy$$ $$a \gt 0, b \gt a, c \gt b$$
If $a=0$, then this is just finding the lcm of $b$ and $c$. Not sure how to find this efficiently though with an offset. Is there some algorithm from modular arithmetic related to this?
Edit: I realized that this is a linear diophantine equestion.