Arithmetic · real student question

Find the union of the sets {5, 6, 8, 9} and {5, 7, 8}.

Question

Find the union of the sets

{5,6,8,9}{5,7,8}\{5,6,8,9\}\cup\{5,7,8\}

Step-by-step solution

  1. Recall the definition. The union ABA\cup B contains every element that is in AA, or in BB, or in both. It is an inclusive or, so nothing gets thrown away — the union is always at least as big as either set.

  2. Sweep the first set. From {5,6,8,9}\{5,6,8,9\} take 55, 66, 88 and 99. The running collection is

    {5,6,8,9}\{5,6,8,9\}

  3. Sweep the second set, skipping repeats. From \{5,7,8\\}: 55 is already listed, 77 is new, 88 is already listed. A set records only whether an element belongs, never how many times, so duplicates are dropped:

    {5,6,8,9}{7}={5,6,7,8,9}\{5,6,8,9\}\cup\{7\}=\{5,6,7,8,9\}

  4. Write the answer in increasing order. Order does not change a set, but listing elements from small to large makes an omission easy to spot:

    {5,6,8,9}{5,7,8}={5,6,7,8,9}\{5,6,8,9\}\cup\{5,7,8\}=\{5,6,7,8,9\}

  5. Check the count. The two sets have 44 and 33 elements, sharing the two elements 55 and 88. Inclusion-exclusion predicts

    AB=4+32=5|A\cup B|=4+3-2=5

    and the answer indeed has 55 elements \checkmark. The union is certainly not the empty set, so choice B is wrong; the answer is choice A with {5,6,7,8,9}\{5,6,7,8,9\} in the box.

Answer

{5,6,7,8,9}\{5,6,7,8,9\}

Need to solve a different problem like this? Open the solver →