Solution

ID: past-exam-of-the-year-1-of-the-computer-science-course-of-the-university-of-oxford/2015/discrete-mathematics-continuous-mathematics-and-probability-resit/3/b/i/solution

By modular arithmetic, and for some integers . Adding gives
Since is an integer, this proves

New to topics? Read the docs here!