The number of 3-digit numbers, that are divisible by either 2 or 3 but not divisible by 7 is _____ .
Solution
Core idea. A condition "or" is counted by inclusion and exclusion, and a further "but not" by removing a smaller union.
Concept refresher. For two sets, the number of elements in at least one of them is
The multiples of between two bounds form an A.P. with difference .
Picture the situation. Among the nine hundred three-digit numbers, half are even and a third are multiples of 3, with the multiples of 6 in both groups. From the union of those two groups the multiples of 7 have to be removed. A multiple of 7 inside the union is a multiple of 14 or of 21, and the multiples of 42 lie in both of those.
Approach. Count the union for two and three, then the union for fourteen and twenty-one, and subtract.
Step 1: Divisible by 2 or 3
Of the 900 three-digit numbers, 450 are divisible by 2, 300 by 3 and 150 by 6. So are divisible by 2 or 3.
Step 2: Also divisible by 7
These are the multiples of 14 or 21. The multiples of 14 run from 112 to 994, which is 64 numbers; those of 21 from 105 to 987, which is 43; those of 42 from 126 to 966, which is 21. So numbers are removed.
Step 3: The count
The required count is what remains of the 600 after these are removed, .
Answer. 514
Sanity check. About one seventh of the 600 numbers should be removed, and is about 86, in agreement.
Common wrong answers
- 472: Removing all 128 three-digit multiples of 7 gives 472; odd multiples of 7 that are not multiples of 3 were never counted.
- 493: Not adding back the 21 multiples of 42 gives .
Key takeaway
The trap. Only the multiples of seven that are inside the first count are removed.
How toppers think. They estimate the removed part as one seventh of the first count.
Remember.
More on Arithmetic Progression
- Let α = 3 + 4 + 8 + 9 + 13 + 14 + … upto 40 terms. If (tanβ)^(α/1020) is a root of the equation x² + x - 2 =…
- The sum of the first ten terms of an A.P. is 160 and the sum of the first two terms of a G.P. is 8. If the…
- Let the sum of the first n terms of an A.P. be 3n² + 5n. Then the sum of squares of the first 10 terms of…
- All 85 on Arithmetic Progression ›