I am completing a discrete math assignment and noticed in my textbook a solution regarding modular arithmetic and the Pigeonhole Principle:
Using the Pigeonhole Principle, show that in every set of 100 integers, there exist two whose difference is a multiple of 37.
Since there are 100 pigeons and only 37 pigeonholes, two pigeons must go in the same pigeonhole. This means k1 rem 37 = k2 rem 37, which implies that k1 − k2 is a multiple of 37.
Now for my questions. How does the mod and rem function differ?
Can someone clarify how two integers with the same remainder of another integer implies that the difference will be a multiple?
In other words, suppose we have $a,b,c \in Z$. How does $a \mod c = b\mod c$ imply $a-b$ is a multiple of $c$?
I feel like this is some elementary principle/theorem that is not coming to me at the moment. Any help would be appreciated.
$a\equiv b\pmod c$ means that there is some integer $n$ such that $a=nc+b$. If also $d\equiv b \pmod c$, then there is some integer $m$ such that $d=mc+b$. Now, $$a-d = nc+b -(mc+b) = nc-mc =(n-m)c$$ and we see that $a-d$ is a multiple of $c$.