This is one of the first lines in one of my lecture notes, where they write:
$x = x' \pmod N$ if and only if $N$ divides $x - x'$
I've taken a discrete maths course a while ago but this doesn't make much sense to me. I can't remember seeing $x'$ anywhere. If anyone can dumb this down or link a youtube video I'd appreciate it.
This is the definition of mod. $x$ and $x^{\prime}$ are arbitrary. For example, $$ 7\equiv3\mod4. $$ In this case, $x=7$ and $x^{\prime}=3$. You can check that the above is true (with respect to the definition you are given) by noting that $x-x^{\prime}=7-3=4$ is divisible by $4$.