Common Pitfalls in
Counting
Master the art of avoiding errors in combinatorics: miscounting, double counting, and invalid assumptions that derail even experienced problem-solvers.
Why Counting Goes Wrong
Counting problems look deceptively simple: just add or multiply. But three recurring errors trip up students at every level. Understanding why these mistakes happen is the first step to eliminating them.
Pitfall 1: Miscounting
Miscounting occurs when you fail to enumerate all cases or make boundary errors. The classic example: "How many integers from \( 1 \) to \( n \)?" The answer is \( n \), but "from \( a \) to \( b \) inclusive" gives \( b - a + 1 \), not \( b - a \).
Pitfall 2: Double Counting
Double counting happens when your counting scheme overlaps: the same outcome is reached by two or more branches of your enumeration. This is where the Inclusion-Exclusion Principle becomes essential.
Pitfall 3: Invalid Assumptions
An "invalid assumption" is applying a formula or rule outside its domain. Common examples include treating dependent choices as independent, assuming order matters when it does not (or vice versa), and confusing "with replacement" and "without replacement."
The Inclusion-Exclusion Principle
Inclusion-Exclusion is the primary tool for correcting double counts. For two sets, the formula is straightforward. For three sets, there is an extra correction layer.
Permutations vs Combinations
Confusing these two is the single most common invalid assumption in counting. The question to ask is: "Does the order of selection matter?"
| Permutation \( P(n,r) \) | Combination \( C(n,r) \) | |
|---|---|---|
| Order matters? | Yes | No |
| Formula | \( \frac{n!}{(n-r)!} \) | \( \frac{n!}{r!(n-r)!} \) |
| Example | Arranging 3 books on a shelf | Choosing 3 books to read |
| Relationship | \( P(n,r) = C(n,r) \times r! \) | |
A Checklist for Correct Counting
Example 1: Fencepost Error
Problem: How many multiples of 3 are there from 12 to 99 inclusive?
Example 2: Double Counting with Sets
Problem: In a class of 40 students, 22 study French, 18 study Spanish, and 8 study both. How many study at least one language?
Example 3: Invalid Assumption
Problem: A committee of 3 is chosen from 10 people. How many committees are possible?
Example 4: Three-Set Inclusion-Exclusion
Problem: How many integers from 1 to 100 are divisible by 2, 3, or 5?
Overcounting from Symmetry
When objects are identical or positions are indistinguishable, brute-force enumeration overcounts. Two common scenarios:
Independent vs Dependent Choices
The multiplication principle says: if choice A has \( m \) options and choice B has \( n \) options, the total is \( m \times n \). But this only works when B's options do not depend on A's selection.
| Independent | Dependent | |
|---|---|---|
| Definition | Choice B's count is the same regardless of A | Choice B's count changes based on A |
| Formula | \( m \times n \) | Must sum over cases or use conditional counts |
| Example | Pick a shirt (5) and pants (4): \( 5 \times 4 = 20 \) | Pick 2 people from 10 without replacement: \( 10 \times 9 \) |
Top Mistakes to Avoid
Summary of Pitfalls and Fixes
| Pitfall | What Goes Wrong | Fix |
|---|---|---|
| Miscounting | Off-by-one, missed cases | Fencepost rule, list small cases |
| Double Counting | Overlapping cases inflate totals | Inclusion-Exclusion Principle |
| Wrong Order | \( P \) vs \( C \) confusion | Ask: "Does rearranging matter?" |
| False Independence | Multiplying when stages are linked | Track how counts change per stage |
| Symmetry Ignored | Identical items treated as distinct | Divide by the symmetry group size |
Question 1 of 5
How many integers are there from 15 to 85 inclusive?
Question 2 of 5
In a group of 50 people, 30 like tea, 25 like coffee, and 10 like both. How many like neither?
Question 3 of 5
A student uses \( P(8,3) = 336 \) to count the number of 3-person study groups from 8 students. What went wrong?
Question 4 of 5
How many integers from 1 to 60 are divisible by either 4 or 6?
Question 5 of 5
A password consists of 4 digits chosen without replacement from \( \{0, 1, 2, \ldots, 9\} \). A student computes \( 10^4 = 10{,}000 \). What pitfall did they fall into?