Sometimes it is easier to count a related but more structured collection, where the collection we actually want to count corresponds to equivalence classes of the more structured collection.
Suppose \(\mathord{\equiv} \) is an equivalence relation on a finite set \(A \) so that the equivalence classes all have the same number of elements. Then
Write \(N \) for the number of equivalence classes, and write \(C \) for the common cardinality of the classes. We know that the equivalence classes partition the set \(A \text{,}\) so using the Addition Rule we have
where \(a_1, a_2, \dotsc, a_N \) are a complete set of equivalence class representatives. But we have assumed that these class cardinalities are all equal to each other, with each class satisfying \(\card{\eqclass{a_j}} = C \text{.}\) So
\begin{equation*}
\card{A} = \underbrace{C + C + \dotsb + C}_{N \text{ terms}} = N C \text{,}
\end{equation*}
which leads to
\begin{equation*}
N = \frac{\card{A}}{C} \text{,}
\end{equation*}
Let \(\Sigma = \{ \alpha, \beta, \gamma \} \text{.}\) How many words in \(\words{\Sigma}_4 \) contain exactly two \(\alpha \)s, one \(\beta \) and one \(\gamma \text{?}\)
Write \(\Lambda \) for the collection of words in \(\words{\Sigma}_4 \) of the type described. Instead of trying to count \(\Lambda \) directly, consider the following more structured collection.
Write \(\Sigma' = \{\alpha_1, \alpha_2, \beta, \gamma\} \text{,}\) and let \(\Lambda' \) be the set of words in \(\words{(\Sigma')}_4 \) that have no repeated letters. Similar to Worked ExampleΒ 20.3.11, we have
You may check that \(\mathord{\equiv} \) defines an equivalence relation on \(\Lambda' \text{.}\) Each class consists of exactly two words \(\{w_1,w_2\} \text{,}\) where \(w_2 \) has an \(\alpha_2 \) where \(w_1 \) has an \(\alpha_1 \) and an \(\alpha_1 \) where \(w_1 \) has an \(\alpha_2 \text{.}\) For example, one class of \(\Lambda' / \mathord{\equiv} \) is
Effectively, the classes remove the distinction between \(\alpha_1 \) and \(\alpha_2 \text{,}\) so that they might as well be the same letter, say, \(\alpha \text{.}\) In other words, there is a bijective correspondence between the classes in \(\Lambda' / \mathord{\equiv} \) and the words in \(\Lambda \text{.}\) Using the Division Rule, we have