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 :)