Discrete Mathematics & Mathematical Reasoning Induction€¦ · Discrete Mathematics & Mathematical...

31
Discrete Mathematics & Mathematical Reasoning Induction Colin Stirling Informatics Colin Stirling (Informatics) Discrete Mathematics (Sections 5.1 & 5.2) Today 1 / 11

Transcript of Discrete Mathematics & Mathematical Reasoning Induction€¦ · Discrete Mathematics & Mathematical...

Page 1: Discrete Mathematics & Mathematical Reasoning Induction€¦ · Discrete Mathematics & Mathematical Reasoning Induction Colin Stirling Informatics Colin Stirling (Informatics) Discrete

Discrete Mathematics & Mathematical ReasoningInduction

Colin Stirling

Informatics

Colin Stirling (Informatics) Discrete Mathematics (Sections 5.1 & 5.2) Today 1 / 11

Page 2: Discrete Mathematics & Mathematical Reasoning Induction€¦ · Discrete Mathematics & Mathematical Reasoning Induction Colin Stirling Informatics Colin Stirling (Informatics) Discrete

Another proof method: Mathematical Induction

Want to prove ∀n ∈ N (P(n))

BASIS STEP show P(0)

INDUCTIVE STEP show P(k)→ P(k + 1) for all k ∈ N

Assume k is arbitrary and P(k) is true. Show P(k + 1)

Colin Stirling (Informatics) Discrete Mathematics (Sections 5.1 & 5.2) Today 2 / 11

Page 3: Discrete Mathematics & Mathematical Reasoning Induction€¦ · Discrete Mathematics & Mathematical Reasoning Induction Colin Stirling Informatics Colin Stirling (Informatics) Discrete

Another proof method: Mathematical Induction

Want to prove ∀n ∈ N (P(n))

BASIS STEP show P(0)

INDUCTIVE STEP show P(k)→ P(k + 1) for all k ∈ N

Assume k is arbitrary and P(k) is true. Show P(k + 1)

Colin Stirling (Informatics) Discrete Mathematics (Sections 5.1 & 5.2) Today 2 / 11

Page 4: Discrete Mathematics & Mathematical Reasoning Induction€¦ · Discrete Mathematics & Mathematical Reasoning Induction Colin Stirling Informatics Colin Stirling (Informatics) Discrete

Another proof method: Mathematical Induction

Want to prove ∀n ∈ N (P(n))

BASIS STEP show P(0)

INDUCTIVE STEP show P(k)→ P(k + 1) for all k ∈ N

Assume k is arbitrary and P(k) is true. Show P(k + 1)

Colin Stirling (Informatics) Discrete Mathematics (Sections 5.1 & 5.2) Today 2 / 11

Page 5: Discrete Mathematics & Mathematical Reasoning Induction€¦ · Discrete Mathematics & Mathematical Reasoning Induction Colin Stirling Informatics Colin Stirling (Informatics) Discrete

Another proof method: Mathematical Induction

Want to prove ∀n ∈ N (P(n))

BASIS STEP show P(0)

INDUCTIVE STEP show P(k)→ P(k + 1) for all k ∈ N

Assume k is arbitrary and P(k) is true. Show P(k + 1)

Colin Stirling (Informatics) Discrete Mathematics (Sections 5.1 & 5.2) Today 2 / 11

Page 6: Discrete Mathematics & Mathematical Reasoning Induction€¦ · Discrete Mathematics & Mathematical Reasoning Induction Colin Stirling Informatics Colin Stirling (Informatics) Discrete

Another proof method: Mathematical Induction

Want to prove ∀n ∈ Z+ (P(n))

BASIS STEP show P(1)

INDUCTIVE STEP show P(k)→ P(k + 1) for all k ∈ Z+

Assume k is arbitrary and P(k) is true. Show P(k + 1)

Colin Stirling (Informatics) Discrete Mathematics (Sections 5.1 & 5.2) Today 3 / 11

Page 7: Discrete Mathematics & Mathematical Reasoning Induction€¦ · Discrete Mathematics & Mathematical Reasoning Induction Colin Stirling Informatics Colin Stirling (Informatics) Discrete

Another proof method: Mathematical Induction

Want to prove ∀n ≥ m ∈ N (P(n))

BASIS STEP show P(m)

INDUCTIVE STEP show P(k)→ P(k + 1) for all k ≥ m ∈ N

Assume k ≥ m is arbitrary and P(k) is true. Show P(k + 1)

Colin Stirling (Informatics) Discrete Mathematics (Sections 5.1 & 5.2) Today 4 / 11

Page 8: Discrete Mathematics & Mathematical Reasoning Induction€¦ · Discrete Mathematics & Mathematical Reasoning Induction Colin Stirling Informatics Colin Stirling (Informatics) Discrete

Another proof method: Mathematical Induction

Want to prove ∀n ∈ Q+ (P(n))

Can we use induction?

Want to prove ∀x ∈ R+ (P(x))

Can we use induction?

What justifies mathematical induction?

Well ordering principle: every nonempty set S ⊆ N has a leastelement

Colin Stirling (Informatics) Discrete Mathematics (Sections 5.1 & 5.2) Today 5 / 11

Page 9: Discrete Mathematics & Mathematical Reasoning Induction€¦ · Discrete Mathematics & Mathematical Reasoning Induction Colin Stirling Informatics Colin Stirling (Informatics) Discrete

Another proof method: Mathematical Induction

Want to prove ∀n ∈ Q+ (P(n))

Can we use induction?

Want to prove ∀x ∈ R+ (P(x))

Can we use induction?

What justifies mathematical induction?

Well ordering principle: every nonempty set S ⊆ N has a leastelement

Colin Stirling (Informatics) Discrete Mathematics (Sections 5.1 & 5.2) Today 5 / 11

Page 10: Discrete Mathematics & Mathematical Reasoning Induction€¦ · Discrete Mathematics & Mathematical Reasoning Induction Colin Stirling Informatics Colin Stirling (Informatics) Discrete

Another proof method: Mathematical Induction

Want to prove ∀n ∈ Q+ (P(n))

Can we use induction?

Want to prove ∀x ∈ R+ (P(x))

Can we use induction?

What justifies mathematical induction?

Well ordering principle: every nonempty set S ⊆ N has a leastelement

Colin Stirling (Informatics) Discrete Mathematics (Sections 5.1 & 5.2) Today 5 / 11

Page 11: Discrete Mathematics & Mathematical Reasoning Induction€¦ · Discrete Mathematics & Mathematical Reasoning Induction Colin Stirling Informatics Colin Stirling (Informatics) Discrete

Another proof method: Mathematical Induction

Want to prove ∀n ∈ Q+ (P(n))

Can we use induction?

Want to prove ∀x ∈ R+ (P(x))

Can we use induction?

What justifies mathematical induction?

Well ordering principle: every nonempty set S ⊆ N has a leastelement

Colin Stirling (Informatics) Discrete Mathematics (Sections 5.1 & 5.2) Today 5 / 11

Page 12: Discrete Mathematics & Mathematical Reasoning Induction€¦ · Discrete Mathematics & Mathematical Reasoning Induction Colin Stirling Informatics Colin Stirling (Informatics) Discrete

Another proof method: Mathematical Induction

Want to prove ∀n ∈ Q+ (P(n))

Can we use induction?

Want to prove ∀x ∈ R+ (P(x))

Can we use induction?

What justifies mathematical induction?

Well ordering principle: every nonempty set S ⊆ N has a leastelement

Colin Stirling (Informatics) Discrete Mathematics (Sections 5.1 & 5.2) Today 5 / 11

Page 13: Discrete Mathematics & Mathematical Reasoning Induction€¦ · Discrete Mathematics & Mathematical Reasoning Induction Colin Stirling Informatics Colin Stirling (Informatics) Discrete

Another proof method: Mathematical Induction

Want to prove ∀n ∈ Q+ (P(n))

Can we use induction?

Want to prove ∀x ∈ R+ (P(x))

Can we use induction?

What justifies mathematical induction?

Well ordering principle: every nonempty set S ⊆ N has a leastelement

Colin Stirling (Informatics) Discrete Mathematics (Sections 5.1 & 5.2) Today 5 / 11

