I'm stuck on the following exercise from Herstein's "Topics in Algebra":
"Show that if $(a,n)=1$ then you can find $[b]\in J_n$ such that $[a][b]=1$"
(note: $[a]$ is the congruence class (mod $n$) of $a$, and $J_n$ is the set of congruence classes mod $n$)
I've been thinking about using the property $(a,n)=1\Rightarrow \exists h,k\in\mathbb{Z}$ such that $ha+kn=1$ and also the Euclidean algorithm by writing $a=qn+b$ $0\leq b<a$ (since $J_n=\{[0],...[n-1]\})$ but I haven't been able to come up with a proof.
So, I would appreciate any comment/hint about how to prove this fact.
Best regards,
lorenzo