We were given the hint that $3$ is a primitive root of unity, meaning that for all $y$ such that $\gcd(y,257)=1$, we can find a power $k$ such that $3^k \equiv y$ (mod $257)$. But I have no idea how to deal with the third power in my equation.
Could you please help me with this problem?
Let $x < 257$, then we know that $\gcd(x,257) = 1$. So there exist a $k$ such that $x = 3^k \mod 257$. Then $x^{3} = 3^{3k} \mod 257 =3$.
Thus, $3^{3k-1} = 1 \mod 257$.
Since $257$ is prime and $3$ is primitive root of it, we should have $3k = 1 \mod 256$. We can easily find that $k = 171$, so $x = 3^{171} = 147 \mod 257$