Sets, Relations & Functions


Shared context
A is a finite set of n > 0 elements. N_r counts all binary relations on A, and N_f counts all total functions A → A.
Answer & solution
Answer: N_r > N_f for every integer n > 0 (no official key was published)
1. Recall both counts in this leaf. For an n-element nonempty set, the number of relations is Nr = 2n², and the number of total functions A → A is Nf = nn. We must compare them for every positive integer n, not just for large n.
2. Embed the functions into the relations. Map f to its graph {(x,f(x)):x ∈ A}. Different functions differ at some input and therefore have different graphs. This is an injection into the set of binary relations, proving Nf ≤ Nr.
3. Show the inequality is strict. The empty relation is a binary relation, but it cannot be the graph of a total function on a nonempty domain. Thus there is at least one relation outside the image of that injection.
4. Conclude Nr > Nf for every n > 0, including n = 1, where the counts are 2 and 1. Algebraically, the same comparison follows from 2n > n and raising both positive sides to the power n.