Number of Subsets of [n] is 2^n
Let = .
Theorem
For all positive integers n, the number of all subsets of is .
Proof:
By induction
Base case: for = 1, the statement is true as has two subsets, the empty set and .
Induction step:
Assume we know that the statement is true for , and want to prove it for .
We divide all subsets of into two groups:
- Subsets containing
- Subsets not containing
Now, each subset not containing is a subset of . We know there are such sets, by the induction hypothesis.
Now, those subsets that contain have and a subset of . The subset of can be any subset, so the total number of subsets containing is also .
Therefore, total number of subsets of .
Hence proved.