Solution

ID: past-exam-of-the-year-1-of-the-computer-science-course-of-the-university-of-oxford/2018/discrete-mathematics-continuous-mathematics-and-probability/2/c/solution

First prove for every nonnegative integer by mathematical induction. The case is immediate. If it holds at , the binomial theorem and the stated divisibility of the middle binomial coefficients give
This establishes the induction. For an arbitrary integer , take a nonnegative representative of its residue class; then . When , part (b) supplies a multiplicative inverse modulo . Multiplying the congruence by that inverse proves Fermat's little theorem:

New to topics? Read the docs here!