Let $|A| = n \geq 2$ a set. How many equivalence relations are there on $A$ that have two equivalence classes?
Note the answer is in this post. My problem is I don't fully understand it. Can someone give a concrete example with say a set $3 = n = |A| = |\{a_1, a_2, a_3\}|$ to show how they find the formula $\frac {2^n-2}2$?
I understand the first part of the sentence of "user873979" due to the simple fact that $$A = \bigcup_{\alpha \in A}[\alpha] \quad\text{and} \quad [\alpha]\cap[\beta] = \emptyset \quad \text{for }\alpha,\beta \in A.$$ But then then I get lost after that I don't understand.
Also note that I know that given a relation $\sim$ on an arbitrary set $|A|=n$, we know $|\sim| = \sum\limits_{i=1}^n |A_i|^2$.
Again, if one could explain the linked post in terms of the example set I gave, i.e., $3 = n = |A| = |\{a_1, a_2, a_3\}|$, that would be very helpful I am sure! Thank you!