(a) Let A,B be finite non-empty sets, with ∣A∣=a,∣B∣=b. Show that there are ba mappings from A to B. How many of these are injective ?
(b) State the Inclusion-Exclusion principle.
(c) Prove that the number of surjective mappings from a set of size n onto a set of size k is
i=0∑k(−1)i(ki)(k−i)n for n⩾k⩾1
Deduce that
n!=i=0∑n(−1)i(ni)(n−i)n