Exercise · ZW-INCLUSION-EXCLUSION-PRINCIPLE-010 · ★★★ Advanced

How many integers from 1 to 1000 are divisible by none of 3, 5 and 7?

Choose one option.

Show answer
  • B. \(457\)

Explanation

Those divisible number \(333+200+142-66-47-28+9=543\); hence \(1000-543=457\). The value 543 counts the ones that are divisible.

Study Discrete mathematics in ZWMath →

Review the concept: Inclusion-exclusion principle

It counts the elements of the union of finite sets \(A\), \(B\), \(C\), … by adding their sizes and correcting what was counted too often in the intersections.

\[\begin{aligned}|A\cup B|&=|A|+|B|-|A\cap B|\\|A\cup B\cup C|&=|A|+|B|+|C|\\&\quad-|A\cap B|-|A\cap C|-|B\cap C|\\&\quad+|A\cap B\cap C|\end{aligned}\]

More practice problems: inclusion-exclusion principle

← ZW-INCLUSION-EXCLUSION-PRINCIPLE-009