Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2013/ia/paper-4/8e/ii/solution

The prime-power contraction under pth powers is the key step. If with , the binomial theorem gives
The first term is divisible by . Each later term is also divisible by that power because for . This includes and . Therefore
Start with and apply this implication times, increasing both the exponent and modulus at each step:
The case is precisely the original congruence.
By Fermat's little theorem, . Apply the same result with initial modulus and :

New to topics? Read the docs here!