Professional Documents
Culture Documents
Monday 4/29
Spring 2019 10:00am – 10:50 am
Homework 11-3 #2, 3, 10, 11, 14, 15, 16
Final Exam –Friday 5/3 at 11 am – 1 pm
Calculator, 3 inch by 5 inch note card both sides
OR
x=x+x
x = (x + x) 1 identity
x = (x + x)(x + x’) complement
x = x + xx’ distributive
x=x+0 complement
x=x identity
done
Proof by Contrapositive: To prove pq, assume ¬q and show ¬p. Recall that pq and ¬q ¬p are logically
equivalent.
Example: For all x ϵ R, if x2 is irrational, then x is irrational.
Proof by Contrapositive:
We will assume ¬q and show ¬p
Assume if x is rational, then x2 is rational
a
If x is rational, then let x = , where a, b ϵ Z
b
2 2
a a
Then x2 = ()b
= 2 and a2, b2 ϵ Z by set closure and x2 is a rational number.
b
¬q ¬p and pq are logically equivalent and so we have shown by contrapositive that for all x ϵ R, if
x2 is irrational, then x is irrational.
QED
P(1) = 1 = 12 True
P(2) = 1+3 = 22 True
etc….
2. Assume that P(n) is true for some n. Derive from here that P(n+1) or “the next one” is also true.
From our assumption that P(n) = n2 is true, we will show that P(n+1) = (n+1)2 is also true.
1+ 3 + 5 + . . . + (2n-1) + (2n + 1) = n2 + (2n+1)
= n2 + 2n +1
= (n + 1)2
Which exactly means that P(n+1) holds. Therefore P(n) is true for all n starting with 1.
Chapter 3 Functions
Sections 3.1, 3.2, 3.3
3.1 Functions
Define function
One to One Functions
A function f: X Y is said to be 1-1, or injective, if f (x 1 ) = f (x2) then x1 = x2 for all x 1 , x 2 ∈X
[ ∀ x1 , x 2 ∈ X , if f (x1 ) = f (x2) then x1 = x2]
To prove that f is one to one, use a direct proof to show that if f (x1 ) = f (x2) then x1 = x2
Product of a Sequence
∞
∞
Let { s }
n n=0 be a sequence. Then ∏ sn = s 1 * s2 * s3 * . . . is the product of the terms in the series.
n=0
3.3 Relations
. Partial Order: A relation R that is asymmetric (order matters), transitive and reflexive.
Example: If A is the set Z of integers, and the relation R is defined by xRy = {(x,y) | x ≤ y}, this relation is a
partial order:
• Reflexive: yes, x ≤ x always.
• Antisymmetric (or not symmetric): yes, order matters. if (x,y) ∈ R, then (y,x)∉ R unless x = y.
• Transitive: yes, if x ≤ y and y ≤ z then x ≤ y ≤ z and thus x ≤ z as needed.
This relation is a partial order relation in the set of integers.
Rule of Sum
Rule of Product – also called Multiplication Rule, Fundamental Counting Rule
Inclusion-Exclusion Rule
Factorial Rule
r-Permutations P(n,r) or nPr
r-Combinations C(n,r) or nPr
Adjust Permutation Rule (some items are identical)
n!
If there are n1 alike, n2 alike, n3 alike, etc., then the number of permutations is: n1 !n2 !...n k !
Adjusted Combination Rule (some items identical)
In general, if X is a set containing n types of elements, the number of unordered r element selections from
X, repetitions allowed, is
C(n-1 + r, r) = C(n – 1 + r, n - 1)
Pigeonhole Principle: If k is a positive integer and n objects are placed into k boxes where n > k, then at least
one of the boxes will contain two or more objects