1. Limited time only! Sign up for a free 30min personal tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Homework Help: Set operations

  1. Nov 17, 2012 #1
    Here's the problem:
    Suppose U = {x | -10 ≤ x ≤ 10 and x ∈ Z}, A = all multiples of 2, B = all multiples of 3, and C = {-10, -9, -8, -6, -4, 0, 1, 3, 5, 6, 8, 10}.

    Find C - (A-B).

    Solution:
    A = {-10, -8, -6, -4, -2, 0, 2, 4, 6, 8, 10}
    B = {-9, -6, -3, 0, 3, 6, 9}
    C = {-10, -9, -8, -6, -4, 0, 1, 3, 5, 6, 8, 10}

    C - (A-B) = C - {-10, -8, -4, -2, 2, 4, 8, 10}
    = {-10, -8, -6, -4, -2, 0, 2, 4, 6, 8, 10} - {-10, -8, -4, -2, 2, 4, 8, 10}
    = {-9, -6, 0, 1, 3, 5, 6}

    Does this look right? Thanks for any suggestions!
     
  2. jcsd
  3. Nov 18, 2012 #2

    SammyS

    User Avatar
    Staff Emeritus
    Science Advisor
    Homework Helper
    Gold Member

    Looks right to me.
     
  4. Nov 18, 2012 #3
    Okay, thanks for the help!
     
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook