Given two values $a$ and $b$, is there an equation/algorithm that can efficiently find $n$ in the following equation?
$$a \equiv b \pmod{n}$$
I found this question while looking for an answer, but it's the inverse of what I need.
Edit: I'm not sure why my question has been marked as a duplicate. The linked question discusses the definition and name of the $\mod{}$ operator, while my question is about the usage/reversal of the $\mod{}$ operator.