From the course: Programming Foundations: Discrete Mathematics

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Solution: Practice with sets

Solution: Practice with sets

From the course: Programming Foundations: Discrete Mathematics

Start my 1-month free trial

Solution: Practice with sets

- Now that you've had a chance to try the challenge, let's go over a solution. The first problem says what are the possible values of n given this set notation. The set of all values n that are elements of the positive integers, such that n is a factor of 8. The only two numbers that are positive integers and factors of eight are two and four. Next, identify each of the following is true or false. The set containing the number three is not an element of the set on the right. So this is false. The set on the left is a subset of the set on the right, so the next one is true. The set containing the number three is an element of the set on the right because this is a list of sets. So this is going to be true. And finally, the set on the left containing just the number three is not a subset of the set on the right which is a set of sets. So this is going to be false. Next, for all sets A, B, and C, we want to prove that A minus A intersects B is equal to A minus B. We want to list the name…

Contents