[Math] Number of two disjoint subsets from the an n-set $\{x_1, x_2,…,x_n\}$.

combinatorics

In how many ways can you select two disjoint subsets from the an n-set $\{x_1, x_2,…,x_n\}$?

Best Answer

We are essentially partitioning our original set $X$ into three pieces: those in $A$, those in $B$, and those in neither set. Suppose $|A|=k$. How many ways are there to choose $B$? Of the $n-k$ items remaining, there are $2^{n-k}$ possible subsets to choose from. And there are ${n\choose k}$ ways to choose $A$ with $|A|=k$. So the total number of possibilities is

$$\frac12\sum_{k=0}^n{n\choose k}2^{n-k}+\frac12,$$

where the factor $1/2$ accounts for the fact that except in the case $A=B=\emptyset$ swapping $A$ and $B$ amounts to the same choice (assuming that the two sets are not distinguished, it is not clear from your wording if this is the case).

Alternatively, as suggested by Qidi we can go elementwise, indicating for each element if it is in $A$, $B$ or neither, and this yields the answer $\frac123^n+\frac12$. So in fact this gives a combinatorial proof of $\sum_{k=0}^n{n\choose k}2^{n-k}=3^n$ (which can also be derived by the binomial formula on $(1+2)^n=\sum_{k=0}^n{n\choose k}1^k2^{n-k}$).