Page 14: Discrete Mathematics & Mathematical Reasoning Induction€¦ · Discrete Mathematics & Mathematical Reasoning Induction Colin Stirling Informatics Colin Stirling (Informatics) Discrete

Examples

n∑j=1

j =n(n + 1)

2

k∑j=0

ar j =ar k+1 − a

r − 1when r 6= 1

for all n ∈ Z+(n < 2n)

for all integers n ≥ 4, 2n < n!

for all n ∈ Z+((n3 − n) is divisible by 3)

If S is a finite set with n elements then P(S) contains 2n elements

Colin Stirling (Informatics) Discrete Mathematics (Sections 5.1 & 5.2) Today 6 / 11

Page 15: Discrete Mathematics & Mathematical Reasoning Induction€¦ · Discrete Mathematics & Mathematical Reasoning Induction Colin Stirling Informatics Colin Stirling (Informatics) Discrete

Examples

n∑j=1

j =n(n + 1)

2

k∑j=0

ar j =ar k+1 − a

r − 1when r 6= 1

for all n ∈ Z+(n < 2n)

for all integers n ≥ 4, 2n < n!

for all n ∈ Z+((n3 − n) is divisible by 3)

If S is a finite set with n elements then P(S) contains 2n elements

Colin Stirling (Informatics) Discrete Mathematics (Sections 5.1 & 5.2) Today 6 / 11

Page 16: Discrete Mathematics & Mathematical Reasoning Induction€¦ · Discrete Mathematics & Mathematical Reasoning Induction Colin Stirling Informatics Colin Stirling (Informatics) Discrete

Examples

n∑j=1

j =n(n + 1)

2

k∑j=0

ar j =ar k+1 − a

r − 1when r 6= 1

for all n ∈ Z+(n < 2n)

for all integers n ≥ 4, 2n < n!

for all n ∈ Z+((n3 − n) is divisible by 3)

If S is a finite set with n elements then P(S) contains 2n elements

Colin Stirling (Informatics) Discrete Mathematics (Sections 5.1 & 5.2) Today 6 / 11

Page 17: Discrete Mathematics & Mathematical Reasoning Induction€¦ · Discrete Mathematics & Mathematical Reasoning Induction Colin Stirling Informatics Colin Stirling (Informatics) Discrete

Examples

n∑j=1

j =n(n + 1)

2

k∑j=0

ar j =ar k+1 − a

r − 1when r 6= 1

for all n ∈ Z+(n < 2n)

for all integers n ≥ 4, 2n < n!

for all n ∈ Z+((n3 − n) is divisible by 3)

If S is a finite set with n elements then P(S) contains 2n elements

Colin Stirling (Informatics) Discrete Mathematics (Sections 5.1 & 5.2) Today 6 / 11

Page 18: Discrete Mathematics & Mathematical Reasoning Induction€¦ · Discrete Mathematics & Mathematical Reasoning Induction Colin Stirling Informatics Colin Stirling (Informatics) Discrete

Examples

n∑j=1

j =n(n + 1)

2

k∑j=0

ar j =ar k+1 − a

r − 1when r 6= 1

for all n ∈ Z+(n < 2n)

for all integers n ≥ 4, 2n < n!

for all n ∈ Z+((n3 − n) is divisible by 3)

If S is a finite set with n elements then P(S) contains 2n elements

Colin Stirling (Informatics) Discrete Mathematics (Sections 5.1 & 5.2) Today 6 / 11

Page 19: Discrete Mathematics & Mathematical Reasoning Induction€¦ · Discrete Mathematics & Mathematical Reasoning Induction Colin Stirling Informatics Colin Stirling (Informatics) Discrete

Examples

n∑j=1

j =n(n + 1)

2

k∑j=0

ar j =ar k+1 − a

r − 1when r 6= 1

for all n ∈ Z+(n < 2n)

for all integers n ≥ 4, 2n < n!

for all n ∈ Z+((n3 − n) is divisible by 3)

If S is a finite set with n elements then P(S) contains 2n elements

Colin Stirling (Informatics) Discrete Mathematics (Sections 5.1 & 5.2) Today 6 / 11

