Solution

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

In modular arithmetic, calculations may be performed after replacing each input by its remainder. For a positive modulus , write for the remainder in . Then
Equivalently, if and , addition and multiplication give and , and a fixed nonnegative integer exponent gives . One cannot in general reduce the exponent modulo by this rule.

New to topics? Read the docs here!