Exercise · ZW-INCLUSION-EXCLUSION-PRINCIPLE-004 · ★★☆ Intermediate

How many integers from 1 to 100 are divisible by 2, 3 or 5?

Choose one option.

Show answer
  • C. \(74\)

Explanation

With \(50,33,20\) and intersections \(16,10,6\) and \(3\): \(50+33+20-16-10-6+3=74\). Forgetting to add the triple term gives 71.

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-003 ZW-INCLUSION-EXCLUSION-PRINCIPLE-005 →