Modular exponentiation

Modular exponentiation computes an integer power and reduces the result modulo a positive integer. It can be performed without constructing the potentially enormous ordinary power.

Connect