I am taking a number theory class, and I was not able to solve this homework problem.
Let $a,$ $b,$ and $m$ be constant positive integers. For which positive integer values of $n$ does $a|mn-b?$
I tried this out for a couple of values, and the values of $n$ satisfying this expression seem to occur in a cycle. (For example, let $m=2019,$ $a=20,$ $b=19.$ The values of $n$ that work are $1,21,41,61,....$) However, I am not able to show that this always happens.