I'm trying to prove that, in $\mathbb{Z}_n$, the set of $\overline{a}$ that are invertible is well-defined. That is, if $a,b \in \overline{a}$, so $a \equiv b \text{ (mod $n$)}$, then $\gcd(a,n) = \gcd(b,n) = 1$. (I'm more interested in the general result, though, that $\gcd(a,n) = \gcd(b,n)$.
My attempt Suppose $a \equiv b \text{ (mod $n$)}$. Then $a - b = kn$ for some integer $k \in \mathbb{Z}$. Then $a = b + kn$ and $b = a - kn$.
At this point, there is likely some proper of the gcd that I need to use to deduce the result from that, but I am not completely sure of what that is.