mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Math

Reply
 
Thread Tools
Old 2010-11-20, 15:43   #1
otutusaus
 
Nov 2010
Ann Arbor, MI

9410 Posts
Default Modular equation solution

I apologize if the question is trivial, I have math as a hobby.
Given a prime number p and the equation 2^x = 1 mod p, Fermat little theorem gives the solution x=p-1.
When does the equation have other solutions for x<p? And which are the other solutions?
Thanks.
otutusaus is offline   Reply With Quote
Old 2010-11-20, 16:01   #2
Mini-Geek
Account Deleted
 
Mini-Geek's Avatar
 
"Tim Sorbera"
Aug 2006
San Antonio, TX USA

17·251 Posts
Default

Using the following PARI/GP commands:
f(p)=for(X=0,p-1,if(Mod(2^X,p)==Mod(1,p),print(X," ",p)))
forprime(p=2,101,f(p))
I made this list, where "x p" means 2^x = 1 mod p
Code:
0 2
0 3
2 3
0 5
4 5
0 7
3 7
6 7
0 11
10 11
0 13
12 13
0 17
8 17
16 17
0 19
18 19
0 23
11 23
22 23
0 29
28 29
0 31
5 31
10 31
15 31
20 31
25 31
30 31
0 37
36 37
0 41
20 41
40 41
0 43
14 43
28 43
42 43
0 47
23 47
46 47
0 53
52 53
0 59
58 59
0 61
60 61
0 67
66 67
0 71
35 71
70 71
0 73
9 73
18 73
27 73
36 73
45 73
54 73
63 73
72 73
0 79
39 79
78 79
0 83
82 83
0 89
11 89
22 89
33 89
44 89
55 89
66 89
77 89
88 89
0 97
48 97
96 97
0 101
100 101
Trivially, there is a solution at x=0, since 2^0 = 1. And since these are primes, we know that 2^(p-1) = 1 mod p. The other solutions seem to be related to the factors of p-1, but I'm not sure exactly how.

Last fiddled with by Mini-Geek on 2010-11-20 at 16:02
Mini-Geek is offline   Reply With Quote
Old 2010-11-20, 16:35   #3
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26×131 Posts
Default

Quote:
Originally Posted by Mini-Geek View Post
Using the following PARI/GP commands:
f(p)=for(X=0,p-1,if(Mod(2^X,p)==Mod(1,p),print(X," ",p)))
forprime(p=2,101,f(p))
I made this list, where "x p" means 2^x = 1 mod p
Code:
0 2
0 3
2 3
0 5
4 5
0 7
3 7
6 7
0 11
10 11
0 13
12 13
0 17
8 17
16 17
0 19
18 19
0 23
11 23
22 23
0 29
28 29
0 31
5 31
10 31
15 31
20 31
25 31
30 31
0 37
36 37
0 41
20 41
40 41
0 43
14 43
28 43
42 43
0 47
23 47
46 47
0 53
52 53
0 59
58 59
0 61
60 61
0 67
66 67
0 71
35 71
70 71
0 73
9 73
18 73
27 73
36 73
45 73
54 73
63 73
72 73
0 79
39 79
78 79
0 83
82 83
0 89
11 89
22 89
33 89
44 89
55 89
66 89
77 89
88 89
0 97
48 97
96 97
0 101
100 101
Trivially, there is a solution at x=0, since 2^0 = 1. And since these are primes, we know that 2^(p-1) = 1 mod p. The other solutions seem to be related to the factors of p-1, but I'm not sure exactly how.

well one other major subset of those is ((p-1)/2) don't know about the others.
science_man_88 is offline   Reply With Quote
Old 2010-11-20, 16:42   #4
otutusaus
 
Nov 2010
Ann Arbor, MI

2×47 Posts
Default

Thank you mini-geek.
Do you think there is any expression x=f(p) for the solutions others than the trivial and the Fermat's?

Last fiddled with by otutusaus on 2010-11-20 at 17:21
otutusaus is offline   Reply With Quote
Old 2010-11-20, 16:54   #5
axn
 
axn's Avatar
 
Jun 2003

2×3×7×112 Posts
Default

Quote:
Originally Posted by otutusaus View Post
Thank you mini-geek.
Do you think there is any expression for the solutions others than the trivial and the Fermat's?
In PARI/GP you can do znorder(Mod(2,p))
axn is offline   Reply With Quote
Old 2010-11-20, 20:53   #6
R.D. Silverman
 
R.D. Silverman's Avatar
 
Nov 2003

164448 Posts
Default

