0

Please kindly note that I am a beginner. My questions are these:

Is it possible to calculate x from the following data? If yes, how? If not, why not?

((x^3)+5) mod  111267492025176636775873676207109540284671533365944463094334269908178130251703 = 77728417551815895917893167053908013392240543644078528175107278902132954431973

I am using SageMath with these large numbers.

I was told that my problem involves the Discrete log problem but I don't think so. The DL problem seems to have the form: find y from n = x^y (mod p). In my case, we know n, y and p. We need to find x.

Thanks!

Robert
  • 117

1 Answers1

1

With PARI/GP , you can find the three possible values.

Set $$c=77728417551815895917893167053908013392240543644078528175107278902132954431973$$ $$p=111267492025176636775873676207109540284671533365944463094334269908178130251703$$

Then, the command "lift(factormod(x^3+5-c,p))" gives this output :

? lift(factormod(x^3+5-c,p))
%53 =
[x + 602682757193745542178710070302898494458432132023749413582805581887225347898
47 1]

[x + 736913025482431370507962947902459959580623944988375882393459174491960358398
75 1]

[x + 885754057827355822830800505936832351654374590306763965910420641784376898736
84 1]

Subtracting those numbers from $p$ gives you the $3$ possible values, one of those is the one you mentioned in your comment.

Peter
  • 84,454
  • 2
    Wow, this is exactly what I was looking for. I have installed PARI/GP and this works. Thank you for your help! – Robert Aug 22 '19 at 19:31