Relative complement · Exercise-RELATIVE-COMPLEMENT-005

Step-by-step solved exercise: Operations and families

Let \(\displaystyle A = \{1,\ldots,10\}\) and \(\displaystyle B = \{2,4,6,8,10,12\}\). What is \(\displaystyle A \setminus B\)?

Step by step with comments, a check and common mistakes.

Step-by-step solution

  1. The elements of \(\displaystyle A\) run from \(\displaystyle 1\) to \(\displaystyle 10\).

    \[\displaystyle A = \{1,2,\ldots,10\}\]
  2. The even elements of \(\displaystyle A\) are in \(\displaystyle B\), so they are discarded.

    \[\displaystyle \{2,4,6,8,10\} \subseteq B\]
  3. The number \(\displaystyle 12\) is in \(\displaystyle B\) but not in \(\displaystyle A\), so it does not affect the difference.

    \[\displaystyle 12 \notin A\]
  4. The odd elements of \(\displaystyle A\) remain.

    \[\displaystyle A \setminus B = \{1,3,5,7,9\}\]

Answer

\(\displaystyle \{1,3,5,7,9\}\)

🎯 Build my path to this exercise