Solution

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

For a surjection, the nonempty fibres form a partition of a set into exactly blocks. Choose these unlabelled blocks in ways, then assign the distinct elements of to them in ways. Consequently
It is zero when . With and for , the same formula also handles an empty set codomain.

New to topics? Read the docs here!