Given the equation:
$$x^e\equiv c \pmod p$$
where $p$ is prime number, $c$ is positive integer and $e$ is positive integer and $\gcd(e, p-1) = 1$. Explain how would you solve given equation.
Also, using that explanation solve next equation:
$$x^{77} \equiv 2 \pmod{246}$$
I know that I need to use Chinese reminders theorem but I am not sure how... Please can you provide some explanation how to solve this.
By Bézout's theorem, there are integers $a,b$ such that $ae+b(p-1)=1$. Therefore, $$x = x^{ae+b(p-1)}\;\; \equiv c^a \cdot (x^{p-1})^b \equiv c^a \pmod p.$$
For your specific question, you have $$\begin{cases} x^{77} \equiv x \equiv 2 \equiv 0 \pmod 2\\ x^{77} \equiv x \equiv 2 \pmod 3\\ x^{77} \equiv 2 \pmod{41}\\ \end{cases}$$ The last equation becomes, because of the Bézout's identity $-25 \cdot 40 + 13 \cdot 77 = 1$, $$x \equiv 2^{13} \equiv 33 \pmod{41}$$ Then using the CRT you get $x \equiv 74 \pmod{246}$.