Solved

Needs help in function

Posted on 2011-09-07
3
387 Views
Last Modified: 2012-05-12
Let E be the set of all even integers and let O be the set of all odd integers

a. Explain why E U O belongs to Z
b. Explain why Z belongs to E U O

Thanks.
0
Comment
Question by:mustish1
3 Comments
 
LVL 84

Expert Comment

by:ozo
ID: 36494412
Are there any integers which are not even or odd?
0
 
LVL 6

Assisted Solution

by:akajohn
akajohn earned 100 total points
ID: 36494856
This may help: The definition of parity:
http://en.wikipedia.org/wiki/Parity_(mathematics)
Integers are either odd or even. _ Just rephrasing what Ozo said.

Hence the sum of both is the list of all integers, Z.


A.
0
 
LVL 19

Accepted Solution

by:
Bardobrave earned 400 total points
ID: 36494996
a)

Z is the collection of all integers.
E is a collection of integers
O is a collection of integers
The union of two collection of integers will be a greater collection of integers, so it has to be contained in Z

b)
All integers are even or odd (depending on if they division by 2 returns a mod of 0 or 1, so "0" is an even number).
E is the collection of all even integers (included the "0")
O is the collection of all odd integers
Z is the collection of all even and odd integers, and by definition it will be included in the union of E and O (actually it's the same).
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Binomial distribution 2 55
Homework Help 5 88
Hashing Algorithm 5 70
using a 220V in USA vs 110 in Asia- which is more reliable. 14 45
Introduction On a scale of 1 to 10, how would you rate our Product? Many of us have answered that question time and time again. But only a few of us have had the pleasure of receiving a stack of the filled out surveys and being asked to do somethi…
Article by: Nadia
Suppose you use Uber application as a rider and you request a ride to go from one place to another. Your driver just arrived at the parking lot of your place. The only thing you know about the ride is the license plate number. How do you find your U…
This is a video describing the growing solar energy use in Utah. This is a topic that greatly interests me and so I decided to produce a video about it.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question