Exercise · ZW-INCLUSION-EXCLUSION-PRINCIPLE-003 · ★☆☆ Basic

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

Choose one option.

Show answer
  • A. \(67\)

Explanation

There are \(50\) multiples of 2, \(33\) of 3 and \(16\) of 6, so \(50+33-16=67\).

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-002 ZW-INCLUSION-EXCLUSION-PRINCIPLE-004 →