BigInteger.modInverse

Returns a BigInteger whose value is {@code (this}<sup>-1</sup> {@code mod m)}.

@param m the modulus. @return {@code this}<sup>-1</sup> {@code mod m}. @throws ArithmeticException {@code m} &le; 0, or this BigInteger has no multiplicative inverse mod m (that is, this BigInteger is not <i>relatively prime</i> to m).

class BigInteger
modInverse

Meta