DM Module2
DM Module2
DM Module2
BITS Pilani
§1.7: Methods of proof of an implication
Learning objectives
1
Method 1: Trivial proof of an implication
2
Method 1: Trivial proof of an implication
2
Method 1: Trivial proof of an implication
x2 + 1 > x2 0.
Hence x 2 + 1 > 0.
(Note that we did not use the fact that x is given to be positive.)
2
Method 2: Vacuous proof of an implication
3
Method 2: Vacuous proof of an implication
3
Method 2: Vacuous proof of an implication
Solution. Since x 2 + 1 > 0 for all real numbers x (as shown in the
previous example), we find that the given implication is vacuously true.
3
Method 3: Direct proof of an implication
4
Method 3: Direct proof of an implication
4
Method 3: Direct proof of an implication
4
Method 3: Direct proof of an implication
4
Method 3: Direct proof of an implication
5
Method 4: Indirect proof of an implication (Proof by Contra-
positive)
5
Method 4: Indirect proof of an implication (Proof by Contra-
positive)
5
Method 4: Indirect proof of an implication (Proof by Contra-
positive)
5
Method 4: Indirect proof of an implication (Proof by Contra-
positive)
Example.
Prove:
Let n be an integer and let p denote a factor of n exceeding 1. If p is
the smallest such factor, then p must be prime.
6
Method 4: Indirect proof of an implication (Proof by Contra-
positive)
Example.
Prove:
Let n be an integer and let p denote a factor of n exceeding 1. If p is
the smallest such factor, then p must be prime.
6
Method 4: Indirect proof of an implication (Proof by Contra-
positive)
Example.
Prove:
Let n be an integer and let p denote a factor of n exceeding 1. If p is
the smallest such factor, then p must be prime.
6
Method 4: Indirect proof of an implication (Proof by Contra-
positive)
Example.
Prove:
Let n be an integer and let p denote a factor of n exceeding 1. If p is
the smallest such factor, then p must be prime.
6
Method 4: Indirect proof of an implication (Proof by Contra-
positive)
Example.
Prove:
Let n be an integer and let p denote a factor of n exceeding 1. If p is
the smallest such factor, then p must be prime.
6
Algorithm to find the smallest prime factor
Given a positive integer n, our goal is to find the smallest prime factor of
n.
1. If n is even, its smallest prime factor is 2.
7
Algorithm to find the smallest prime factor
Given a positive integer n, our goal is to find the smallest prime factor of
n.
1. If n is even, its smallest prime factor is 2.
2. If n is odd, let
p
s = b nc
p
(i.e., s is the greatest integer n) and let P = {a1 , . . . , ak }
denote the set of all primes s, with a1 < a2 < · · · < ak .
7
Algorithm to find the smallest prime factor
Given a positive integer n, our goal is to find the smallest prime factor of
n.
1. If n is even, its smallest prime factor is 2.
2. If n is odd, let
p
s = b nc
p
(i.e., s is the greatest integer n) and let P = {a1 , . . . , ak }
denote the set of all primes s, with a1 < a2 < · · · < ak .
3. Let i = 1. If ai divides n, return ai . Otherwise, increase i by 1 and
repeat Step 3. Return n if i exceeds k.
7
Algorithm to find the smallest prime factor
Given a positive integer n, our goal is to find the smallest prime factor of
n.
1. If n is even, its smallest prime factor is 2.
2. If n is odd, let
p
s = b nc
p
(i.e., s is the greatest integer n) and let P = {a1 , . . . , ak }
denote the set of all primes s, with a1 < a2 < · · · < ak .
3. Let i = 1. If ai divides n, return ai . Otherwise, increase i by 1 and
repeat Step 3. Return n if i exceeds k.
Exercise. (Ex. 31(a))
Prove that 421 is prime.
7
Algorithm to find the smallest prime factor
Given a positive integer n, our goal is to find the smallest prime factor of
n.
1. If n is even, its smallest prime factor is 2.
2. If n is odd, let
p
s = b nc
p
(i.e., s is the greatest integer n) and let P = {a1 , . . . , ak }
denote the set of all primes s, with a1 < a2 < · · · < ak .
3. Let i = 1. If ai divides n, return ai . Otherwise, increase i by 1 and
repeat Step 3. Return n if i exceeds k.
Exercise. (Ex. 31(a))
Prove that 421 is prime.
p
Hint. Use the above algorithm. Now 421 is odd and b 421c = 20. Next,
the primes 20 are 2, 3, 5, 7, 11, 13, 17, 19. Check whether any one of
these primes divides 421.
7
Method 5: Proof of an implication by contradiction
8
Pigeonhole Principle
Let m1 , . . . , mn be positive integers. If m1 + m2 + . . . + mn n + 1
objects are put into n boxes, then either the first box contains at least
m1 objects, or the second box contains at least m2 objects,..., or the
nth box contains at least mn objects.
9
Pigeonhole Principle
Let m1 , . . . , mn be positive integers. If m1 + m2 + . . . + mn n + 1
objects are put into n boxes, then either the first box contains at least
m1 objects, or the second box contains at least m2 objects,..., or the
nth box contains at least mn objects.
Proof. For i = 1, . . . , n,
let qi represent the statement ‘the ith box contains at least mi objects’
and
let p represent the statement ‘m1 + m2 + . . . + mn n + 1 objects are
put into n boxes’.
9
Pigeonhole Principle
Let m1 , . . . , mn be positive integers. If m1 + m2 + . . . + mn n + 1
objects are put into n boxes, then either the first box contains at least
m1 objects, or the second box contains at least m2 objects,..., or the
nth box contains at least mn objects.
Proof. For i = 1, . . . , n,
let qi represent the statement ‘the ith box contains at least mi objects’
and
let p represent the statement ‘m1 + m2 + . . . + mn n + 1 objects are
put into n boxes’.
To prove p ! (q1 _ q2 _ · · · _ qn ) by contradiction, we assume
p^ ⇠ (q1 _ q2 _ · · · _ qn ) or, p ^ (⇠ q1 ) ^ (⇠ q2 ) ^ · · · ^ (⇠ qn ) (by
DeMorgan’s law).
9
Pigeonhole Principle
Let m1 , . . . , mn be positive integers. If m1 + m2 + . . . + mn n + 1
objects are put into n boxes, then either the first box contains at least
m1 objects, or the second box contains at least m2 objects,..., or the
nth box contains at least mn objects.
Proof. For i = 1, . . . , n,
let qi represent the statement ‘the ith box contains at least mi objects’
and
let p represent the statement ‘m1 + m2 + . . . + mn n + 1 objects are
put into n boxes’.
To prove p ! (q1 _ q2 _ · · · _ qn ) by contradiction, we assume
p^ ⇠ (q1 _ q2 _ · · · _ qn ) or, p ^ (⇠ q1 ) ^ (⇠ q2 ) ^ · · · ^ (⇠ qn ) (by
DeMorgan’s law). Thus, for i = 1, . . . , n, the ith box contains at most
mi 1 objects. Hence the total number of objects in the n boxes is at
most (m1 1) + (m2 1) + · · · + (mn 1) = m1 + . . . + mn n.
9
Pigeonhole Principle
Let m1 , . . . , mn be positive integers. If m1 + m2 + . . . + mn n + 1
objects are put into n boxes, then either the first box contains at least
m1 objects, or the second box contains at least m2 objects,..., or the
nth box contains at least mn objects.
Proof. For i = 1, . . . , n,
let qi represent the statement ‘the ith box contains at least mi objects’
and
let p represent the statement ‘m1 + m2 + . . . + mn n + 1 objects are
put into n boxes’.
To prove p ! (q1 _ q2 _ · · · _ qn ) by contradiction, we assume
p^ ⇠ (q1 _ q2 _ · · · _ qn ) or, p ^ (⇠ q1 ) ^ (⇠ q2 ) ^ · · · ^ (⇠ qn ) (by
DeMorgan’s law). Thus, for i = 1, . . . , n, the ith box contains at most
mi 1 objects. Hence the total number of objects in the n boxes is at
most (m1 1) + (m2 1) + · · · + (mn 1) = m1 + . . . + mn n. This is
a contradiction, as the total number of objects in the n boxes is
m1 + m2 + . . . + mn n + 1. Hence our assumption is wrong. This
proves the Pigeonhole Principle.
9
Pigeonhole Principle (Second form)
If A denotes the average number of pigeons per hole, then some
pigeonhole contains at least dAe pigeons and some pigeonhole contains
at most bAc pigeons.
10
Pigeonhole Principle (Second form)
If A denotes the average number of pigeons per hole, then some
pigeonhole contains at least dAe pigeons and some pigeonhole contains
at most bAc pigeons.
10
Pigeonhole Principle (Second form)
If A denotes the average number of pigeons per hole, then some
pigeonhole contains at least dAe pigeons and some pigeonhole contains
at most bAc pigeons.
10
Pigeonhole Principle (Second form)
If A denotes the average number of pigeons per hole, then some
pigeonhole contains at least dAe pigeons and some pigeonhole contains
at most bAc pigeons.
10
Pigeonhole Principle (Second form)
If A denotes the average number of pigeons per hole, then some
pigeonhole contains at least dAe pigeons and some pigeonhole contains
at most bAc pigeons.
N = {1, 2, 3, . . .}
Z = {. . . , 3, 2, 1, 0, 1, 2, 3, . . .}
11
Applications of Pigeonhole Principle
12
Applications of Pigeonhole Principle
12
Applications of Pigeonhole Principle
12
Applications of Pigeonhole Principle
Question
1. Let b 2 N. Prove that among any b + 1 numbers, it is possible to
find two numbers whose difference is divisible by b.
2. Prove that given any b 2 N, it is possible to find a non-zero number
which is divisible by b and whose digits are 0 and 5 only.
13
Applications of Pigeonhole Principle
Question
1. Let b 2 N. Prove that among any b + 1 numbers, it is possible to
find two numbers whose difference is divisible by b.
2. Prove that given any b 2 N, it is possible to find a non-zero number
which is divisible by b and whose digits are 0 and 5 only.
13
Applications of Pigeonhole Principle
Question
1. Let b 2 N. Prove that among any b + 1 numbers, it is possible to
find two numbers whose difference is divisible by b.
2. Prove that given any b 2 N, it is possible to find a non-zero number
which is divisible by b and whose digits are 0 and 5 only.
13
Applications of Pigeonhole Principle
Question
1. Let b 2 N. Prove that among any b + 1 numbers, it is possible to
find two numbers whose difference is divisible by b.
2. Prove that given any b 2 N, it is possible to find a non-zero number
which is divisible by b and whose digits are 0 and 5 only.
14
Method 6: Proof of an implication by cases
Example.
Prove:
If n is an integer, then n2 + 3n + 1 is an odd integer.
14
Method 6: Proof of an implication by cases
Example.
Prove:
If n is an integer, then n2 + 3n + 1 is an odd integer.
14
Method 6: Proof of an implication by cases
Example.
Prove:
If n is an integer, then n2 + 3n + 1 is an odd integer.
Example.
Prove:
If n is an integer, then n2 + 3n + 1 is an odd integer.
We use [{(p1 _ p2 _ · · · _ pn ) _ q} ^ (⇠ p1 ) ^ (⇠ p2 ) ^ · · · ^ (⇠ pn )] ! q.
15
Method 7: Proof of an implication by elimination of cases
We use [{(p1 _ p2 _ · · · _ pn ) _ q} ^ (⇠ p1 ) ^ (⇠ p2 ) ^ · · · ^ (⇠ pn )] ! q.
Example.
Prove:
If p is an odd prime, then either p = 3 or p has the form 6n + 1 or
6n + 5.
15
Method 7: Proof of an implication by elimination of cases
We use [{(p1 _ p2 _ · · · _ pn ) _ q} ^ (⇠ p1 ) ^ (⇠ p2 ) ^ · · · ^ (⇠ pn )] ! q.
Example.
Prove:
If p is an odd prime, then either p = 3 or p has the form 6n + 1 or
6n + 5.
15
Method 7: Proof of an implication by elimination of cases
We use [{(p1 _ p2 _ · · · _ pn ) _ q} ^ (⇠ p1 ) ^ (⇠ p2 ) ^ · · · ^ (⇠ pn )] ! q.
Example.
Prove:
If p is an odd prime, then either p = 3 or p has the form 6n + 1 or
6n + 5.
15
Method 7: Proof of an implication by elimination of cases
We use [{(p1 _ p2 _ · · · _ pn ) _ q} ^ (⇠ p1 ) ^ (⇠ p2 ) ^ · · · ^ (⇠ pn )] ! q.
Example.
Prove:
If p is an odd prime, then either p = 3 or p has the form 6n + 1 or
6n + 5.
15
Method 7: Proof of an implication by elimination of cases
We use [{(p1 _ p2 _ · · · _ pn ) _ q} ^ (⇠ p1 ) ^ (⇠ p2 ) ^ · · · ^ (⇠ pn )] ! q.
Example.
Prove:
If p is an odd prime, then either p = 3 or p has the form 6n + 1 or
6n + 5.
15
Method 7: Proof of an implication by elimination of cases
We use [{(p1 _ p2 _ · · · _ pn ) _ q} ^ (⇠ p1 ) ^ (⇠ p2 ) ^ · · · ^ (⇠ pn )] ! q.
Example.
Prove:
If p is an odd prime, then either p = 3 or p has the form 6n + 1 or
6n + 5.
15
Method 7: Proof of an implication by elimination of cases
1. One form:
[{(p1 _ p2 _ · · · _ pn ) _ q} ^ (⇠ p1 ) ^ (⇠ p2 ) ^ · · · ^ (⇠ pn )] ! q
2. Another form: {[p ! (q _ r )] ^ (⇠ q)} ! (p ! r )
16
Method 8: Conditional proof of an implication
17
Method 8: Conditional proof of an implication
17
Method 8: Conditional proof of an implication
Solution. Suppose that p is a prime and p divides ab. (We are using
Conditional Proof.) Now we proceed by elimination of cases.
17
Method 8: Conditional proof of an implication
Solution. Suppose that p is a prime and p divides ab. (We are using
Conditional Proof.) Now we proceed by elimination of cases. Suppose p
does not divide a. We will show that p has to divide b.
17
Method 8: Conditional proof of an implication
Solution. Suppose that p is a prime and p divides ab. (We are using
Conditional Proof.) Now we proceed by elimination of cases. Suppose p
does not divide a. We will show that p has to divide b. Since p is prime
not dividing a, we have gcd(p, a) = 1. Hence, by Bézout’s identity, there
exist integers x, y such that 1 = px + ay .
17
Method 8: Conditional proof of an implication
Solution. Suppose that p is a prime and p divides ab. (We are using
Conditional Proof.) Now we proceed by elimination of cases. Suppose p
does not divide a. We will show that p has to divide b. Since p is prime
not dividing a, we have gcd(p, a) = 1. Hence, by Bézout’s identity, there
exist integers x, y such that 1 = px + ay . This implies that
b = bpx + bay .
Since p divides bpx = p(bx) and p divides bay (as p divides ab), we get
that p divides bpx + bay i.e., p divides b. This completes the proof.
17
Proof of an equivalence
18
Proof of an equivalence
18
Proof of an equivalence
18
Proof of an equivalence
18
Proof of an equivalence
18
Proof of an equivalence
19
Question.
p
Prove that 2 is irrational.
19
Question.
p
Prove that 2 is irrational.
19
Question.
p
Prove that 2 is irrational.
2b 2 = (2k)2 = 4k 2 .
19
Question.
p
Prove that 2 is irrational.
2b 2 = (2k)2 = 4k 2 .
19
§1.8: First order logic & other method of proof
Learning objectives
20
Some limits of Propositional Logic
1. There is no way of saying that all objects of some type share certain
properties. Each fact requires a separate symbol.
21
Some limits of Propositional Logic
1. There is no way of saying that all objects of some type share certain
properties. Each fact requires a separate symbol.
2. Consider the following argument.
All humans are mortal.
Socrates is a human.
Therefore, Socrates is mortal.
Symbolizing this in propositional logic, we get an argument of the
form
p
q
—–
)r
21
Some limits of Propositional Logic
1. There is no way of saying that all objects of some type share certain
properties. Each fact requires a separate symbol.
2. Consider the following argument.
All humans are mortal.
Socrates is a human.
Therefore, Socrates is mortal.
Symbolizing this in propositional logic, we get an argument of the
form
p
q
—–
)r
This is an invalid argument in propositional logic as p, q, r have no
relation to each other.
21
First order logic
22
First order logic
22
First order logic
22
First order logic
22
First order logic
Definition
The universal quantifier 8 states that a statement is true for all values
of a variable within some universe of permitted values.
23
Quantifiers
Definition
The universal quantifier 8 states that a statement is true for all values
of a variable within some universe of permitted values.
23
Quantifiers
Definition
The universal quantifier 8 states that a statement is true for all values
of a variable within some universe of permitted values.
23
Quantifiers
24
Quantifiers
8x, O(x)
24
Quantifiers
Definition
The existential quantifier 9 states that a statement must be true for at
least one value of the variable.
25
Quantifiers
Definition
The existential quantifier 9 states that a statement must be true for at
least one value of the variable.
25
Quantifiers
26
Quantifiers
26
Quantifiers
26
Quantifiers
27
Quantifiers
28
Quantifiers
Solution.
28
Quantifiers
Solution.
28
Quantifiers
Solution.
28
Combining Quantifiers
29
Combining Quantifiers
2. Let U = R. The statement ‘for every real number there is some real
number greater than the number itself’ can be written as
29
Combining Quantifiers
1. Note that (8x) (8y ) P(x, y ) and (8y ) (8x) P(x, y ) are logically
equivalent. Similarly, (9x) (9y ) P(x, y ) and (9y ) (9x) P(x, y ) are
logically equivalent.
30
Combining Quantifiers
1. Note that (8x) (8y ) P(x, y ) and (8y ) (8x) P(x, y ) are logically
equivalent. Similarly, (9x) (9y ) P(x, y ) and (9y ) (9x) P(x, y ) are
logically equivalent.
2. The quantifiers 8 and 9 should not be interchanged. For example, if
Rxy means x respects y , then
means that for every person, there exists a person who respects
them, and
(8y ) (9x) [Ryx]
means that for every person, there exists a person who they respect.
30
Quantifiers
Question
Express the following using first order logic.
31
Quantifiers
Question
Express the following using first order logic.
Solution.
31
Quantifiers
Question
Express the following using first order logic.
Solution.
31
Proof techniques
32
Proof techniques
33
Proof techniques
33
Proof techniques
Question
Prove that there exist irrational numbers x, y such that x y is a rational
number.
34
Proof techniques
Question
Prove that there exist irrational numbers x, y such that x y is a rational
number.
34
Proof techniques
Question
Prove that there exist irrational numbers x, y such that x y is a rational
number.
34
Proof techniques
Question
Prove that there exist irrational numbers x, y such that x y is a rational
number.
34
Lagrange’s interpolation formula
(x x2 )(x x3 ) · · · (x xn ) (x x1 )(x x3 ) · · · (x xn )
= y1 + y2
(x1 x2 )(x1 x3 ) · · · (x1 xn ) (x2 x1 )(x2 x3 ) · · · (x2 xn )
(x x1 )(x x2 ) · · · (x xn 1 )
+ ... + yn .
(xn x1 )(xn x2 ) · · · (xn xn 1 )
35
Lagrange’s interpolation formula
36
Lagrange’s interpolation formula
36
Proof techniques
37
Proof techniques
Question
Prove that there are no rational roots to the polynomial
f (x) = x 6 6x 4 + 12x 2 13.
38
Proof techniques
Question
Prove that there are no rational roots to the polynomial
f (x) = x 6 6x 4 + 12x 2 13.
38
Proof techniques
Question
Prove that there are no rational roots to the polynomial
f (x) = x 6 6x 4 + 12x 2 13.
38
Proof techniques
Question
Prove that there are no rational roots to the polynomial
f (x) = x 6 6x 4 + 12x 2 13.
38
Proof techniques
Question
Prove that there are no rational roots to the polynomial
f (x) = x 6 6x 4 + 12x 2 13.
as the term within the bracket is 1 less than a multiple of 13 and hence is
non-zero.
38
Exercise
1. You may use the Rational Roots Theorem to give another proof of
p
the fact that 2 is irrational.
p p
2. Prove that 2 + 3 5 is irrational. (The previous question will come
in handy!)
39
Proof techniques
40
Proof techniques
Question
Disprove that n2 n + 41 is a prime number for all positive integers n.
41
Proof techniques
Question
Disprove that n2 n + 41 is a prime number for all positive integers n.
n2 n + 41 = n(n 1) + 41 = 42 · 41 + 41 = 41 · 43,
41
§1.9: Rules of inference for quantified propositions
Learning objectives
42
Fundamental Rule 5: Universal Specification
8x, P(x)
——————–
) P(c) for all c
43
Fundamental Rule 5: Universal Specification
8x, P(x)
——————–
) P(c) for all c
43
Fundamental Rule 7: Existential Specification
9x, P(x)
——————–
) P(c) for some c
Note. The statements ‘9x, P(x)’ and ‘9x, Q(x)’ need not imply that
‘9x, [P(x) ^ Q(x)]’.
44
Fundamental Rule 7: Existential Specification
9x, P(x)
——————–
) P(c) for some c
Note. The statements ‘9x, P(x)’ and ‘9x, Q(x)’ need not imply that
‘9x, [P(x) ^ Q(x)]’.
Fundamental Rule 8: Existential Generalization
44
Example
Symolize the following argument and check for its validity:
45
Example
Symolize the following argument and check for its validity:
45
Formal Proof
Assertion Reasoning
9x, L(x) Premise 2
L(a) Step 1 and Existential Specification
8x, [L(x) ! D(x)] Premise 1
L(a) ! D(a) Step 3 and Universal Specification
D(a) Steps 2 & 4, Fundamental Rule 1
9x, D(x) Step 5 and Existential Generalization
46
Venn Diagrams
47
We will represent every category by a circle. We will draw one circle
inside another to represent inclusion. We will draw disjoint circles to
represent null intersection. We will draw intersecting circles to represent
non-null intersection.
48
Example
49
Example
50
Example
M L
51
Example
M L
52
Checking validity using venn diagram: Example 1
53
54
The given argument is valid.
54
Example 2
55
56
The given argument is invalid.
56
Example 3
57
58
The given argument is invalid.
58
§1.10: Mathematical Induction
Learning objectives
59
The Principle of Mathematical Induction (PMI)/ Weak Induc-
tion
60
Example
Prove that for every positive integer n, 3 divides n3 n.
61
Example
Prove that for every positive integer n, 3 divides n3 n.
61
Example
Prove that for every positive integer n, 3 divides n3 n.
61
Example
Prove that for every positive integer n, 3 divides n3 n.
61
Example
Prove that for every positive integer n, 3 divides n3 n.
61
Example
Prove that for every positive integer n, 3 divides n3 n.
61
Example
Prove that for every positive integer n, 3 divides n3 n.
62
Example
Prove that for every positive integer n, there are more than n primes.
62
Example
Prove that for every positive integer n, there are more than n primes.
62
Example
Prove that for every positive integer n, there are more than n primes.
62
Example
Prove that for every positive integer n, there are more than n primes.
62
Example
Prove that for every positive integer n, there are more than n primes.
62
Example
Prove that for every positive integer n, there are more than n primes.
63
A different starting point
Question
Prove that for every n 5, we have 2n > n2 .
63
Let P(n) be the statement ‘2n > n20 .
64
Let P(n) be the statement ‘2n > n20 .
Base case: We verify that P(5) is true. In this case, 2n = 25 = 32, and
n2 = 25 and 25 > 52 . Hence P(5) is true.
64
Let P(n) be the statement ‘2n > n20 .
Base case: We verify that P(5) is true. In this case, 2n = 25 = 32, and
n2 = 25 and 25 > 52 . Hence P(5) is true.
Inductive hypothesis: Let k 5. We assume that the statement P(k)
is true, i.e., 2k > k 2 .
64
Let P(n) be the statement ‘2n > n20 .
Base case: We verify that P(5) is true. In this case, 2n = 25 = 32, and
n2 = 25 and 25 > 52 . Hence P(5) is true.
Inductive hypothesis: Let k 5. We assume that the statement P(k)
is true, i.e., 2k > k 2 .
Inductive conclusion: We’ll show that the statement P(k + 1) is true,
i.e., 2k+1 > (k + 1)2 .
64
Let P(n) be the statement ‘2n > n20 .
Base case: We verify that P(5) is true. In this case, 2n = 25 = 32, and
n2 = 25 and 25 > 52 . Hence P(5) is true.
Inductive hypothesis: Let k 5. We assume that the statement P(k)
is true, i.e., 2k > k 2 .
Inductive conclusion: We’ll show that the statement P(k + 1) is true,
i.e., 2k+1 > (k + 1)2 .
Now
64
Let P(n) be the statement ‘2n > n20 .
Base case: We verify that P(5) is true. In this case, 2n = 25 = 32, and
n2 = 25 and 25 > 52 . Hence P(5) is true.
Inductive hypothesis: Let k 5. We assume that the statement P(k)
is true, i.e., 2k > k 2 .
Inductive conclusion: We’ll show that the statement P(k + 1) is true,
i.e., 2k+1 > (k + 1)2 .
Now
64
Notation
Pn
The notation i=m Xi is called sum-
mation notation and it represents the
sum Xm + . . . + Xn .
• ⌃: upper case Greek letter
sigma
• i: index of summation (dummy
variable)
• m, n: lower and upper bounds of
summation, respectively
65
Notation
Pn
The notation i=m Xi is called sum-
mation notation and it represents the
sum Xm + . . . + Xn .
• ⌃: upper case Greek letter
sigma
• i: index of summation (dummy
variable)
• m, n: lower and upper bounds of
summation, respectively
Eg.
P7 2
• i=3 i = 32 + 42 + 52 + 62 + 72
Pn 1 1 1
• i=1 i 2 =1+ 4 + ... + n2
65
Notation
Pn
The notation i=m Xi is called sum-
mation notation and it represents the
sum Xm + . . . + Xn .
• ⌃: upper case Greek letter
sigma
• i: index of summation (dummy
variable)
• m, n: lower and upper bounds of
summation, respectively
Eg.
P7 2
• i=3 i = 32 + 42 + 52 + 62 + 72
Pn 1 1 1
• i=1 i 2 =1+ 4 + ... + n2
• sum of first n odd positive
integers:
65
Notation
Pn
The notation i=m Xi is called sum-
mation notation and it represents the
sum Xm + . . . + Xn .
• ⌃: upper case Greek letter
sigma
• i: index of summation (dummy
variable)
• m, n: lower and upper bounds of
summation, respectively
Eg.
P7 2
• i=3 i = 32 + 42 + 52 + 62 + 72
Pn 1 1 1
• i=1 i 2 =1+ 4 + ... + n2
• sum of first n odd positive
Pn
integers: i=1 (2i 1)
65
Notation
Pn
The notation i=m Xi is called sum-
mation notation and it represents the
sum Xm + . . . + Xn . Properties
• ⌃: upper case Greek letter • Multiplication by a constant:
Pn Pn
sigma i=m cXi =c i=m Xi , where
65
Notation
Qn
The notation i=m Xi is called product notation and it represents the
product Xm Xm+1 · · · Xn .
Q
: upper case Greek letter pi
66
Notation
Qn
The notation i=m Xi is called product notation and it represents the
product Xm Xm+1 · · · Xn .
Q
: upper case Greek letter pi
Eg.
n ✓
Y ◆ ✓ ◆✓ ◆ ✓ ◆
1 1 1 1
1 = 1 1 ··· 1 .
i2 4 9 n2
i=2
66
Notation
Qn
The notation i=m Xi is called product notation and it represents the
product Xm Xm+1 · · · Xn .
Q
: upper case Greek letter pi
Eg.
n ✓
Y ◆ ✓ ◆✓ ◆ ✓ ◆
1 1 1 1
1 = 1 1 ··· 1 .
i2 4 9 n2
i=2
Question
Guess a closed form for this product and prove it by induction.
66
Qn 1 n+1
Let P(n) be the statement ‘ i=2 1 i2 = 2n .’
67
Qn
Let P(n) be the statement ‘ i=2 1 i12 = n+1
2n .’
Base case: We verify that P(2) is true.
LHS= 1 14 = 34 = RHS
67
Qn
Let P(n) be the statement ‘ i=2 1 i12 = n+1
2n .’
Base case: We verify that P(2) is true.
LHS= 1 14 = 34 = RHS
Inductive hypothesis: Let k 2. We assume that the statement P(k)
Qk
is true, i.e., i=2 1 i12 = k+1
2k .
67
Qn
Let P(n) be the statement ‘ i=2 1 i12 = n+1 2n .’
Base case: We verify that P(2) is true.
LHS= 1 14 = 34 = RHS
Inductive hypothesis: Let k 2. We assume that the statement P(k)
Qk
is true, i.e., i=2 1 i12 = k+1
2k .
Inductive conclusion: We’ll show that the statement P(k + 1) is true,
Qk+1
i.e., i=2 1 i12 = 2(k+1)
k+2
.
67
Qn
Let P(n) be the statement ‘ i=2 1 i12 = n+1 2n .’
Base case: We verify that P(2) is true.
LHS= 1 14 = 34 = RHS
Inductive hypothesis: Let k 2. We assume that the statement P(k)
Qk
is true, i.e., i=2 1 i12 = k+1 2k .
Inductive conclusion: We’ll show that the statement P(k + 1) is true,
Qk+1
i.e., i=2 1 i12 = 2(k+1) k+2
.
Now
Y✓
k+1 ◆ Yk ✓ ◆! ✓ ◆
1 1 1
1 = 1 · 1
i2 i2 (k + 1)2
i=2 i=2
✓ ◆
k +1 1 (k + 1)2 1 k +2
= 1 2
= = .
2k (k + 1) 2k(k + 1) 2(k + 1)
67
Qn
Let P(n) be the statement ‘ i=2 1 i12 = n+1 2n .’
Base case: We verify that P(2) is true.
LHS= 1 14 = 34 = RHS
Inductive hypothesis: Let k 2. We assume that the statement P(k)
Qk
is true, i.e., i=2 1 i12 = k+1 2k .
Inductive conclusion: We’ll show that the statement P(k + 1) is true,
Qk+1
i.e., i=2 1 i12 = 2(k+1) k+2
.
Now
Y✓
k+1 ◆ Yk ✓ ◆! ✓ ◆
1 1 1
1 = 1 · 1
i2 i2 (k + 1)2
i=2 i=2
✓ ◆
k +1 1 (k + 1)2 1 k +2
= 1 2
= = .
2k (k + 1) 2k(k + 1) 2(k + 1)
67
——————–
68
Recursive definition of a function
68
Recursive definition of a function
68
Recursive definition of a function
68
Recursive definition of a function
68
Recursive definition of a function
69
Recursive definition of a function
69
Recursive definition of a function
g (0) = 1
g (n + 1) = 3g (n)2 + 7, for n 0.
70
Recursive definition of a function
g (0) = 1
g (n + 1) = 3g (n)2 + 7, for n 0.
70
When Weak Induction fails
Question
Define a sequence (xn ) by
x1 = 4,
x2 = 68,
xn = 2xn 1 + 15xn 2 if n 3.
Show that
1
xn = 2 · ( 3)n + 10 · 5n for n 1.
71
When Weak Induction fails
Question
Define a sequence (xn ) by
x1 = 4,
x2 = 68,
xn = 2xn 1 + 15xn 2 if n 3.
Show that
1
xn = 2 · ( 3)n + 10 · 5n for n 1.
71
The Principle of Strong Induction (PSI)
72
The Principle of Strong Induction (PSI)
72
Question
Define a sequence (xn ) by
x1 = 4,
x2 = 68,
xn+1 = 2xn + 15xn 1 if n 2.
Show that
1
xn = 2 · ( 3)n + 10 · 5n for n 1.
73
1
Let P(n) be the statement ‘xn = 2 · ( 3)n + 10 · 5n .’
74
1
Let P(n) be the statement ‘xn = 2 · ( 3)n + 10 · 5n .’
Base case: We verify that P(1) is true.
RHS=2·( 3)1 + 10 · 50 = 6 + 10 = 4 = LHS
We verify that P(2) is true.
RHS=2·( 3)2 + 10 · 51 = 18 + 50 = 68 = LHS
74
(Contd.)
75
(Contd.)
75
(Contd.)
75
(Contd.)
76