I'm trying to find $10^{11} \mod 101$. Here's what I did:
$\pmod{101}$
However, the calculator shows that $10^{11}\equiv91\pmod{101}$
Where did I go wrong?
I'm trying to find $10^{11} \mod 101$. Here's what I did:
$\pmod{101}$
However, the calculator shows that $10^{11}\equiv91\pmod{101}$
Where did I go wrong?
You should've gone with $10^{11} = 100^5\cdot 10$ to make it clearer. However, now that you've come this far, note that the square roots of $100$ are $\pm 10$. You chose the wrong square root in your last step.
${\rm mod}\,\ 101\!:\ 10^{\large 11}\!\equiv 10(\color{#c00}{10^{\large 2}})^{\large 5}\!\equiv 10(\color{#c00}{\bf-1})^{\large 5} \equiv -10 \equiv 91$
Remark $\ $ The problem with your method is that you tried to use $\, n\equiv (n^{\large 2})^{\large 1/2},\, $ which is not true here, e.g. for $\, n\equiv 91\,$ your method gives $\ 91\equiv {-}10\equiv ((-10)^{\large 2})^{\large 1/2}\equiv 100^{\large 1/2}\equiv 10.\,$ Generally you can use that identity only in domains where squaring is injective $(1$-$1)$.