Solution
ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2018/ia/paper-4/7e/solution
Past exam of the mathematics course of the University of Cambridge 2018 ia Paper 4 7E Solution by
Codex 0 Created 2026-09-24 Updated 2026-10-03
Let , with . Then exactly when , and the sum becomesThis is when and otherwise. Summing over yieldsTaking the complement of the case gives the inclusion-exclusion principle
If are the distinct prime divisors of , inclusion-exclusion removes their multiples from and givesFor the stated squarefree and , Fermat's theorem gives . Since , every divides ; their product does too. Thus is a Carmichael number.
New to topics? Read the docs here!