Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2015/ia/paper-4/8e/b/solution

Choose an injection . For each , its fiber under the surjection is nonempty, so define
Two distinct fibers cannot contain the same label , because is an injection and has a single value. Thus is an injection, proving that is a countable set. Taking the least label avoids any need for a separate choice of one element from each fiber. If is empty, surjectivity makes empty as well.
For the unheaded enumeration request, list pairs of positive natural numbers by their sum. An explicit Cantor pairing function is
For , the positive integers give the consecutive labels . These blocks are disjoint, consecutive and cover . Consequently is a bijection from to , so is countable.

New to topics? Read the docs here!