DecodeBox
Search
K
Guides
SDK Reference
Operations
Playgrounds
Operations Explorer
Auto Detection Lab
Encoding & Decoding Lab
Open DecodeBox
Theme
Menu
ON THIS PAGE
#
Modular Inverse
Finds x where a·x ≡ 1 (mod m). Exists only when a and m are coprime.
ID:
modular-inverse
Category: Arithmetic / Logic
Aliases: modinv, inverse mod
#
Arguments
Argument
Type
Default
Constraints
Value (a)
string
""
Blank takes the input
Modulus (m)
string
""
Blank takes the input