How many of the integers , are divisible by none of and ?
How many of the integers , are divisible by none of and ?
Solution
We want numbers that avoid all three divisors: 2, 5, and 7 between the numbers 1 to 120. This is a perfect application of the inclusion-exclusion principle.
The strategy is to find how many numbers ARE divisible by at least one of these, then subtract from the total.
Total numbers: 120
Numbers divisible by each factor:
Divisible by 2:
Divisible by 5:
Divisible by 7: (since )
Numbers divisible by pairs:
Divisible by both 2 and 5 (i.e., by 10):
Divisible by both 2 and 7 (i.e., by 14):
Divisible by both 5 and 7 (i.e., by 35):
Numbers divisible by all three:
Divisible by 2, 5, and 7 (i.e., by 70):
Inclusion-Exclusion Formula:
Numbers divisible by at least one of 2, 5, or 7:
Numbers divisible by NONE of 2, 5, or 7:
Alternative approach: We can also solve this by finding numbers that are coprime to 2 and 5 first, then removing those divisible by 7.
Numbers not divisible by 2 or 5:
Among these 48, how many are divisible by 7?
The multiples of 7 from 1 to 120 that are NOT divisible by 2 or 5 are:
(that's 7 numbers)
Final answer:
Therefore, 41 integers from 1 to 120 are divisible by none of 2, 5, and 7.