CAT 2020 Slot 3 — QA Question 25
DivisibilityMedium
How many of the integers 1, 2, … , 120, are divisible by none of 2, 5 and 7?
Answer & solution
- A
42
41
- C
40
- D
43
Solution
Medium
Count the integers from to that are divisible by at least one of using inclusion–exclusion, then subtract from . Here is the count of multiples of .
1
Single multiples. Count multiples of each of up to .
2
Pairwise multiples. Count multiples of each product of two of them.
3
Triple multiples. Count multiples of .
4
Inclusion–exclusion. Combine to get how many are divisible by at least one of .
5
Take the complement. Divisible by none total divisible by at least one.