Skip to main contentSkip to solution

How many of the integers 1,2,...,1201, 2, ..., 120, are divisible by none of 2,52, 5 and 77?

Solution

✅ Correct Option: 3

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: ⌊120÷2⌋=60\lfloor 120 ÷ 2 \rfloor = 60

Divisible by 5: ⌊120÷5⌋=24\lfloor 120 ÷ 5 \rfloor = 24

Divisible by 7: ⌊120÷7⌋=17\lfloor 120 ÷ 7 \rfloor = 17 (since 120÷7=17.14...120 ÷ 7 = 17.14...)

Numbers divisible by pairs:

Divisible by both 2 and 5 (i.e., by 10): ⌊120÷10⌋=12\lfloor 120 ÷ 10 \rfloor = 12

Divisible by both 2 and 7 (i.e., by 14): ⌊120÷14⌋=8\lfloor 120 ÷ 14 \rfloor = 8

Divisible by both 5 and 7 (i.e., by 35): ⌊120÷35⌋=3\lfloor 120 ÷ 35 \rfloor = 3

Numbers divisible by all three:

Divisible by 2, 5, and 7 (i.e., by 70): ⌊120÷70⌋=1\lfloor 120 ÷ 70 \rfloor = 1


Inclusion-Exclusion Formula:

∣A∪B∪C∣=∣A∣+∣B∣+∣C∣−∣A∩B∣−∣A∩C∣−∣B∩C∣+∣A∩B∩C∣|A \cup B \cup C| = |A| + |B| + |C| - |A \cap B| - |A \cap C| - |B \cap C| + |A \cap B \cap C|

Numbers divisible by at least one of 2, 5, or 7:

60+24+17−12−8−3+1=7960 + 24 + 17 - 12 - 8 - 3 + 1 = 79


Numbers divisible by NONE of 2, 5, or 7:

120−79=41120 - 79 = 41


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:

120×(1−12)×(1−15)=120×12×45=48120 \times (1 - \tfrac{1}{2}) \times (1 - \tfrac{1}{5}) = 120 \times \tfrac{1}{2} \times \tfrac{4}{5} = 48

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:

7,21,49,63,77,91,1197, 21, 49, 63, 77, 91, 119 (that's 7 numbers)

Final answer: 48−7=4148 - 7 = 41

Therefore, 41 integers from 1 to 120 are divisible by none of 2, 5, and 7.

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question