程序代写代做代考 C discrete mathematics EECS 70 Discrete Mathematics and Probability Theory Fall 2020

EECS 70 Discrete Mathematics and Probability Theory Fall 2020
Review of Sets and Mathematical Notation
Note 0
A set is a well defined collection of objects. These objects are called elements or members of the set, and
they can be anything, including numbers, letters, people, cities, and even other sets. By convention, sets are
usually denoted by capital letters and can be described or defined by listing its elements and surrounding the
list by curly braces. For example, we can describe the set A to be the set whose members are the first five
prime numbers, or we can explicitly write: A = {2, 3, 5, 7, 11}. If x is an element of A, then we write x ∈ A.
Similarly, if y is not an element of A, then we write y ̸∈ A. Two sets A and B are said to be equal, written as
A = B, if they have the same elements. The order and repetition of elements do not matter, so {red, white,
blue} = {blue, white, red} = {red, white, white, blue}. Sometimes, more complicated sets can be defined
by using a different notation. For example, the set of all rational numbers, denoted by Q, can be written as:
{ a | a, b are integers, b ̸= 0}. In English, this is read as “the set of all fractions such that the numerator is an b
integer and the denominator is a non-zero integer.”
Cardinality
We can also talk about the size of a set, or its cardinality. If A = {1,2,3,4}, then the cardinality of A, denoted by |A|, is 4. It is possible for the cardinality of a set to be 0. This set is called the empty set, denoted by the symbol0/.Asetcanalsohaveaninfinitenumberofelements,suchasthesetofallintegers,primenumbers, or odd numbers.
Subsets and Proper Subsets
If every element of a set A is also in set B, then we say that A is a subset of B, written A ⊆ B. Equivalently we can write B ⊇ A, or B is a superset of A. A proper subset is a set A that is strictly contained in B, written as A ⊂ B, meaning that A excludes at least one element of B. For example, consider the set B = {1, 2, 3, 4, 5}. Then {1, 2, 3} is both a subset and a proper subset of B, while {1, 2, 3, 4, 5} is a subset but not a proper subset of B. Here are a few basic properties regarding subsets:
•Theemptyset,denoteby{}or0/,isapropersubsetofanynonemptysetA:{}⊂A. • TheemptysetisasubsetofeverysetB: {}⊆B.
• EverysetAisasubsetofitself: A⊆A.
Intersections and Unions
The intersection of a set A with a set B, written as A ∩ B, is a set containing all elements which are in both AandB. TwosetsaresaidtobedisjointifA∩B=0/. TheunionofasetAwithasetB,writtenasA∪B, is a set of all elements which are in either A or B or both. For example, if A is the set of all positive even numbers, and B is the set of all positive odd numbers, then A∩B = 0/, and A∪B = Z+, or the set of all positive integers. Here are a few properties of intersections and unions:
• A∪B=B∪A • A ∪ 0/ = A
EECS 70, Fall 2020, Note 0 1

• A∩B=B∩A • A ∩ 0/ = 0/
Complements
If A and B are two sets, then the relative complement of A in B, written as B − A or B\A, is the set of elementsinB,butnotinA: B\A={x∈B|x̸∈A}. Forexample,ifB={1,2,3}andA={3,4,5},then B\A = {1, 2}. For another example, if R is the set of real numbers and Q is the set of rational numbers, then R\Q is the set of irrational numbers. Here are some important properties of complements:
• A \ A = 0/ • A \ 0/ = A • 0/ \ A = 0/
Significant Sets
In mathematics, some sets are referred to so commonly that they are denoted by special symbols. Some of these numerical sets include:
• N denotes the set of all natural numbers: {0,1,2,3,…}.
• Z denotes the set of all integer numbers: {…,−2,−1,0,1,2,…}.
• Q denotes the set of all rational numbers: {a | a,b ∈ Z, b ̸= 0}. b
• R denotes the set of all real numbers.
• C denotes the set of all complex numbers.
In addition, the Cartesian product (also called the cross product) of two sets A and B, written as A × B, is the set of all pairs whose first component is an element of A and whose second component is an element of B. In set notation, A×B = {(a,b) | a ∈ A,b ∈ B}. For example, if A = {1,2,3} and B = {u,v}, then A × B = {(1, u), (1, v), (2, u), (2, v), (3, u), (3, v)}. Given a set S, another significant set is the power set of S, denoted by P(S), is the set of all subsets of S: {T | T ⊆ S}. For example, if S = {1,2,3}, then the power set of S is: P(S) = {{},{1},{2},{3},{1,2},{1,3},{2,3},{1,2,3}}. It is interesting to note that, if |S| = k, then |P(S)| = 2k.
Mathematical notation:
Sums and Products:
There is a compact notation for writing sums or products of large numbers of items. For example, to write 1+2+···+n, without having to say dot dot dot, we write it as ∑ni=1 i. More generally we can write the sum
f(m)+ f(m+1)+···+ f(n) as ∑ni=m f(i). Thus, ∑ni=5 i2 = 52 +62 +···+n2.
Towritetheproduct f(m)f(m+1)···f(n),weusethenotation∏ni=m f(i).Forexample,∏ni=1i=1·2···n.
Universal and existential quantifiers:
EECS 70, Fall 2020, Note 0 2

Consider the statement: For all natural numbers n, n2 + n + 41 is prime. Here, n is quantified to any element of the set N of natural numbers. In notation, we write (∀n ∈ N)(n2 + n + 41 is prime). Here we have used the universal quantifier ∀ (“for all”). Is the statement true? If you try to substitute small values of n, you will notice that n2 + n + 41 is indeed prime for those values. But if you think harder, you can find larger values of n for which it is not prime. Can you find one? So the statement (∀n ∈ N)(n2 + n + 41 is prime) is false.
The existential quantifer ∃ (“there exists”) is used in the following statement: ∃x ∈ Z x < 2 and x2 = 4. The statement says there is an integer x which is less than 2, but its square is equal to 4. This is a true statement. We can also write statements using both kinds of quantifiers: 1. ∀x∈Z∃y∈Z y>x
2. ∃y∈Z∀x∈Zy>x
The first statement says that, given an integer, we can find a larger one. The second statement says something
very different: that there is a largest integer! The first statement is true, the second is not.
EECS 70, Fall 2020, Note 0 3