- #1
evinda
Gold Member
MHB
- 3,836
- 0
Hello! :)
I am looking at the proof of the following sentence:
$a \equiv b \pmod m \Rightarrow a,b$ give the same remainder when they are divided by $m$.
That's the proof that my teacher gave:
Let $a \equiv b \pmod m$.So, $ m \mid a-b$
Let $a=q_1 \cdot m+r_1, 0 \leq r_1 < m$
and $b=q_2 \cdot m+r_2,0 \leq r_2<m$
then $a-b=(q_1-q_2) \cdot m+ (r_1-r_2)$
As $m \mid a-b \Rightarrow m \mid r_1-r_2$
As $-m<r_1-r_2<m \Rightarrow r_1-r_2=0$ $\Rightarrow r_1=r_2$.
Could you explain me the red part?
I am looking at the proof of the following sentence:
$a \equiv b \pmod m \Rightarrow a,b$ give the same remainder when they are divided by $m$.
That's the proof that my teacher gave:
Let $a \equiv b \pmod m$.So, $ m \mid a-b$
Let $a=q_1 \cdot m+r_1, 0 \leq r_1 < m$
and $b=q_2 \cdot m+r_2,0 \leq r_2<m$
then $a-b=(q_1-q_2) \cdot m+ (r_1-r_2)$
As $m \mid a-b \Rightarrow m \mid r_1-r_2$
As $-m<r_1-r_2<m \Rightarrow r_1-r_2=0$ $\Rightarrow r_1=r_2$.
Could you explain me the red part?