The trick is recalling that $\gcd(a, m) = 1 \implies \exists b, c \in \mathbb{Z}$ such that $ab + mc = 1$.
Can you see how to finish up?
* * *
As a side note, the integers $b$ and $c$ can be found explicitly using the extended Euclidean algorithm.
The trick is recalling that $\gcd(a, m) = 1 \implies \exists b, c \in \mathbb{Z}$ such that $ab + mc = 1$.
Can you see how to finish up?
* * *
As a side note, the integers $b$ and $c$ can be found explicitly using the extended Euclidean algorithm.