Page 20: Discrete Mathematics & Mathematical Reasoning Induction€¦ · Discrete Mathematics & Mathematical Reasoning Induction Colin Stirling Informatics Colin Stirling (Informatics) Discrete

More examples

Odd Pie Fights An odd number of people stand in a room atmutually distinct distances. At the same time each person throwsa pie at their nearest neighbour and hits them. Prove that at leastone person is not hit by a pie

All cats have the same colour

Colin Stirling (Informatics) Discrete Mathematics (Sections 5.1 & 5.2) Today 7 / 11

Page 21: Discrete Mathematics & Mathematical Reasoning Induction€¦ · Discrete Mathematics & Mathematical Reasoning Induction Colin Stirling Informatics Colin Stirling (Informatics) Discrete

More examples

Odd Pie Fights An odd number of people stand in a room atmutually distinct distances. At the same time each person throwsa pie at their nearest neighbour and hits them. Prove that at leastone person is not hit by a pie

All cats have the same colour

Colin Stirling (Informatics) Discrete Mathematics (Sections 5.1 & 5.2) Today 7 / 11

Page 22: Discrete Mathematics & Mathematical Reasoning Induction€¦ · Discrete Mathematics & Mathematical Reasoning Induction Colin Stirling Informatics Colin Stirling (Informatics) Discrete

Strong Induction

Want to prove ∀n ∈ N (P(n))

BASIS STEP show P(0)

INDUCTIVE STEP show (P(0) ∧ . . . ∧ P(k))→ P(k + 1) for allk ∈ N

Assume k is arbitrary and P(0), . . . ,P(k) are true. Show P(k + 1)

Colin Stirling (Informatics) Discrete Mathematics (Sections 5.1 & 5.2) Today 8 / 11

Page 23: Discrete Mathematics & Mathematical Reasoning Induction€¦ · Discrete Mathematics & Mathematical Reasoning Induction Colin Stirling Informatics Colin Stirling (Informatics) Discrete

Strong Induction

Want to prove ∀n ∈ N (P(n))

BASIS STEP show P(0)

INDUCTIVE STEP show (P(0) ∧ . . . ∧ P(k))→ P(k + 1) for allk ∈ N

Assume k is arbitrary and P(0), . . . ,P(k) are true. Show P(k + 1)

Colin Stirling (Informatics) Discrete Mathematics (Sections 5.1 & 5.2) Today 8 / 11

Page 24: Discrete Mathematics & Mathematical Reasoning Induction€¦ · Discrete Mathematics & Mathematical Reasoning Induction Colin Stirling Informatics Colin Stirling (Informatics) Discrete

Strong Induction

Want to prove ∀n ∈ N (P(n))

BASIS STEP show P(0)

INDUCTIVE STEP show (P(0) ∧ . . . ∧ P(k))→ P(k + 1) for allk ∈ N

Assume k is arbitrary and P(0), . . . ,P(k) are true. Show P(k + 1)

Colin Stirling (Informatics) Discrete Mathematics (Sections 5.1 & 5.2) Today 8 / 11

Page 25: Discrete Mathematics & Mathematical Reasoning Induction€¦ · Discrete Mathematics & Mathematical Reasoning Induction Colin Stirling Informatics Colin Stirling (Informatics) Discrete

Strong Induction

Want to prove ∀n ∈ N (P(n))

BASIS STEP show P(0)

INDUCTIVE STEP show (P(0) ∧ . . . ∧ P(k))→ P(k + 1) for allk ∈ N

Assume k is arbitrary and P(0), . . . ,P(k) are true. Show P(k + 1)

Colin Stirling (Informatics) Discrete Mathematics (Sections 5.1 & 5.2) Today 8 / 11

Page 26: Discrete Mathematics & Mathematical Reasoning Induction€¦ · Discrete Mathematics & Mathematical Reasoning Induction Colin Stirling Informatics Colin Stirling (Informatics) Discrete

Strong Induction

Want to prove ∀n ∈ Z+ (P(n))

BASIS STEP show P(1)

INDUCTIVE STEP show (P(1) ∧ . . . ∧ P(k))→ P(k + 1) for allk ∈ Z+

