Complement Counting
补集计数
Counting / 计数What It Looks Like
Recognition signals — when you see these, think of this structure:
- 1The phrase 'at least one'
- 2The phrase 'not all' or 'avoid a condition'
- 3Direct counting seems messy but total is clean
What It Really Tests
The core mathematical idea behind this structure:
Count the total first, then subtract what is NOT wanted.
先算总数, 再减掉不要的, 得到想要的。
Why Students Get Stuck
Common mistakes to watch out for:
- ⚠Trying to count the target directly when it is complex
- ⚠Subtracting the wrong group
- ⚠Forgetting hidden overlap in the subtracted group
Your First Step
How to begin thinking about problems with this structure:
Ask: is the unwanted set easier to count than the wanted set?
问自己: 不满足条件的情况是否比满足条件的更好数?
Try a Problem
How many two-digit numbers from 10 to 99 have at least one digit equal to 5?
💡 Show Solution & Key Insight
Answer
B
Explanation
Total two-digit numbers: 90. Count the complement (no digit is 5): tens digit has 8 choices (1-9 except 5), units digit has 9 choices (0-9 except 5). Complement = 8 × 9 = 72. Answer = 90 - 72 = 18.
Key Insight
'At least one' is a signal to use complement counting: Total - None = At least one.
Common Wrong Path
Trying to list all numbers with a 5, which is error-prone and slow.
Related Structures
These structures share similar patterns or thinking approaches: