Exponentiation and Modular Arithmetic