I just finished reading about Euler's Totient theorem, Fermat's little theorem, and the Chinese Remainder theorem, so I decided to test what I learned with a small problem that I came up with for myself. The question was to find the remainder of $7^{27}$ when divided by $11$. Here is how I started:
$$7^{27}=7^{11}\cdot 7^{11}\cdot 7^5\equiv 7\cdot 7\cdot 7^5\mod 11\equiv 5\cdot 7^5\mod 11 \tag{via Flt}$$
Here is where I ran into some problems. I noticed that $7^{31}\equiv 5\mod 11$ via Euler's Totient theorem and that $7^5\equiv 2\mod 5$ via Flt, but I had to deduce that $7^7\equiv 10\mod 11$ via the following method, which I am pretty sure is correct using the fact that $ab\mod n=(a\mod n) \cdot (b\mod n)$ :
$$\begin{align*} 5\cdot 7^5\mod 11&\equiv(5\pmod {11})\cdot (7^2\pmod {11})^2\cdot(7\pmod{11})\\&\equiv (5\pmod{11})^3\cdot(7\pmod{11})\\&\equiv (125\pmod{11})\cdot(7\pmod {11})\\&\equiv (4\pmod {11})\cdot(7\pmod{11})\\&\equiv (28\pmod {11})\\&\equiv 6\pmod{11} \end{align*}$$
Is there a faster way of going about this? Thanks.