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
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
$$(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$.