I am reading into the text Groups & Symmetry, by Oggier, Bruckstein, as available freely here on ntu website.
On page#81 in Corollary 1, there is stated that :
'Thus $ax = 1+(-y)n$ and $\overline{x}$ is the inverse of $a$.
Conversely, if there is an $\overline{x}$ such that $\overline{ax}$ =$\overline{1}$ then $ax = 1+yn \iff ax - yn =1$ for some $y\in \mathbb{Z}$...'
Also, in the title of the corollary, it states :
$\{\overline{a},\,\,|\,\,\gcd(a,n)\}.$
I have three questions :
(i) Inverse of $a$ is stated to be : $\overline{x}$, so it should be true that $\overline{x}=\frac{1+(-y)n}a$.
(ii) The second line is even more confusing, as has $\overline{ax}=\overline{1}$ rather than $a\overline{x}=1$.
(iii) The title is also not understandable, as states: $\{\overline{a},\,\,|\,\,\gcd(a,n)\}.$ Cannot understand why took $\overline{a},$?
(i) $\bar x\in\Bbb Z/n\Bbb Z$ and $\frac{1+(-y)n}{a}\in\Bbb Q$, hence the equality makes no sense. Instead, the inverse is given by the implicit definition $\bar a\bar x=\bar x\bar a = \bar 1$.
(ii) I'd say the error is in the beginning as we are looking for the inverse of an element of $\Bbb Z/n\Bbb Z$, not for an element of $\Bbb Z$, so it should say "Thus ... $\bar x$ is the inverse of $\bar a$.", i.e., $\bar a$ is our element of $\Bbb Z/n\Bbb Z$ (and $a\in\Bbb Z$ a representative of it). Then of course $\bar a\bar x=\overline{ax}=\bar 1$ makes sense.
(iii) Indeed, $\{\,\bar a,\mid \gcd(a,n)=1\,\}$ does not parse with that comma.