Solution

ID: past-exam-of-the-short-options-course-of-the-university-of-oxford/2021/1/a/ii/solution

Factor and , retaining repeated prime factors. If has a common prime factor with , it has one with at least one of , and both sides of the desired equality are zero. Otherwise the definition of the Jacobi symbol gives
An empty product is , so the argument includes either denominator being .

New to topics? Read the docs here!