I know we can use induction to prove statements about counting various types of subsets of a set and that we have to apply the same idea to count the number of pairs of disjoint subsets of a set.
I am given with the following definitions:
- $(S_{n})$: Let $n∈N$. We define the set $S_{n} = \{0, 1, . . . , n−1\}$ (with $S_{0}$ obviously $= ∅$). Note that $|S_{n}| = n$.
- $(DP_{n})$: Let $n∈N$. We define the set of disjoint subset pairs of $S_{n}$ as: $$ DP_{n}=\{(A, B) \ | \ A, B ⊆ S_{n} \ \text{and} \ A ∩ B = ∅\} $$
From this I've inferred for $n = 0$, $S_{n} = ∅$, and $DP_{n} = \{(∅, ∅)\}$. For $n = 3$, $S_{n}= \{0, 1, 2\}$, some elements of $DP_{3}$ are $(\{1\}, \{0, 2\})$ and $(\{0, 1, 2\}, ∅)$ and that order matters in tuples so the pair $(\{0, 2\}, \{1\})$ in $DP_{3}$, and is considered different from $(\{1\}, \{0, 2\})$. Please correct me if any of these assumptions is wrong.
(a) What are $DP_{1}$ and $DP_{2}$ explicitly in set notation?
(b) Find a formula for the size of $DP_{n}$ (in terms of $n$), and then prove that your formula is correct for all values of $n$ ($\forall n \in \mathbb{N}$).
This is what I did for (b):
Let $n \in \mathbb{N}$. Then for the base case, $n=0$: \begin{align*} L.H.S.=|DP_0|=1\\ R.H.S.=3^0=1 \end{align*} So $P(0)$ holds.
Assuming that $P(k)$ holds for $n=k$, we have $|DP_k|=3^k$ And we need to prove $|DP_{k+1}|=3^{k+1}$ for $n=k+1$.
Now, \begin{align*} |DP_{k+1}| &=|DP_k| \cup |\{ \text{the pairs of elements in the set $S_k$} \}|\\ &=3^k +2.3^k && \text{(The $2$ is to account for the pairs occurring}\\ &= 3^k(1+2) && \text{in the subsequent set being added since order}\\ &= 3^k.3 && \text{does matter in tuples.)}\\ &= 3^{k+1} \end{align*} which is what we wanted to show.
$\therefore P(k+1)$ holds.