1

If $a \equiv b \pmod m $ and $ a \equiv c \pmod n$, Prove that $b \equiv c \pmod d$ where $d=\gcd(m,n)$

We have $a-b=km$ where $k$ is an integer And $a-c=ln$ where $l$ is an integer Now $b-c=ln-km$ What I need to do after this

lulu
  • 70,402
John757
  • 171

2 Answers2

0

$a\equiv b\pmod m \implies a= b + pm\\ a\equiv c\pmod n \implies a= c + qn$

Setting $a= a$ gives us $b + pm = c + qn$

$b \equiv c \pmod d$ if $d|pm$ and $d|qn$

Doug M
  • 57,877
0

$$(a-b=km)\wedge (b-c=\ell n)\implies a-c=km+\ell n.$$ Now by definition, the ideal $\:\bigl\{km+\ell n\mid k,\ell\in\mathbf Z\bigr\}\:$ is the ideal generated by $d=\gcd(m,n)$. Thus $a-c\in d\mathbf Z$.

Bernard
  • 175,478