Math, asked by shiva8744, 1 year ago

Efficient method to calculate product of a power and modulus

Answers

Answered by Ritiksuglan
0

Answer:

For example, given b = 5, e = 3 and m = 13, the solution c = 8 is the remainder of dividing 53 = 125 by 13. Modular exponentiation can be performed with a negative exponent e by finding the modular multiplicative inverse d of b modulo m using the extended Euclidean algorithm.

Similar questions