Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2005/ia/paper-4/1e/solution

The Wilson theorem says that for a prime number . Thus , and since , we get . The Fermat little theorem says when does not divide . Applying it to gives , so is the inverse of modulo . Since , the required residue is
This is the unique representative in .
For the simultaneous integer congruences, the modulus- condition is already implied by . Write ; the modulus- condition becomes , hence . The modulus- condition then gives , or . Therefore
Every such integer satisfies all four integer congruences; reversing the substitutions shows that there are no others. The uniqueness modulo also follows from the Chinese remainder theorem applied to the coprime moduli .

New to topics? Read the docs here!