Similar questions 1 more →
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 = 2^(n²) (no official key was published)
1. Identify what is being counted. A binary relation on a set A is any subset R of A × A; there are no requirements such as reflexivity or symmetry in this question.
2. Count the possible ordered pairs. The first coordinate has n choices and the second also has n choices. The product rule therefore gives |A × A| = n². Reversed pairs are distinct when their coordinates differ.
3. Make an independent yes/no decision for every pair. Each of the n² pairs can be included in R or omitted. Multiplying the two choices for all pairs gives Nr = 2 × ⋯ × 2 = 2n².
4. Check the boundary case n = 1. If A = {a}, the two relations are ∅ and {(a,a)}. This agrees with 21² = 2. For n = 2 there are four possible pairs and therefore 16 relations.