1

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

Kandinskij
  • 3,709
  • this could be considered two questions, one where $x$ is exponent and one where $x$ is base – J. W. Tanner Apr 10 '19 at 14:49
  • @J.W.Tanner it's like saying that a problem that has 2 or $x$ requests must be considered as $x$ questions. – Kandinskij Apr 10 '19 at 14:52
  • 2
    Please ask only one question per post. Also it is better not to give specific instances of general problems else you'll get answers that solve only the specific instance. I suggest you read the literature linked in the dupes and then if you have further questions about the known algorithms then post further questions on each. – Bill Dubuque Apr 10 '19 at 15:09

3 Answers3

1

Hint

Using http://mathworld.wolfram.com/CarmichaelFunction.html

$\lambda(180)=12$

So, $x$ must divide $12$

$7^3\equiv-17\pmod{180}$

$7^4\equiv-17\cdot7\not\equiv1$

$7°6=(7^3)^2\equiv(-17)^2\not\equiv1$

0

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.

Wuestenfux
  • 20,964
0

Another way

As $180=5\cdot36$

$7\equiv2\pmod5,7^2\equiv2^2\not\equiv1,7^4\equiv1$

$7^x=(1+6)^x\equiv1+6x\pmod{36}$

So, $6$ divides $x$

For $\pmod{180}, x=[4,6]=?$