Solution

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

Write squarefree . For each , either , when both sides vanish modulo , or Fermat's theorem applies. Since and , it gives . The Chinese remainder theorem combines these congruences to give .

New to topics? Read the docs here!