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

  • Level: Graduate 
  • Thread starter Thread starter stroustroup
  • Start date Start date
Join the discussion
Registration is free. Start your own thread to ask a follow-up.
2 replies · 2K views
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
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.