Modular exponentiation keeps numbers small by reducing after each operation. This lesson pins the modulus and the starting value.
Why the modulus is present
The modulus keeps every intermediate value inside a small exact remainder set. Here the modulus is 33.
Reduce the base
The base is 7, and it already reduces to 7 modulo 33.
7mod33=7
Keep only remainders
After each square or multiply, the ladder keeps only the remainder modulo 33. That is why the table never needs the full power.
keep remainders mod 33
Start from one
The ladder starts with result 1 before reading exponent bits.
rstart=1
Watch the first row
The first visible row squares start value 1, then multiplies by base 7 because the bit is 1. The row result is 7.
Summary
Modular exponentiation keeps reducing after each operation, so every displayed row stays small and inspectable.
reduce after every step