My attempt:
$$ 5^{11\cdot31} ≡5^{341} \pmod {143}$$
Using FLT where $$a^{p-1} ≡ 1 \pmod p$$
I get
$$≡(5^{142})(5^{142})5^{57} \pmod {143}$$ $$≡5^{57} \pmod {143}$$
This is where I'm stuck.
My attempt:
$$ 5^{11\cdot31} ≡5^{341} \pmod {143}$$
Using FLT where $$a^{p-1} ≡ 1 \pmod p$$
I get
$$≡(5^{142})(5^{142})5^{57} \pmod {143}$$ $$≡5^{57} \pmod {143}$$
This is where I'm stuck.
Note that $5^{11\cdot 31} \equiv 5^{1\cdot1} \equiv 5 \pmod{11}$, by Fermat's little theorem. Also, note that $5^{11\cdot 31} \equiv 5^5 \equiv 625 \cdot 5 \equiv 5 \pmod{13}$, again by Fermat's little theorem. Then by the Chinese remainder theorem, we must have that $5^{11\cdot 31} \equiv 5 \pmod{11 \cdot 13}$.