Build first, understand later.
Diffie-Hellman’s key-exchange method runs this kind of exponentiation protocol, with all the operations conducted in this way ...