Modular exponentiation: Difference between revisions