Chap02 Set
Chap02 Set
(501215-3)
Chapter 2
Basic Structures: Sets,
Functions, Sequences,
and Sums
1
2.1 Sets
2.2 Set Operations
2.3 Functions
2.4 Sequences and Summations
P. 121
2.1 Sets
– R, real numbers
– {N,Z,Q,R}
• Definition 3: Two sets are equal if and
only if they have the same elements.
A=B iff x(x A x B)
– {1, 3, 5} and {3, 5, 1} are equal
• Empty set (null set): (or {})
• Venn diagram to graphically represent
sets
– Universal set U: rectangle
– Sets: circles
– Elements of a set: point
FIGURE 1 (2.1)
21
P. 134
Exercise
24
P. 127
Exercise
27
P. 133
• Let G be the function that assigns a grade
to a student in our discrete mathematics
class. Note that G(Adams) = A.
• domain(G)=…
• Codomain(G)=…
• Range(G)=…
Exercise
30
P. 134
Sum and product of functions
37
P. 139
Exercise
• Determine whether the function f (x) = x2
from ℤ to ℤ is one-to-one and/or onto.
– The function f (x) = x2 is…
43
P. 141
Exercise
53
P. 153
Summations
• Summation notation:
n
a
j m
j
n
j m
aj m j n
aj
– am+am+1+…+an
– j: index of summation
– m: lower limit
– n: upper limit
Exercises
57
P. 157
• What are the values of these sums?
5 100
(k 1) 3
100
k 1
k
k 1 k 1
3 4
i j
4 3
2i j
4 3
ij
2
i 1 j 0 i 1 j 0
i 1 j 1