Congruence Relations
Jelly, 5 bytes

_ÆD⁵e


Making heavy use of Anything else that is not forbidden is allowed. 

Try it online!

How it works

_ÆD⁵e  Main link. Left input: a. Right input: b. Additional input: n

_      Subtract b from a.
 ÆD    Compute all divisors of the difference.
   ⁵e  Test if n is among the divisors.