0

I'm sort of stuck on this proof

I know that $a\equiv b\pmod n$ means $a - b = mk$ for some integer $k$
and by the Division algorithm
$a = mq_1 + r_1$
$b = mq_2 + r_2$

$a - b = m(q_1 - q_2) + (r_1 - r_2)$

Once I get to the line above I get stuck how do I show that $r_1 - r_2$ are actually equal and the same remainder? I've looked at other proofs that just say the remainder for $a$ and $b$ equal to $r$.

I feel like i'm missing something extremely obvious.

Joffan
  • 40,356
Temirzhan
  • 1,003

2 Answers2

3

You seem to be asking about the proof for direction $a\equiv b\pmod{m}\implies a \mod m = b\mod m$

As you correctly note, $a\equiv b \pmod{m}$ means $a-b=mk$ for some $k\in\mathbb{Z}$.

Now by the division algorithm, write $a=mq+r$ where $0\le r < m$.

Then $b=a-mk=(mq+r)-mk=m(q-k)+r$.

By uniqueness in the division algorithm, this means $r$ is the remainder of dividing $b$ by $m$.

So $a$ and $b$ have the same remainder on division by $m$, and so $a \mod m = b\mod m$.

paw88789
  • 41,907
  • is their anyway to continue the way i did it where i set r1 and r2 as unequal and show that they are equal? – Temirzhan Sep 05 '17 at 18:38
1

You have $a-b=m(q_1-q_2)+(r_1-r_2)$ so $m$ divides $r_1-r_2$.

Yet $0\leq |r_1-r_2|\leq\max(r_1,r_2) <m$.

Recall that $m$ divides $x$ implies $x=0$ or $|x|\geq m$. (Proof: if $x\neq0$, then $|x|=|m|\cdot|\frac xm|\geq |m|\cdot1$)

So $|r_1-r_2|=0$.

Bart Michels
  • 26,985
  • 6
  • 59
  • 123