MHB Solve this Equation for H: 5260862 = M*H^y % 20876441

  • Thread starter Thread starter matson1
  • Start date Start date
Click For Summary
The equation to solve is 5260862 = M*H^y % 20876441, with given values M = 20192834 and y = 17. The main focus is on correcting the order of operations in the calculations. Participants are seeking guidance on how to implement the solution in Python, specifically looking for a function that can handle modular arithmetic effectively. There is an emphasis on using the mod_inverse function, and clarifications on the allowed Python modules are requested to facilitate the coding process.
matson1
Messages
1
Reaction score
0
Solve this Equation for H: 5260862 = M*H^y % 20876441

Where y = 17, and M = 20192834? My H value is wrong from my previous tries.

I think my order of operations is wrong. Function for code would be helpful. Already familiar with mod_inverse. (Python 3)
 
Technology news on Phys.org
Hi there,

What have you tried so far? What Python modules are allowed if any?
 
Learn If you want to write code for Python Machine learning, AI Statistics/data analysis Scientific research Web application servers Some microcontrollers JavaScript/Node JS/TypeScript Web sites Web application servers C# Games (Unity) Consumer applications (Windows) Business applications C++ Games (Unreal Engine) Operating systems, device drivers Microcontrollers/embedded systems Consumer applications (Linux) Some more tips: Do not learn C++ (or any other dialect of C) as a...

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
Replies
2
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
31
Views
3K
  • · Replies 14 ·
Replies
14
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 15 ·
Replies
15
Views
2K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 7 ·
Replies
7
Views
5K