MathematicsFast Power (Binary Exponentiation)
Fast Power (Binary Exponentiation)
Computes xⁿ (optionally mod m) in O(log n) multiplications by repeatedly squaring — the engine behind modular exponentiation in cryptography.
Intermediatenumber theorydivide & conquermodular arithmeticO(log n)
Loading visualization…