Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2014/ia/paper-4/6e/iv/solution

Fermat's little theorem reduces the exponent modulo because is a prime number and is coprime to it. Compute , then and . Thus for an integer , and
The exponent is , rather than an iterated left-associated power.

New to topics? Read the docs here!