How many numbers between and are integer multiples of or but not ?
- A)
- B)
- C)
- D)
- E)
Answer
C
Key insight
Multiples of 12 are counted once in the 3-list and once in the 4-list, so to exclude them entirely subtract the 12-count twice.
Solution
Count each kind of multiple up to :
A multiple of is a multiple of both and , so it appears in both of the first two counts. We want such numbers removed completely, so we must take them out twice:
The answer is .
Why this works
Standard inclusion-exclusion subtracts the overlap once to get "multiples of or ." Excluding the overlap altogether requires one more subtraction. Think of it as a Venn diagram: we want the two crescents but not the lens in the middle, and the lens was counted twice by the raw sums.
Alternative approach
Every block of consecutive integers contains exactly qualifying numbers (residues ). There are full blocks in to , giving , and (residue ) adds nothing.
The trap
Subtracting the multiples of 12 only once (ordinary inclusion-exclusion), which leaves them in and gives 1002.
Common mistakes
- Subtracting the multiples of 12 only once (ordinary inclusion-exclusion), which leaves them in and gives 1002.
- Not subtracting at all (, choice (E)) or miscomputing one of the floor quotients.
Techniques
Set up the equation/formula and compute; no special trick needed