An inverse modulo eleven
For a=3 and m=11, the inverse is 4 because 3×4=12 leaves residue 1.
Compute exact modular residues, multiplicative inverses and Chinese remainder solutions using BigInt arithmetic and pairwise-coprime validation.
Enter your inputs and calculate to see the result.
Runs in your browser — nothing you enter is sent to a server.
The first two inputs calculate a normalized residue and an inverse, if one exists. The separate CRT worksheet solves simultaneous congruences and verifies the resulting residue for each modulus.
Compute exact modular residues, multiplicative inverses and Chinese remainder solutions using BigInt arithmetic and pairwise-coprime validation.
Normalize r = ((a mod m)+m) mod m. Extended Euclid gives a⁻¹ when gcd(a,m)=1. CRT merges residues modulo the product of coprime moduli.
Signed integers only, at most 30 digits per value and 20 congruences. Moduli must be at least two. This standard CRT mode rejects shared factors even when a generalized system might be consistent. These educational operations are not constant-time cryptographic implementations.
For a=3 and m=11, the inverse is 4 because 3×4=12 leaves residue 1.
x=2 mod 3, x=3 mod 5 and x=2 mod 7 gives x=23 modulo 105. Every solution differs from 23 by a multiple of 105.
The first two inputs calculate a normalized residue and an inverse, if one exists. The separate CRT worksheet solves simultaneous congruences and verifies the resulting residue for each modulus.
Signed integers only, at most 30 digits per value and 20 congruences. Moduli must be at least two. This standard CRT mode rejects shared factors even when a generalized system might be consistent. These educational operations are not constant-time cryptographic implementations.
For a=3 and m=11, the inverse is 4 because 3×4=12 leaves residue 1. Compare this worked case before using your own inputs.
Good to know
Signed integers only, at most 30 digits per value and 20 congruences. Moduli must be at least two. This standard CRT mode rejects shared factors even when a generalized system might be consistent. These educational operations are not constant-time cryptographic implementations.
Reference: NIST DLMF: Chinese remainder theorem. The implementation scope and conventions above are authoritative for this worksheet.
Find the greatest common divisor and least common multiple of two or more numbers, with Euclid's steps.
Math Tools
Convert whole numbers between binary, octal, decimal, hexadecimal and any base from 2 to 36, of any size.
Converters