This theory is part of Premium
The full write-up (worked counting examples, the trap list and the interview playbook) unlocks with a Premium plan, along with every Pro visualizer.
See pricingConcept theory, tags and interview notes for Modular exponentiation.
What this asks
Compute a^b mod m with repeated squaring.
Read the exponent's bits: square the base, halve the exponent, multiply the answer on odd bits, and reduce after every multiplication.
The full write-up (worked counting examples, the trap list and the interview playbook) unlocks with a Premium plan, along with every Pro visualizer.
See pricing