[Math] how to comput the number of equivalence relation in a finite set

discrete mathematicselementary-set-theoryequivalence-relations

Example:
Let $A =\{1,2,3\}$ and $S =\{(1,1)(2,2)(3,3)(1,2)(1,3)(3,1)(1,3)(2,3)(3,2)\}$
$S$ is an equivalence relation on $A$, and it has $9$ order pairs in it. Which is the square of element in $A(3^2=9)$

Let $A=\{1,2,3,4\}$, and $S=\{(1,1)(2,2)(3,3)(1,2)(1,3)(3,1)(1,3)(2,3)(3,2)(1,4)(4,1)(2,4)(4,2)(3,4)(4,3)(4,4)\}$
$S$ is an equivalence relation on $A$, and it has $4^2=16$ order pairs in it.

By this pattern, if $A=\{1,2,3,4,5,6,7,8,9,10\}$ then there should be $10^2$ equivalence relations in $S$.

Question:
If $A$ is a set of natural numbers $\{1,2,3…..,n\}$ then how many equivalence relation $S$ have on $A$?

By the above example I know there are going to be $n^2$ equivalence relations, but I just don’t know how to prove it. I was wondering if anyone can give me a hint.

Best Answer

The number of equivalence relations on a set of $n$ elements is the same as the number of partitions on a set of $n$ elements which is given by Bell numbers $B_n$. You can compute them recursively using the recurrence $$ B_{n+1}=\sum_{k=0}^n \binom{n}{k}B_k;\quad B_0=B_1=1. $$ The number of relations on a set $A$ with $n$ elements is $2^{n^2}$ as a relation is a subset of the cartesian product $A\times A$.

Related Question