What this move does
The number of elements of a finite set is written . If you can list them, just count. If you can't, use one of these three moves:
- Listing: write out every small case to see the structure.
- Correspondence: build a one-to-one correspondence that swaps what you want to count for something easier to count. Subsets 0-1 strings: a in position means is in the subset.
- Recursion: split the objects into two classes by whether they contain the last element . Each class becomes a smaller copy of the same problem.
Move 2 immediately gives the most basic formula: each digit is independently or , so
Grouping by the number of elements, group has members, so . The groups by size on the workbench above are exactly one row of Pascal's triangle.
Predict first
How many subsets of contain but not ?
Turn them into 0-1 strings: digit must be , digit must be , and the other digits are free. That gives .
Work through one
Problem: how many subsets of contain no two consecutive numbers? Call this number .
Recursion: subsets with no two consecutive numbers
Step 1 / 6- Count a small case first
: of the subsets, the ones marked ✗ contain two consecutive numbers. Count the ones without ✗: .
When it fails
Break it
Counterexample lab: remove one condition
Conclusion: The two sides have the same size ← still true?
Subsets 0-1 strings: different subsets give different strings, and every string can be read back as a subset. So has exactly as many subsets as there are 0-1 strings of length , namely .
Try a different “correspondence”: send each subset to the sum of its elements. The sum can only be : values. But there are subsets.
and both go to ; and both go to . The correspondence is many-to-one, so counting the images is not the same as counting the objects. Below, the subsets whose sum is a multiple of are picked out: there are only four sums, , but quite a few subsets.
Practice
How many subsets of contain both and ?
How many subsets of contain no two consecutive numbers? (The empty set counts.)
How many subsets of have an even number of elements? Rule: don't compute ; build a one-to-one correspondence instead.
How many subsets of contain no three consecutive integers?