Find all solutions to $3^x \equiv 9 \pmod{13}$.
I don't know how to solve this problem.
$3$ is a primitive root for $\mod{13}$ but the solution uses $2$ as a primitive root. Why can't I use $3$? Is it because it's trivial for $x=2$?
Any help will be greatly appreciated :).
Work modulo $13$.
Note that if $3^x \equiv 3^y, y\gt x$ then $3^{y-x} \equiv 1$.
We have $3^2\equiv 9$, and (little Fermat) $3^{12} \equiv 1$
The order of $3$ modulo $13$ is therefore a factor of $12$. It isn't $1$ or $2$, but could be $3, 4,6,12$. In fact $3^3=27\equiv 1$, so that $3^{3r}\equiv 1$ for any integer $r$, and $3^{3r+2}\equiv 9$.
You could use a primitive root to solve this (effectively taking logarithms), but it isn't necessary.