In the context of cryptography, I need to find the private key of a message and I need to use modular arithmetic. I understand how modular arithmetic using a clock with whole numbers. But I get really stuck when I get to fractions, for example:
1/3 mod 8
How do I find a modular of a fraction? Is there a method for finding this?
Thanks in advance!
The important property of $1/3$ is that $1/3 \cdot 3 = 1$. So, what number, when multiplied by $3$, is $1$ mod $8$?
Showing when $x^{-1} \pmod n$ exists and that it is unique is not too terrible either
EDIT: I didn't see "finding it". Check out the Extended Euclidian algorithm.