Come104 Lecture 4
Come104 Lecture 4
Come104 Lecture 4
MATHEMATICS
LECTURE 4
Review
Example
Prove, by induction that the sum of first n positive odd integers is
1+3+5+…+(2n-1)=
Solution
The sum of first n positive odd integers is
1+3+5+…+(2n-1)=
Example
Prove using mathematical induction that for all
Steps
Inductive Step:
Suppose that holds
1+4+7+…+(3k-2)=
1+4+7+…+(3k-2)+(3k+1)=
Steps
1+4+7+…+(3k-2)+(3k+1)=
1+4+7+…+(3k-2)=
1+4+7+…+(3k-2)+(3k+1)=
+(3k+1)
equate denominators
𝑘 ( 3 𝑘− 1 ) +6 𝑘+ 2 3 𝑘2 −𝑘+6 𝑘+2
2 2
Example
Prove using mathematical induction that is divisible by 6 for all
Inductive Step:
Assume k=2,
= 7.48 + 6
= 342
342/6= 57
İt is also divisible by 6
Hence, is divisible by 6 and so
Ɐ k (P(k) P(k+1)) is true.
Divisible by Therefore, by induction, P(n) is true for all n
6
Example
A sequence of integers is defined recursively as follows:
Inductive Step:
specification by predicates:
S= {x| P(x)},
S contains all the elements from U which make the predicate P true.
c) C={: n is an integer}
Answer
Find simpler descriptions of the following sets by enumerating their
elements:
a) A={x: x is an integer and }
then x(x+4)=12.
Since x is an integer and the factors of 12 are ,
The only possibilities for x are x=-6 or x=2
A={-6,2}
Answer
Find simpler descriptions of the following sets by enumerating their
elements:
c) C={: n is an integer}
C={0, 1, 4, 9,16,…}
Sets (cont.)
Common Universal Sets
Notation:
x is a member of S or x is an element of S:
x S.
x is not an element of S:
x S.
Sets (cont.)
Subsets
Definition: The void set, the null set, the empty set, denoted , is the set with
no members.
Definition: The set of all subset of a set A, denoted P(A), is called the
power set of A.
If the cardinality is a natural number (in N), then the set is called finite,
else infinite.
Example:
A = {a,b}, B = {1, 2, 3}
AxB = {<a, 1>, <a, 2>, <a, 3>, <b, 1>, <b, 2>, <b, 3>}
What is BxA?
AxB ≠ BxA
1) AB
2) AB
3) A-B
4) B-A
5) AB
Set Operations (cont.)
Examples:
U = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10}
A= {1, 2, 3, 4, 5},
B = {4, 5, 6, 7, 8}.
Then
1) A B = {1, 2, 3, 4, 5, 6, 7, 8}
2) A B = {4, 5}
3) = {0, 6, 7, 8, 9, 10}
4) = {0, 1, 2, 3, 9, 10}
5) A - B = {1, 2, 3}
6) B - A = {6, 7, 8}
7) AB = {1, 2, 3, 6, 7, 8} A B = (A - B) U (B - A)