Solve for $x$: $5x =1 \bmod12$
By hit and trial i see that $x=5$ satisfies the above. But what is the procedure for doind this
Thanks
Solve for $x$: $5x =1 \bmod12$
By hit and trial i see that $x=5$ satisfies the above. But what is the procedure for doind this
Thanks
The solution is $x = 5^{-1} \pmod {12}$. Basically you want to calculate the modular inverse of $5 \pmod {12}$, which is represented as $5^{-1} \pmod{12}$. You can use the Extended Euclidean algorithm for that. But for small modulos, it's easier to just do trial and error. You want the unique number (modulo $12$) that when multiplied by $5$ will give you a result that is $1$ modulo $12$. You only have to test numbers in the range $1$ to $11$.
You can quite easily see that $(5)(5) = 25 \equiv 1 \pmod {12}$. So $5^{-1} \equiv 5 \pmod{12}$ and the solution is $x \equiv 5 \pmod{12}$.