I want to use Euler's theorem to calculate the following:
$14^{(2019^{2019})} \mod 60$
$a^{\phi(n)} \equiv 1 \mod n \iff \gcd(a,n) = 1$
Now I start with the outer one first:
$14^{(2019)}\mod 60 \iff \gcd(14,60) = 2$
Now I don't know how can I solve it ...
Can anyone suggest me any hints/further calculations?
Thank you in advance,
Kind Regards.
You can't use Euler's theorem because $\gcd(14,60) > 1$.
But you can use the Chinese remainder theorem, using $60 = 4 \cdot 15$: $$ \begin{align} 14^{(2019^{2019})} & \equiv \hphantom{-} 0 \bmod 4 \\ 14^{(2019^{2019})} & \equiv -1 \bmod 15 \end{align} $$ because $$ \begin{align} 14^2 & \equiv \hphantom{-} 0 \bmod 4 \\ 14\hphantom{^2} & \equiv -1 \bmod 15 \end{align} $$