I don't understand how a modular inverse is unique. $3^{-1}≡7$$(mod\hspace{.1cm}20)$.
But $3*27≡1(mod\hspace{.1cm}20)$
So, $3^{-1}≡27$$(mod\hspace{.1cm}20)$.
What do I not understand here?
Can I think of $3^{-1}$ in its "normal sense," as a fraction? For example:
$\frac{1}{3}≡7$$(mod\hspace{.1cm}20)$
Mulitply both sides by $8$ and get: $8*\frac{1}{3}≡8*7$$(mod\hspace{.1cm}20)$
and finally claim: $\frac{8}{3}≡56$$(mod\hspace{.1cm}20)$.
Is this valid?
Please help me understand the questions above. If you perceive any additional holes in my understanding that may not be directly present in my post, please do elaborate.
Thanks!