How can I find a x such that the order of 2 mod x is n?

  • Context: Graduate 
  • Thread starter Thread starter stroustroup
  • Start date Start date
Click For Summary
SUMMARY

The discussion centers on finding an integer x such that the order of 2 modulo x equals a given integer n. The primary question is whether there exists an algorithm that can determine such an x more efficiently than factoring n. The participant mentions the specific case of x = 2n-1, indicating a simpler solution than initially anticipated.

PREREQUISITES
  • Understanding of modular arithmetic
  • Familiarity with the concept of order in number theory
  • Basic knowledge of algorithms and their time complexity
  • Experience with integer factorization techniques
NEXT STEPS
  • Research algorithms for computing the order of an integer modulo x
  • Explore the properties of Mersenne numbers, specifically x = 2n-1
  • Study advanced number theory concepts related to modular exponentiation
  • Investigate efficient integer factorization methods and their complexities
USEFUL FOR

Mathematicians, computer scientists, and anyone interested in number theory, particularly those working with modular arithmetic and algorithm optimization.

stroustroup
Messages
14
Reaction score
0
Is there an algorithm which, given n, returns an integer x such that 2 has order n modulo x (i.e, 2^n = 1 mod x and n is the smallest positive solution)? Is there any such algorithm which runs faster than factoring n?
 
Physics news on Phys.org
How about x = 2n-1?
 
Well... this is much simpler than I expected :redface:
I guess I should have thought a bit more before posting that... I was convinced this would involve some advanced math and big time complexity.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 26 ·
Replies
26
Views
1K
Replies
48
Views
5K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 33 ·
2
Replies
33
Views
2K
  • · Replies 17 ·
Replies
17
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K