I was trying to prove the next simple statement ,without success thus far.
Suppose that $gcd(a,n)=1$, where $n \in \mathbb{N}$ and $a \in \mathbb{Z}$.
Show that for all $ c \in \mathbb{Z}$ there exists $m \in \mathbb{Z}$ such that $ma \equiv c \pmod{n}$.
Any ideas?
By Bezout's identity, there exists $l,k\in\mathbb{Z}$ such that $al+nk=\gcd(a,n)=1$, so $a(lc)+n(kc)=c$, which implies $a(lc)\equiv c\bmod n$