Sorry for asking such a n00b question but what does the following compute to?
$s=(3(16)^2+9)\cdot(2\cdot 5)^{-1}\bmod{23} = 11$
In an online response here, I saw this computes to $11$ but whenever I do the computation I get $8.7$. Can someone show me how to get $11$?
As $\displaystyle2\cdot12-23=1,2\cdot12\equiv1\pmod{23}\iff 2^{-1}\equiv12$
As $\displaystyle5\cdot9-23\cdot2=-1\pmod{23}\iff5\cdot9\equiv-1\pmod{23}\iff5^{-1}\equiv-9\equiv14$
$\displaystyle\implies (2\cdot5)^{-1}\equiv2^{-1}\cdot5^{-1}\equiv12\cdot14\pmod{23}\equiv7$