4.II.8C

Numbers and Sets | Part IA, 2003

Let XX be a finite set with nn elements. How many functions are there from XX to XX ? How many relations are there on XX ?

Show that the number of relations RR on XX such that, for each yXy \in X, there exists at least one xXx \in X with xRyx R y, is (2n1)n\left(2^{n}-1\right)^{n}.

Using the inclusion-exclusion principle or otherwise, deduce that the number of such relations RR for which, in addition, for each xXx \in X, there exists at least one yXy \in X with xRyx R y, is

k=0n(1)k(nk)(2nk1)n\sum_{k=0}^{n}(-1)^{k}\left(\begin{array}{l} n \\ k \end{array}\right)\left(2^{n-k}-1\right)^{n}

Typos? Please submit corrections to this page on GitHub.