Solution

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

The contrapositive is that an integer perfect square has residue or modulo . Let for an integer . If is an even number, then . If is an odd number, then . These exhaust the possible parities of an integer. Thus a residue of or excludes being a perfect square, as required by the contrapositive.

New to topics? Read the docs here!