Quote:
Originally Posted by otutusaus View Post
I apologize if the question is trivial, I have math as a hobby.
Given a prime number p and the equation 2^x = 1 mod p, Fermat little theorem gives the solution x=p-1.
When does the equation have other solutions for x<p? And which are the other solutions?
Thanks.
May I suggest that you try to learn some number theory?
Consult any good elementary number theory book. I can
recommend several.

One could always try Google.

Hint: look up "Lagrange's Theorem"
R.D. Silverman is offline   Reply With Quote
Old 2010-11-20, 20:56   #7
R.D. Silverman
 
R.D. Silverman's Avatar
 
Nov 2003

22·5·373 Posts
Default

Quote:
Originally Posted by otutusaus View Post
Thank you mini-geek.
Do you think there is any expression x=f(p) for the solutions others than the trivial and the Fermat's?
He doesn't know the answer.

I will be happy to answer the question after you have
shown that you have done some reading.

Get back to us after you have taken my earlier suggestions
and I will be happy to answer any unanswered questions
AFTER you show us that you are willing to do some work.
R.D. Silverman is offline   Reply With Quote
Old 2010-11-20, 21:38   #8
otutusaus
 
Nov 2010
Ann Arbor, MI

2·47 Posts
Default

Quote:
Originally Posted by R.D. Silverman View Post
He doesn't know the answer.

I will be happy to answer the question after you have
shown that you have done some reading.

Get back to us after you have taken my earlier suggestions
and I will be happy to answer any unanswered questions
AFTER you show us that you are willing to do some work.
I apologize, the answer was somewhere else I couldn't find before. I should have read about "multiplicative group modulo a prime" and "multiplicative order".
Thanks for the hint.

Last fiddled with by otutusaus on 2010-11-20 at 21:43
otutusaus is offline   Reply With Quote
Old 2010-11-20, 22:20   #9
R.D. Silverman
 
R.D. Silverman's Avatar
 
Nov 2003

22×5×373 Posts
Default

Quote:
Originally Posted by otutusaus View Post
I apologize, the answer was somewhere else I couldn't find before. I should have read about "multiplicative group modulo a prime" and "multiplicative order".
Thanks for the hint.
Look up Lagrange's Theorem.
R.D. Silverman is offline   Reply With Quote
Old 2010-11-20, 22:25   #10
R.D. Silverman
 
R.D. Silverman's Avatar
 
Nov 2003

22×5×373 Posts
Default

Quote:
Originally Posted by otutusaus View Post
I apologize, the answer was somewhere else I couldn't find before. I should have read about "multiplicative group modulo a prime" and "multiplicative order".
Thanks for the hint.
No apology needed. You asked a reasonable question. But learning
the answer is going to require some reading on your part. If you
have something that you read but don't understand I will be
happy to help.

If you are unwilling to do the work, then please leave.

And your English is excellent.

The question you asked has been asked many times in the forum
and there has been extended discussion in the past. Perhaps
reading past posts from this forum might help.
R.D. Silverman is offline   Reply With Quote
Old 2010-11-21, 17:28   #11
Raman
Noodles
 
Raman's Avatar
 
"Mr. Tuch"
Dec 2007
Chennai, India

23518 Posts
Default

2 should be a primitive root for p in this case.

2 is a quadratic residue (mod p), and hence its order is a divisor of (p-1)/2, thus not a primitive root whenever that p is congruent to 1 or 7 (mod 8).

But when does the order of 2 (mod p) be (p-1)/q, for other factors 'q' of p-1, such that q is not divisible by 2? For example, it is true that 2 is not a quadratic residue (mod 43), but not a primitive root as well. Its order is rather 14. Seems that I should do so with some reading upon this part.

An important question that I had encountered with recently: for what values of N, not necessarily prime, does there exist primitive roots (mod N), i.e. there exist with generators for that cyclic multiplicative group with N elements.
1, 2, 4, p^x, 2p^x. That's all, nothing more else. I saw that its proof rather digs deeper into that binomial theorem, that way, to be precise.

Last fiddled with by Raman on 2010-11-21 at 17:30
Raman is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
NDM-1 :solution genetic engineering? science_man_88 Science & Technology 8 2010-11-13 22:01
Best solution for 20-digits? akeiser Factoring 9 2009-11-12 17:53
Rational solution. mfgoode Homework Help 9 2007-08-19 07:19
a new solution to 2^n = 3 (mod n) maxal Math 15 2007-02-28 18:42
Help on solution for v^2-b=a*x^2 jtavares Factoring 3 2005-03-17 20:47

All times are UTC. The time now is 17:06.


Mon Aug 2 17:06:57 UTC 2021 up 10 days, 11:35, 0 users, load averages: 2.34, 2.29, 2.23

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.