BIGMODINV$(string-expression, string-expression)
Computes the modular multiplicative inverse of an arbitrary precision integer. Returns a value (X) such that:
Examples
PRINT BIGMODINV$("3", "11")
Produces "4".
PRINT BIGMODINV$("10", "17")
Produces "12".
Notes
- Inputs must be valid base-10 integer strings.
- The inverse exists only if A and M are coprime.
- If no inverse exists, an error is produced.
- Modulus must be non-zero.
- Result is returned as a decimal string.
See also: BIGMODPOW$ · BIGMOD$ · BIGGCD$ · BIGMUL$