Assume k is arbitrary and P(1), . . . ,P(k) are true. Show P(k + 1)

Colin Stirling (Informatics) Discrete Mathematics (Sections 5.1 & 5.2) Today 9 / 11

Page 27: Discrete Mathematics & Mathematical Reasoning Induction€¦ · Discrete Mathematics & Mathematical Reasoning Induction Colin Stirling Informatics Colin Stirling (Informatics) Discrete

Strong Induction

Want to prove ∀n ≥ m ∈ N (P(n))

BASIS STEP show P(m)

INDUCTIVE STEP show (P(m) ∧ . . . ∧ P(k))→ P(k + 1) for allk ≥ m ∈ N

Assume k ≥ m is arbitrary and P(m), . . . ,P(k) are true. ShowP(k + 1)

Colin Stirling (Informatics) Discrete Mathematics (Sections 5.1 & 5.2) Today 10 / 11

Page 28: Discrete Mathematics & Mathematical Reasoning Induction€¦ · Discrete Mathematics & Mathematical Reasoning Induction Colin Stirling Informatics Colin Stirling (Informatics) Discrete

Examples

If n > 1 is an integer, then n can be written as a product of primes

Game of matches. Two players take turns removing any positivenumber of matches they want from one of two piles of matches.The player who removes the last match wins the game. Show thatif the two piles contain the same number of matches initially thenthe second player can guarantee a win

If n ≥ 3 then fn > αn−2 (where fn is the nth term of the Fibonacciseries and α = (1 +

√5)/2)

Prove that every amount of postage of 12p or more can be formedusing just 4p and 5p stamps

Colin Stirling (Informatics) Discrete Mathematics (Sections 5.1 & 5.2) Today 11 / 11

Page 29: Discrete Mathematics & Mathematical Reasoning Induction€¦ · Discrete Mathematics & Mathematical Reasoning Induction Colin Stirling Informatics Colin Stirling (Informatics) Discrete

Examples

If n > 1 is an integer, then n can be written as a product of primes

Game of matches. Two players take turns removing any positivenumber of matches they want from one of two piles of matches.The player who removes the last match wins the game. Show thatif the two piles contain the same number of matches initially thenthe second player can guarantee a win

If n ≥ 3 then fn > αn−2 (where fn is the nth term of the Fibonacciseries and α = (1 +

√5)/2)

Prove that every amount of postage of 12p or more can be formedusing just 4p and 5p stamps

Colin Stirling (Informatics) Discrete Mathematics (Sections 5.1 & 5.2) Today 11 / 11

Page 30: Discrete Mathematics & Mathematical Reasoning Induction€¦ · Discrete Mathematics & Mathematical Reasoning Induction Colin Stirling Informatics Colin Stirling (Informatics) Discrete

Examples

If n > 1 is an integer, then n can be written as a product of primes

Game of matches. Two players take turns removing any positivenumber of matches they want from one of two piles of matches.The player who removes the last match wins the game. Show thatif the two piles contain the same number of matches initially thenthe second player can guarantee a win

If n ≥ 3 then fn > αn−2 (where fn is the nth term of the Fibonacciseries and α = (1 +

√5)/2)

Prove that every amount of postage of 12p or more can be formedusing just 4p and 5p stamps

Colin Stirling (Informatics) Discrete Mathematics (Sections 5.1 & 5.2) Today 11 / 11

Page 31: Discrete Mathematics & Mathematical Reasoning Induction€¦ · Discrete Mathematics & Mathematical Reasoning Induction Colin Stirling Informatics Colin Stirling (Informatics) Discrete

Examples

If n > 1 is an integer, then n can be written as a product of primes

Game of matches. Two players take turns removing any positivenumber of matches they want from one of two piles of matches.The player who removes the last match wins the game. Show thatif the two piles contain the same number of matches initially thenthe second player can guarantee a win

If n ≥ 3 then fn > αn−2 (where fn is the nth term of the Fibonacciseries and α = (1 +

√5)/2)

Prove that every amount of postage of 12p or more can be formedusing just 4p and 5p stamps

Colin Stirling (Informatics) Discrete Mathematics (Sections 5.1 & 5.2) Today 11 / 11