Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2021/ii/paper-1/12f/ii/solution

Using the zero test from part (i), define by primitive recursion
Since and , the values alternate:
Thus is the required parity function and, like , is primitive recursive without minimization.

New to topics? Read the docs here!