In one sentence
The total number of marks in a table (an incidence table) can be added up by rows or by columns:
This sounds too simple to be worth saying, yet it is extremely powerful: choose the “rows” and “columns” well, and one side is easy to compute while the other side is exactly the quantity you want. That is counting in two ways (the Fubini principle).
Predict first
is the number of positive divisors of . What is ?
. You could count the divisors one by one, but counting by “multiples” is faster: .
Example: Σ d(j) = Σ ⌊n/i⌋
Step 1 / 4- Draw the incidence table
The rows are and the columns are ; put a dot where . The sum we want is the number of dots in the table.
Stop 1 · Families of subsets (Vol. 1)
Rows = elements, columns = subsets, and a dot where “the element belongs to the subset”. Counting by columns gives ; counting by rows gives “how many subsets each element belongs to”.
Example: the total size of all the subsets of {1, 2, 3, 4}
Step 1 / 3- Count by columns
Each column is a subset , and its column sum is . Adding up numbers directly is a bit tiring.
Stop 2 · People and groups (Vol. 1)
Rows = people, columns = groups, and a dot where “this person is in this group”. If you know every row sum and every column sum, you can work one out from the other.
Example: each person is in exactly 3 clubs, each club has exactly 6 people, and there are 40 people. How many clubs are there?
Step 1 / 4- Name the unknown
Say there are clubs. The incidence table has rows and columns.
Stop 3 · Sums and combinatorial identities (Vol. 5)
The most beautiful way to prove an identity is to find a set whose two ways of counting give the two sides.
One problem, several solutions
Prove that .
Count in two ways
Count the -element subsets of . On one hand there are of them. On the other hand, sort them by their largest element (): the other two elements are chosen from , in ways. The two sides are equal.
CostYou have to think of “sorting by the largest element”, but then it takes one line.
Mathematical induction
For both sides are . If it holds for , adding to the left side gives (Pascal's rule), so it holds for .
CostMechanical and reliable, but it does not show “why” the identity holds.
Stop 4 · Combinatorial estimates (Vol. 6)
To bound how large a family of sets can be, count some kind of “pair”: one side gives an upper bound from the condition, the other is expressed through the size of the family.
Example: 𝓕 is a family of 3-element subsets of {1, …, 7}, and any two of its sets share at most one element. How large can |𝓕| be?
Step 1 / 4- What to count
Count “(pair of elements , set )” with .
Practice
Find , where is the number of positive divisors of .
A grade has students. Each student is in exactly clubs, and each club has exactly students. How many clubs are there?
Find .
A family of -element subsets of has the property that any two of its sets share at most one element. At most how many sets can such a family have?