Ofter i come across things like this:
$$7^x\equiv 1 \pmod{180} $$
$$x^3\equiv7 \pmod{13}$$
Are there easy ways to solve in general these kinds of congruences: $$a^x\equiv b \pmod{n} $$
$$x^a\equiv b \pmod{n}$$
For example $7^x\equiv 1 \pmod{180} $ has as solution $x\equiv 0 \pmod{12}$, I checked with Wolfram. But how can I do these?
Thank you for your time :)
In view of $a^x\equiv b\mod n$, the problem is to solve the discrete log problem in the ring ${\Bbb Z}_n$.
More specifically, given a group $G$ and $a,b\in G$, solving $a^x=b$ for some integer $x$ is the discrete log problem for the group $G$. There is no efficient method for solving it. Number-theoretic cryptography relies on it.