How do you solve $7^{60} \pmod{77}$?
For $5^{60} \pmod{77}$, it's equal to $1$ because I think the $\gcd(5,77) = 1$ and using the FLT we can find that $5^{(7-1)(11-1)} = 1 \pmod{7*11}$. But how do you get $56$ from $7^{60} \pmod{77}$?
How do you solve $7^{60} \pmod{77}$?
For $5^{60} \pmod{77}$, it's equal to $1$ because I think the $\gcd(5,77) = 1$ and using the FLT we can find that $5^{(7-1)(11-1)} = 1 \pmod{7*11}$. But how do you get $56$ from $7^{60} \pmod{77}$?
First, $7^{60}\equiv 0\pmod{7}$. Then:
$$7^{60}\equiv \big(7^{10}\big)^{6}\equiv \big(7^{\phi(11)}\big)^{6}\equiv 1^{6}\equiv 1\pmod{11}$$
Then, $7^{60}\equiv 0\pmod{7}$ and $7^{60}\equiv 1\pmod{11}$, so $7^{60}$ is equivalent to a unique value $\pmod{77}$ by the Chinese Remainder Theorem. And since $56\equiv 0\pmod{7}, 1\pmod{11}$, we must have $\boxed{7^{60}\equiv 56\pmod{77}.}$