Find the following integers $x$:
$x \equiv 7^{57} \mod 133$
I need to use fermat's little theorem for this problem which I know. It is for a prime number p. Then $a^{p-1} \equiv 1 \pmod p$ but I do not see how this is related to the above.
If anyone can guide me through this problem that would be helpful.
Note that $133=7 \cdot 19$. Thus \begin{align*} x & \equiv 7^{57} \pmod{133} && \iff && x \equiv 7^{57} \pmod{7}\\ & && && x \equiv 7^{57} \pmod{19} \end{align*} The latter system can be rewritten as \begin{align*} x & \equiv 0 \pmod{7}\\ x & \equiv 7^{57} \equiv 7^{18(3)} \cdot 7^3 \equiv 7^3 \equiv 1\pmod{19} \end{align*} In the second congruence I have used Fermat's little theorem. Now you can use Chinese Remainder theorem or a simple inspection to get $x=77$.