Professional Documents
Culture Documents
Is it n2?
1
Mathematical Induction:
Proof by induction:
1. Basis step P(1) is shown to be true
2. Inductive step P(n) → P(n+1) is shown to be true "nÎZ+
2
Mathematical Induction:
Proof by induction:
1. Basis step P(1) is shown to be true
2. Inductive step P(n) → P(n+1) is shown to be true "nÎZ+
3
e.g.
P(n) : The sum of first n positive odd integers is n2.
Prove P(n) is true "nÎZ+.
4
e.g.
P(n) : The sum of first n positive odd integers is n2.
Prove P(n) is true "nÎZ+.
Basis step:
P(1): 1 = 12 (True)
5
e.g.
P(n) : The sum of first n positive odd integers is n2.
Prove P(n) is true "nÎZ+.
Basis step:
P(1): 1 = 12 (True)
Inductive step:
6
e.g.
P(n) : The sum of first n positive odd integers is n2.
Prove P(n) is true "nÎZ+.
Basis step:
P(1): 1 = 12 (True)
Inductive step:
7
e.g.
P(n) : The sum of first n positive odd integers is n2.
Prove P(n) is true "nÎZ+.
Basis step:
P(1): 1 = 12 (True)
Inductive step:
8
e.g.
P(n) : The sum of first n positive odd integers is n2.
Prove P(n) is true "nÎZ+.
Basis step:
P(1): 1 = 12 (True)
Inductive step:
9
e.g.
Prove n < 2n "nÎZ+
Basis step:
Inductive step:
10
e.g.
Prove n < 2n "nÎZ+
Basis step:
Inductive step:
11
e.g. Inequality for Harmonic Numbers:
Harmonic number:
Hk = 1 + 1/2 + 1/3 + ∙∙∙ +1/k, k =1, 2, 3…
12
e.g. Inequality for Harmonic Numbers:
Harmonic number:
Hk = 1 + 1/2 + 1/3 + ∙∙∙ +1/k, k =1, 2, 3…
Basis step:
P(0) is true, since H20 = H1 = 1 ³ 1 + 0/2 = 1.
Inductive step:
Assume P(n) is true Þ H2n ³ 1 + n/2
13
e.g.
Prove that 2n < n! for n = 4, 5, 6, ….
14
e.g.
Prove that 2n < n! for n = 4, 5, 6, ….
Basis step:
Inductive step:
15
5.2 Strong Induction
1. Basis step:
Show that P(1) is true.
2. Inductive step:
Show that [P(1) Ù P(2) Ù … Ù P(n)] → P(n+1) is true "nÎZ+.
16
1. Basis step: Show that P(1) is true.
2. Inductive step: Show that [P(1) Ù P(2) Ù … Ù P(n)] → P(n+1) is true "nÎZ+.
e.g. Show that if n > 1 integer, then n is either prime or can be written as a product of
primes.
Let P(n) be “n is either prime or can be written as the product of primes”.
17
1. Basis step: Show that P(1) is true.
2. Inductive step: Show that [P(1) Ù P(2) Ù … Ù P(n)] → P(n+1) is true "nÎZ+.
e.g. Show that if n > 1 integer, then n is either prime or can be written as a product of
primes.
Let P(n) be “n is either prime or can be written as the product of primes”.
Basis step: P(2) is true since 2 is prime itself.
18
1. Basis step: Show that P(1) is true.
2. Inductive step: Show that [P(1) Ù P(2) Ù … Ù P(n)] → P(n+1) is true "nÎZ+.
e.g. Show that if n > 1 integer, then n is either prime or can be written as a product of
primes.
Let P(n) be “n is either prime or can be written as the product of primes”.
Basis step: P(2) is true since 2 is prime itself.
Inductive step: Assume P(k) is true for all 2 £ k £ n. Show P(n+1) is also true.
19
1. Basis step: Show that P(1) is true.
2. Inductive step: Show that [P(1) Ù P(2) Ù … Ù P(n)] → P(n+1) is true "nÎZ+.
e.g. Show that if n > 1 integer, then n is either prime or can be written as a product of
primes.
Let P(n) be “n is either prime or can be written as the product of primes”.
Basis step: P(2) is true since 2 is prime itself.
Inductive step: Assume P(k) is true for all 2 £ k £ n. Show P(n+1) is also true.
20
1. Basis step: Show that P(1) is true.
2. Inductive step: Show that [P(1) Ù P(2) Ù … Ù P(n)] → P(n+1) is true "nÎZ+.
e.g. Show that if n > 1 integer, then n is either prime or can be written as a product of
primes.
Let P(n) be “n is either prime or can be written as the product of primes”.
Basis step: P(2) is true since 2 is prime itself.
Inductive step: Assume P(k) is true for all 2 £ k £ n. Show P(n+1) is also true.
21
5.3 Recursive Definitions
22
5.3 Recursive Definitions
e.g.
an = 2n n = 0, 1, 2,…
23
5.3 Recursive Definitions
e.g.
an = 2n n = 0, 1, 2,…
e.g.
F(n) = n! can be defined recursively:
F(0) = 1
F(n+1) = F(n)(n+1)
24
e.g.
Fibonacci numbers:
f0 = 0, f1 = 1
fn+1 = fn + fn-1 n = 1, 2,…
25
e.g.
Fibonacci numbers: f n +1 1 + 5
f0 = 0, f1 = 1 lim = » Golden Ratio
n ®¥ fn 2
fn+1 = fn + fn-1 n = 1, 2,…
26
e.g. Show that fn > αn-2 "n ≥ 3, where α = (1+ 5 )/2.
Note that α is a solution of x2 – x – 1 = 0. Use strong induction.
27
e.g. Show that fn > αn-2 "n ≥ 3, where α = (1+ 5 )/2.
Note that α is a solution of x2 – x – 1 = 0. Use strong induction.
28
e.g.
Show that ƒn< (5/3)n "n ≥ 0. Exercise (use strong induction).
29