I need some help calculating the solution for the following equation:
$ 4^{217} = x \text{ (mod 391)} $
Using power rules ($4^{217} = 2^{434}$) and Eulers theorem ($\phi(391) = 352$) I was able to reduce the term to:
$ 2^{82} = x \text{ (mod 391)} $
This is where my search for a solution comes to a halt. I have been able to further reduce this term to
$ (3^6 * (31^2)^3 * 2^4) = x \text { mod (391)} $
but that is where I got stuck, because I feel like there should be a far more elegant way than the brute force attempt I took from $2^{82}$.
What other tricks can I use to find the correct solution for this equation?