I'm having trouble solving this modulus question with irregular and large numbers. After using Euler's Theorem, I managed to simplify the question to
$$777^{234} \pmod {1111}$$ Indeed,
$1111 = 11 * 101$, and therefore
$\phi(1111) = (11 - 1)(101 - 1) = 1000$.
However I have no idea how to continue from here. Any help is appreciated. Thanks.
$777\equiv 7\pmod {11}; 7^{10}\equiv1\pmod{11}$; so $777^{234}\equiv7^4\pmod{11}$ and finally $777^{234}\equiv3\pmod {11}$
$777\equiv70\pmod {101}$; $70^5\equiv 6\pmod{101}$; $(70^5)^{40}\equiv1\pmod{101}$...
Hope this helps you get to the end.