# how to solve this equation

(83359654581036155008716649031639683153293510843035531 ^x) % 32003240081 =1

add a comment

how to solve this equation

(83359654581036155008716649031639683153293510843035531 ^x) % 32003240081 =1

add a comment

1

Here's a simpler example, solving $53^x \equiv 1\text{ mod }(71)$.

```
sage: a = mod(53, 71)
sage: one = mod(1,71)
sage: one.log(a)
0
```

In retrospect, this is not so surprising (though presumably not the answer you wanted). Indeed, part of the point of this exercise is probably to show that it's hard to solve such things by brute force.

For small examples you can...

```
sage: for i in range(1,70):
if a^i==1:
print i
....:
<no output>
```

but I nearly crashed my computer trying to do yours that way, just as an experiment! So it's best to use some math. In this case, 53 was a primitive root of 71 - though your modulus is not prime. (Hint, hint.)

Asked: **
2014-11-07 07:33:42 -0600
**

Seen: **425 times**

Last updated: **Nov 07 '14**

Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.