I can't seem to even find an example of this, so if anyone could help me with an example or how to do it (I am doing this purely for myself) it would be greatly appreciated:
Use Euler's phi function to determine $11^{20162} mod 31850$
I can't seem to even find an example of this, so if anyone could help me with an example or how to do it (I am doing this purely for myself) it would be greatly appreciated:
Use Euler's phi function to determine $11^{20162} mod 31850$
Factorising, $$31850=2\times5^2\times7^2\times13\ ,$$ and so $$\phi(31850)=(2^0\times1)\times(5^1\times4)\times(7^1\times6)\times(13^0\times12)=10080\ .$$ Now $11$ is relatively prime to $31850$, so by Euler's theorem $$11^{10080}\equiv1\pmod{31850}\ ,$$ and hence $$11^{20162}=(11^{10080})^2\times11^2\equiv1^2\times11^2\equiv121\pmod{31850}\ .$$
Addendum. Answers to questions in comments.