Exercise · ZW-RELATIVE-COMPLEMENT-010 · ★★★ Advanced

Let \(A = \{1,\ldots,8\}\) and \(B = \{x \in A : x > 5\}\). What is \(|A \setminus B|\)?

Choose one option.

Show answer
  • D. \(5\)

Explanation

\(B = \{6,7,8\}\), so \(A \setminus B = \{1,2,3,4,5\}\), which has 5 elements. The 3 is \(|B|\), not \(|A \setminus B|\).

Study Set theory in ZWMath →

Review the concept: Relative complement

The relative complement of \(B\) in \(A\) is the set \(A \setminus B\) of elements of \(A\) that do not belong to \(B\).

\[A \setminus B = \{x \in A : x \notin B\}\]

More practice problems: relative complement

← ZW-RELATIVE-COMPLEMENT-009