Prove that for given any integers $a $ and $b$, $a \equiv b ~(mod ~n) $ if and only if $a$ and $b$ leave the same nonnegative remainder when divided by $n$.
Theorem: For given any integers $a $ and $b$, $a \equiv b ~(mod ~n) $ if and only if $a$ and $b$ leave the same nonnegative remainder when divided by $n$. Proof: Firstly, we suppose that $a \equiv b ~(mod ~n)$ and we will show that $a$ and $b$ leave the same nonnegative remainder when divided by $n$. Since $a \equiv b ~(mod ~n)$, we have $a = b + k \cdot n$ for some integer $k$. When we divide $b$ by $n$, $ b$ leaves a certain remainder say $r$; that is, $b = q \cdot n + r$, where $0 \leq r < n$. We put $b = q \cdot n + r$ in $a = b + k \cdot n$. Therefore, $a = b + k \cdot n = (q \cdot n + r) + k \cdot n = (q + k) \cdot n + r$ that is $a$ has the same remainder as $b$, when we divide $a$ by $n$. Conversely, suppose that $a$ and $b$ leave the same nonnegative remainder when divided by $n$. So we can write $a = q_{1} \cdot n + r$ and $b = q_2 \cdot n + r$, with the same remainder $0 \leq r < n$. Then $a...