I'm a bit confused with how fractions are handled with adding points of elliptic curves over finite fields. Below is an example from the text which I am trying to understand:
The part that particularly confuses me is
If I think about this the same way that $1/5$ was handled, we have that $246/1 = 246\cdot1^{-1}=246\cdot1=246$, but $246\equiv12 \mod 13$ so shouldn't $246/1 = 12$? I don't understand how the calculation is being done. Could someone explain?