How many different equivalence relations with exactly two different equivalence classes are there on a set with $n$ elements

296 Views Asked by At

I came across with this topic. It looks straight forward for $5$ elements, but what if I want to find how many different equivalence relations with exactly two different equivalence classes are there on a set with $n$ elements?

It says that the set of equivalence relations on a set are in direct bijection with the set of partitions on a set. This made me read about Bell numbers but I'm not sure how help us here. How to solve this problem?

2

There are 2 best solutions below

2
On

Since equivalence relations bijectively correspond to partitions on the same set (via their equivalence classes) we see that the number of equivalence relations with exactly two different equivalence classes is the number of partitions of a set with $n$ elements into two non-empty sets. There are in total $2^n$ different subsets of which $2^n-2$ are non-empty and not the whole set. Therefore the number of these partitions is $\frac{2^n-2}{2}=2^{n-1}-1$ (we need to divide by $2$ since otherwise we would count each partition twice)

0
On

Pick an element $a\in S$. Then we have an obvious bijection between $$\{\text{equivalence relations on }S\text{ with exactly two equivalence classes}\}$$ and $$\{\text{proper subsets of }S\setminus\{a\}\,\}$$ given by $$ {\sim}\mapsto \{\,x\in S\setminus\{a\}\mid x\sim a\,\}$$