Prove that $(a,m)=1$ iff there exists an integer $n$ such that $na \equiv 1 \pmod m$
How do I go about this problem?
|
Prove that $(a,m)=1$ iff there exists an integer $n$ such that $na \equiv 1 \pmod m$ How do I go about this problem? |
|||||||||||||
|
|
Be sure you can prove the following steps: $$(a,m)=1\Longleftrightarrow \,\,\exists\,\,n,y\in\Bbb Z\,\,\,s.t.\,\,\,na+ym=1\Longleftrightarrow na=1-ym\Longleftrightarrow na=1\pmod m$$ |
|||
|
|
As Don wrote, one way is by Bezout's gcd identity. Another is by Euclid's Lemma and pigeonholes. $\rm(1)\,\ \ (a,m) = 1\Rightarrow\,$ the map $\rm\,x\to ax\,$ is $\,1$-$1\,$ on $\,\rm\Bbb Z/m\, = $ integers $\rm\,mod\ m,\,$ since $\rm\,ax \equiv ay\:\Rightarrow\:m\mid a(x-y)\:\Rightarrow\:m\mid x-y\Rightarrow x\equiv y,\:$ by Euclid's Lemma. $\rm(2) \ \ x\to ax\:$ is $\,1$-$1\,$ so onto, by the Pigeonhole/box principle, since $\rm\:\Bbb Z/m\:$ is finite $\rm(3)\ \ x\to ax\:$ is onto $\,\Rightarrow$ $\rm\:ax\equiv 1\:$ for some $\rm\,x.\quad$ QED |
|||||
|
|
If you have access to Ireland and Rosen's "Classical Introduction to Modern Number Theory," the pages 30 - 33 give a very readable presentation to the general congruence problem: $ax \equiv b \pmod m$ |
|||
|
|