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

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

Choose one option.

Show answer
  • D. \(33\)

Explanation

Those that are divisible total \(67\); the rest is \(100-67=33\).

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