I'm working on Shamir secret sharing and i came across a part where i have
$(-4)^{-1}(\mod 17)$
I have never done negative number using inverse modulus so im kinda stuck
i tried changing it to
$(13)^{-1}(\mod 17)$
but it doesn't seem to work.
I'm working on Shamir secret sharing and i came across a part where i have
$(-4)^{-1}(\mod 17)$
I have never done negative number using inverse modulus so im kinda stuck
i tried changing it to
$(13)^{-1}(\mod 17)$
but it doesn't seem to work.
It is actually better to keep $-4$, since it's smaller than $13$ and computations will be easier. Since $(-1)^{-1}=-1$, it suffices you compute $4^{-1}$. But $4\times (-4)=-16\equiv 1$. So the inverse of $-4$ will be...?