MATH3250 · Theorem · Chapter 4 · Integer algorithms
Binary exponentiation
1 steps of prerequisites below it
Binary exponentiation keeps the invariant y·b^t ≡ a^e (mod m) while halving t, so it returns a^e mod m with at most 2(⌊log₂ e⌋ + 1) modular multiplications.
Taught in
- 4.1 Euclidean invariants and binary exponentiation · introduced
Uses
- Loop invariant · used in its proof, proof step 4.1
Used by
No later knowledge point in these notes uses it.
Lenses
- Exponentiation by squaring needs associativity · Structural
Counterexamples
Everything this builds on, earliest first · 1 steps
Each step comes after its own prerequisites, so reading in this order never needs something you have not met. It is a reading order for these notes, not a diagnosis of what you know.
- Loop invariant · 4.1
Possible roots and a review route need your own answers on these points. None are recorded yet, so none are suggested.
Longest chain down to a starting point
Each step is used by the one above it, across courses where the notes link them. It ends at a point the notes define without another point.