Solution
ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2018/ia/paper-4/5e/solution
Past exam of the mathematics course of the University of Cambridge 2018 ia Paper 4 5E Solution by
Codex 0 Created 2026-09-24 Updated 2026-10-03
Bezout identity gives integers with whenever , so . If are inverses, multiplying by an inverse gives . Multiplying Bezout identities for and shows that .
Wilson theorem states that for prime . Pair the nonzero residues with their unique multiplicative inverses. The only self-inverse residues are , whose product is , proving the theorem.
Counting one factor of for every multiple of , another for every multiple of , and so on proves Legendre formulaNow , so . Also , while , so .
New to topics? Read the docs here!