Modular multiplicative inverse is used for The Chinese Remainder Theorem and RSA algorithm. You can visit Wikipedia.

Normal Modulus

X = M (mod Y)

You can solve that with M = mod(X,Y)

Inverse Modulus

X.B = M (mod Y)

given X,M,Y calculate B

B = inverse_modulus(X,M,Y)

Solution Stats

93 Solutions

24 Solvers

Last Solution submitted on Jan 03, 2026

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...