TITLE: Solving a congruence $x^{17} \equiv 243 \pmod{257}$
QUESTION [7 upvotes]: I'm trying to solve the following congruence:
$x^{17} \equiv 243 \pmod{257}$
I have worked out that the $\gcd(243,257)=1$ and that $243=3^5$
So $x^{17} \equiv 3^5 \pmod{257}$
and I don't really understand what to do next.

REPLY [2 votes]: We have the following facts: $\gcd(3,257)=1,\,$ $\varphi(257)=256,\,$ and 3 is a primitive root mod 257. From the first two we know, see e.g. When is $a^n \equiv a^{(n \;\bmod \; \varphi(m))} \pmod m$ valid,
$$3^n \equiv 3^{(n \;\bmod \; \varphi(257))} \equiv 3^{(n \;\bmod \; 256)}  \pmod {257}$$
Make the Ansatz $x=3^y$, then
$$x^{17}\equiv 3^5 \pmod {257} \iff 3^{17y-5}\equiv 1 \equiv 3^0 \pmod {257}$$
Now solve $17y-5\equiv 0 \pmod {256}\,$. The multiplicative inverse is $17^{-1} \equiv 241 \pmod {256}\,$ and $y=5\times 241 \equiv 181 \pmod {256}.\,$ Therefore  a solution is$$x=3^y=3^{181} \equiv 28 \pmod {257}.$$
Now you can check that $28^{17} \equiv 243 \pmod {257}.$