+0  
 
0
35
1
avatar

What is the modular inverse of 239, modulo 96,137? Thanks for help.

 Jul 11, 2020
 #1
avatar
0

Here is a simple computer code written in Python 3 to find ANY modular inverse of any number!

 

# Python 3 program to find modular 

# inverse of "a" under modulo "m"

  

def modInverse(a, m) :

    a = a % m;

    for x in range(1, m) :

        if ((a * x) % m == 1) :

            return x

    return 1

  # Driver Program

a = 239

m = 96137

print(modInverse(a, m))

 

Answer ="Modular Multiplicative Inverse" = 32,582

 Jul 11, 2020

25 Online Users

avatar
avatar