Domino Tilings Can you tile the grid with L-shaped tiles? Domino - - PowerPoint PPT Presentation

domino tilings
SMART_READER_LITE
LIVE PREVIEW

Domino Tilings Can you tile the grid with L-shaped tiles? Domino - - PowerPoint PPT Presentation

Domino Tilings Can you tile the grid with L-shaped tiles? Domino Tilings Can you tile the grid with L-shaped tiles? What about for a general 2 n 2 n grid Domino Tilings Can you tile the grid with L-shaped tiles? What about for a general 2 n


slide-1
SLIDE 1

Domino Tilings

Can you tile the grid with L-shaped tiles?

slide-2
SLIDE 2

Domino Tilings

Can you tile the grid with L-shaped tiles? What about for a general 2n ×2n grid

slide-3
SLIDE 3

Domino Tilings

Can you tile the grid with L-shaped tiles? What about for a general 2n ×2n grid and the hole is anywhere?

slide-4
SLIDE 4

Gauss & Induction

An old story: seven-year-old Gauss is in class.

slide-5
SLIDE 5

Gauss & Induction

An old story: seven-year-old Gauss is in class. Teacher asks: what is 1+2+3+···+100?

slide-6
SLIDE 6

Gauss & Induction

An old story: seven-year-old Gauss is in class. Teacher asks: what is 1+2+3+···+100?

◮ Gauss notices that the sum can be written as

(1+100)+(2+99)+(3+98)+···+(50+51).

slide-7
SLIDE 7

Gauss & Induction

An old story: seven-year-old Gauss is in class. Teacher asks: what is 1+2+3+···+100?

◮ Gauss notices that the sum can be written as

(1+100)+(2+99)+(3+98)+···+(50+51).

◮ 50 pairs of numbers, each pair sums to 101.

slide-8
SLIDE 8

Gauss & Induction

An old story: seven-year-old Gauss is in class. Teacher asks: what is 1+2+3+···+100?

◮ Gauss notices that the sum can be written as

(1+100)+(2+99)+(3+98)+···+(50+51).

◮ 50 pairs of numbers, each pair sums to 101. ◮ The answer is 5050.

slide-9
SLIDE 9

Gauss & Induction

An old story: seven-year-old Gauss is in class. Teacher asks: what is 1+2+3+···+100?

◮ Gauss notices that the sum can be written as

(1+100)+(2+99)+(3+98)+···+(50+51).

◮ 50 pairs of numbers, each pair sums to 101. ◮ The answer is 5050.

Gauss was proving the statement ∀n ∈ N n

i=0

i = n(n +1) 2

  • .
slide-10
SLIDE 10

Gauss & Induction

An old story: seven-year-old Gauss is in class. Teacher asks: what is 1+2+3+···+100?

◮ Gauss notices that the sum can be written as

(1+100)+(2+99)+(3+98)+···+(50+51).

◮ 50 pairs of numbers, each pair sums to 101. ◮ The answer is 5050.

Gauss was proving the statement ∀n ∈ N n

i=0

i = n(n +1) 2

  • .

We will prove it too, using induction.

slide-11
SLIDE 11

Knocking over Dominoes

Consider an infinite line of dominoes: . . . How do you knock them all down?

slide-12
SLIDE 12

Knocking over Dominoes

Consider an infinite line of dominoes: . . . How do you knock them all down? Easy answer: Knock over the first one.

slide-13
SLIDE 13

Knocking over Dominoes

Consider an infinite line of dominoes: . . . How do you knock them all down? Easy answer: Knock over the first one. Why does domino 1 fall?

slide-14
SLIDE 14

Knocking over Dominoes

Consider an infinite line of dominoes: . . . How do you knock them all down? Easy answer: Knock over the first one. Why does domino 1 fall? You knocked it over.

slide-15
SLIDE 15

Knocking over Dominoes

Consider an infinite line of dominoes: . . . How do you knock them all down? Easy answer: Knock over the first one. Why does domino 1 fall? You knocked it over. Why does domino 2 fall?

slide-16
SLIDE 16

Knocking over Dominoes

Consider an infinite line of dominoes: . . . How do you knock them all down? Easy answer: Knock over the first one. Why does domino 1 fall? You knocked it over. Why does domino 2 fall? Domino 1 knocked it over.

slide-17
SLIDE 17

Knocking over Dominoes

Consider an infinite line of dominoes: . . . How do you knock them all down? Easy answer: Knock over the first one. Why does domino 1 fall? You knocked it over. Why does domino 2 fall? Domino 1 knocked it over. . . . Why does domino n +1 fall?

slide-18
SLIDE 18

Knocking over Dominoes

Consider an infinite line of dominoes: . . . How do you knock them all down? Easy answer: Knock over the first one. Why does domino 1 fall? You knocked it over. Why does domino 2 fall? Domino 1 knocked it over. . . . Why does domino n +1 fall? Domino n knocked it over.

slide-19
SLIDE 19

Knocking over Dominoes

Consider an infinite line of dominoes: . . . How do you knock them all down? Easy answer: Knock over the first one. Why does domino 1 fall? You knocked it over. Why does domino 2 fall? Domino 1 knocked it over. . . . Why does domino n +1 fall? Domino n knocked it over. This is the key idea behind induction.

slide-20
SLIDE 20

Principle of Mathematical Induction

Principle of Induction: To prove a statement ∀n ∈ N P(n), it is enough to prove:

  • 1. P(0);
  • 2. ∀n ∈ N [P(n) =

⇒ P(n +1)].

slide-21
SLIDE 21

Principle of Mathematical Induction

Principle of Induction: To prove a statement ∀n ∈ N P(n), it is enough to prove:

  • 1. P(0);
  • 2. ∀n ∈ N [P(n) =

⇒ P(n +1)]. In symbols: ∀n ∈ N P(n) ≡ P(0)∧(∀n ∈ N [P(n) = ⇒ P(n +1)]).

slide-22
SLIDE 22

Principle of Mathematical Induction

Principle of Induction: To prove a statement ∀n ∈ N P(n), it is enough to prove:

  • 1. P(0);
  • 2. ∀n ∈ N [P(n) =

⇒ P(n +1)]. In symbols: ∀n ∈ N P(n) ≡ P(0)∧(∀n ∈ N [P(n) = ⇒ P(n +1)]). Why is induction helpful?

slide-23
SLIDE 23

Principle of Mathematical Induction

Principle of Induction: To prove a statement ∀n ∈ N P(n), it is enough to prove:

  • 1. P(0);
  • 2. ∀n ∈ N [P(n) =

⇒ P(n +1)]. In symbols: ∀n ∈ N P(n) ≡ P(0)∧(∀n ∈ N [P(n) = ⇒ P(n +1)]). Why is induction helpful? We can assume that P(n) is true, and then prove that P(n +1) holds.

slide-24
SLIDE 24

Principle of Mathematical Induction

Principle of Induction: To prove a statement ∀n ∈ N P(n), it is enough to prove:

  • 1. P(0);
  • 2. ∀n ∈ N [P(n) =

⇒ P(n +1)]. In symbols: ∀n ∈ N P(n) ≡ P(0)∧(∀n ∈ N [P(n) = ⇒ P(n +1)]). Why is induction helpful? We can assume that P(n) is true, and then prove that P(n +1) holds. Step 1 is the base case.

slide-25
SLIDE 25

Principle of Mathematical Induction

Principle of Induction: To prove a statement ∀n ∈ N P(n), it is enough to prove:

  • 1. P(0);
  • 2. ∀n ∈ N [P(n) =

⇒ P(n +1)]. In symbols: ∀n ∈ N P(n) ≡ P(0)∧(∀n ∈ N [P(n) = ⇒ P(n +1)]). Why is induction helpful? We can assume that P(n) is true, and then prove that P(n +1) holds. Step 1 is the base case. Step 2 is the inductive step.

slide-26
SLIDE 26

Principle of Mathematical Induction

Principle of Induction: To prove a statement ∀n ∈ N P(n), it is enough to prove:

  • 1. P(0);
  • 2. ∀n ∈ N [P(n) =

⇒ P(n +1)]. In symbols: ∀n ∈ N P(n) ≡ P(0)∧(∀n ∈ N [P(n) = ⇒ P(n +1)]). Why is induction helpful? We can assume that P(n) is true, and then prove that P(n +1) holds. Step 1 is the base case. Step 2 is the inductive step. Assuming that P(n) holds is called the inductive hypothesis.

slide-27
SLIDE 27

More on Induction

Suppose we have proven:

  • 1. P(0);
  • 2. ∀n ∈ N [P(n) =

⇒ P(n +1)].

slide-28
SLIDE 28

More on Induction

Suppose we have proven:

  • 1. P(0);
  • 2. ∀n ∈ N [P(n) =

⇒ P(n +1)]. From Step 1, we have proven P(0).

slide-29
SLIDE 29

More on Induction

Suppose we have proven:

  • 1. P(0);
  • 2. ∀n ∈ N [P(n) =

⇒ P(n +1)]. From Step 1, we have proven P(0). As a special case of Step 2, we have proven P(0) = ⇒ P(1).

slide-30
SLIDE 30

More on Induction

Suppose we have proven:

  • 1. P(0);
  • 2. ∀n ∈ N [P(n) =

⇒ P(n +1)]. From Step 1, we have proven P(0). As a special case of Step 2, we have proven P(0) = ⇒ P(1). Since we know P(0) holds, then we conclude that P(1) holds.

slide-31
SLIDE 31

More on Induction

Suppose we have proven:

  • 1. P(0);
  • 2. ∀n ∈ N [P(n) =

⇒ P(n +1)]. From Step 1, we have proven P(0). As a special case of Step 2, we have proven P(0) = ⇒ P(1). Since we know P(0) holds, then we conclude that P(1) holds. As a special case of Step 2, we have proven P(1) = ⇒ P(2).

slide-32
SLIDE 32

More on Induction

Suppose we have proven:

  • 1. P(0);
  • 2. ∀n ∈ N [P(n) =

⇒ P(n +1)]. From Step 1, we have proven P(0). As a special case of Step 2, we have proven P(0) = ⇒ P(1). Since we know P(0) holds, then we conclude that P(1) holds. As a special case of Step 2, we have proven P(1) = ⇒ P(2). Since we know P(1) holds, then we conclude that P(2) holds.

slide-33
SLIDE 33

More on Induction

Suppose we have proven:

  • 1. P(0);
  • 2. ∀n ∈ N [P(n) =

⇒ P(n +1)]. From Step 1, we have proven P(0). As a special case of Step 2, we have proven P(0) = ⇒ P(1). Since we know P(0) holds, then we conclude that P(1) holds. As a special case of Step 2, we have proven P(1) = ⇒ P(2). Since we know P(1) holds, then we conclude that P(2) holds. Understand the idea?

slide-34
SLIDE 34

More on Induction

Suppose we have proven:

  • 1. P(0);
  • 2. ∀n ∈ N [P(n) =

⇒ P(n +1)]. From Step 1, we have proven P(0). As a special case of Step 2, we have proven P(0) = ⇒ P(1). Since we know P(0) holds, then we conclude that P(1) holds. As a special case of Step 2, we have proven P(1) = ⇒ P(2). Since we know P(1) holds, then we conclude that P(2) holds. Understand the idea? Key idea: Proofs must be of finite length.

slide-35
SLIDE 35

More on Induction

Suppose we have proven:

  • 1. P(0);
  • 2. ∀n ∈ N [P(n) =

⇒ P(n +1)]. From Step 1, we have proven P(0). As a special case of Step 2, we have proven P(0) = ⇒ P(1). Since we know P(0) holds, then we conclude that P(1) holds. As a special case of Step 2, we have proven P(1) = ⇒ P(2). Since we know P(1) holds, then we conclude that P(2) holds. Understand the idea? Key idea: Proofs must be of finite length. The principle of induction lets us “cheat” and condense an infinitely long proof.

slide-36
SLIDE 36

Proving Gauss’s Formula

For all n ∈ N, ∑n

i=0 i = n(n +1)/2.

slide-37
SLIDE 37

Proving Gauss’s Formula

For all n ∈ N, ∑n

i=0 i = n(n +1)/2. ◮ Base case: P(0).

slide-38
SLIDE 38

Proving Gauss’s Formula

For all n ∈ N, ∑n

i=0 i = n(n +1)/2. ◮ Base case: P(0).

i=0

i = 0·1 2 .

slide-39
SLIDE 39

Proving Gauss’s Formula

For all n ∈ N, ∑n

i=0 i = n(n +1)/2. ◮ Base case: P(0).

i=0

i = 0·1 2 . The LHS and RHS are 0, so the base case holds.

slide-40
SLIDE 40

Proving Gauss’s Formula

For all n ∈ N, ∑n

i=0 i = n(n +1)/2. ◮ Base case: P(0).

i=0

i = 0·1 2 . The LHS and RHS are 0, so the base case holds.

◮ Inductive hypothesis: Assume P(n), i.e., assume

∑n

i=0 i = n(n +1)/2 holds.

slide-41
SLIDE 41

Proving Gauss’s Formula

For all n ∈ N, ∑n

i=0 i = n(n +1)/2. ◮ Base case: P(0).

i=0

i = 0·1 2 . The LHS and RHS are 0, so the base case holds.

◮ Inductive hypothesis: Assume P(n), i.e., assume

∑n

i=0 i = n(n +1)/2 holds. ◮ Important: We assume P(n) holds for one unspecified

n ∈ N.

slide-42
SLIDE 42

Proving Gauss’s Formula

For all n ∈ N, ∑n

i=0 i = n(n +1)/2. ◮ Base case: P(0).

i=0

i = 0·1 2 . The LHS and RHS are 0, so the base case holds.

◮ Inductive hypothesis: Assume P(n), i.e., assume

∑n

i=0 i = n(n +1)/2 holds. ◮ Important: We assume P(n) holds for one unspecified

n ∈ N. We do NOT assume P(n) holds for all n.

slide-43
SLIDE 43

Proving Gauss’s Formula

For all n ∈ N, ∑n

i=0 i = n(n +1)/2. ◮ Base case: P(0).

i=0

i = 0·1 2 . The LHS and RHS are 0, so the base case holds.

◮ Inductive hypothesis: Assume P(n), i.e., assume

∑n

i=0 i = n(n +1)/2 holds. ◮ Important: We assume P(n) holds for one unspecified

n ∈ N. We do NOT assume P(n) holds for all n.

◮ Inductive step: Prove P(n +1).

slide-44
SLIDE 44

Proving Gauss’s Formula

For all n ∈ N, ∑n

i=0 i = n(n +1)/2. ◮ Base case: P(0).

i=0

i = 0·1 2 . The LHS and RHS are 0, so the base case holds.

◮ Inductive hypothesis: Assume P(n), i.e., assume

∑n

i=0 i = n(n +1)/2 holds. ◮ Important: We assume P(n) holds for one unspecified

n ∈ N. We do NOT assume P(n) holds for all n.

◮ Inductive step: Prove P(n +1). n+1

i=0

i =

n

i=0

i +n +1 = n(n +1) 2 +n +1 = (n +1)(n +2) 2 .

slide-45
SLIDE 45

Proving Gauss’s Formula

For all n ∈ N, ∑n

i=0 i = n(n +1)/2. ◮ Base case: P(0).

i=0

i = 0·1 2 . The LHS and RHS are 0, so the base case holds.

◮ Inductive hypothesis: Assume P(n), i.e., assume

∑n

i=0 i = n(n +1)/2 holds. ◮ Important: We assume P(n) holds for one unspecified

n ∈ N. We do NOT assume P(n) holds for all n.

◮ Inductive step: Prove P(n +1). n+1

i=0

i =

n

i=0

i +n +1 = n(n +1) 2 +n +1 = (n +1)(n +2) 2 . This completes the proof.

slide-46
SLIDE 46

Better Triangle Inequality

Recall: For all x,y ∈ R, |x +y| ≤ |x|+|y| (Triangle Inequality).

slide-47
SLIDE 47

Better Triangle Inequality

Recall: For all x,y ∈ R, |x +y| ≤ |x|+|y| (Triangle Inequality). Prove: For all positive integers n and real numbers x1,...,xn, we have |x1 +···+xn| ≤ |x1|+···+|xn|.

slide-48
SLIDE 48

Better Triangle Inequality

Recall: For all x,y ∈ R, |x +y| ≤ |x|+|y| (Triangle Inequality). Prove: For all positive integers n and real numbers x1,...,xn, we have |x1 +···+xn| ≤ |x1|+···+|xn|.

◮ Statement: P(n) = ∀x1,...,xn ∈ R |∑n i=1 xi| ≤ ∑n i=1 |xi|.

slide-49
SLIDE 49

Better Triangle Inequality

Recall: For all x,y ∈ R, |x +y| ≤ |x|+|y| (Triangle Inequality). Prove: For all positive integers n and real numbers x1,...,xn, we have |x1 +···+xn| ≤ |x1|+···+|xn|.

◮ Statement: P(n) = ∀x1,...,xn ∈ R |∑n i=1 xi| ≤ ∑n i=1 |xi|. ◮ Base case: Start with P(1).

slide-50
SLIDE 50

Better Triangle Inequality

Recall: For all x,y ∈ R, |x +y| ≤ |x|+|y| (Triangle Inequality). Prove: For all positive integers n and real numbers x1,...,xn, we have |x1 +···+xn| ≤ |x1|+···+|xn|.

◮ Statement: P(n) = ∀x1,...,xn ∈ R |∑n i=1 xi| ≤ ∑n i=1 |xi|. ◮ Base case: Start with P(1). |x1| ≤ |x1| for all x1 ∈ R.

slide-51
SLIDE 51

Better Triangle Inequality

Recall: For all x,y ∈ R, |x +y| ≤ |x|+|y| (Triangle Inequality). Prove: For all positive integers n and real numbers x1,...,xn, we have |x1 +···+xn| ≤ |x1|+···+|xn|.

◮ Statement: P(n) = ∀x1,...,xn ∈ R |∑n i=1 xi| ≤ ∑n i=1 |xi|. ◮ Base case: Start with P(1). |x1| ≤ |x1| for all x1 ∈ R.

Obviously true.

slide-52
SLIDE 52

Better Triangle Inequality

Recall: For all x,y ∈ R, |x +y| ≤ |x|+|y| (Triangle Inequality). Prove: For all positive integers n and real numbers x1,...,xn, we have |x1 +···+xn| ≤ |x1|+···+|xn|.

◮ Statement: P(n) = ∀x1,...,xn ∈ R |∑n i=1 xi| ≤ ∑n i=1 |xi|. ◮ Base case: Start with P(1). |x1| ≤ |x1| for all x1 ∈ R.

Obviously true.

◮ Inductive hypothesis: For some n ∈ N, assume that

|x1 +···+xn| ≤ |x1|+···+|xn| for all x1,...,xn ∈ R.

slide-53
SLIDE 53

Better Triangle Inequality

Recall: For all x,y ∈ R, |x +y| ≤ |x|+|y| (Triangle Inequality). Prove: For all positive integers n and real numbers x1,...,xn, we have |x1 +···+xn| ≤ |x1|+···+|xn|.

◮ Statement: P(n) = ∀x1,...,xn ∈ R |∑n i=1 xi| ≤ ∑n i=1 |xi|. ◮ Base case: Start with P(1). |x1| ≤ |x1| for all x1 ∈ R.

Obviously true.

◮ Inductive hypothesis: For some n ∈ N, assume that

|x1 +···+xn| ≤ |x1|+···+|xn| for all x1,...,xn ∈ R.

◮ Inductive step: Prove ∀x1,...,xn+1 ∈ R |∑n+1 i=1 xi| ≤ ∑n+1 i=1 |xi|.

slide-54
SLIDE 54

Better Triangle Inequality

Recall: For all x,y ∈ R, |x +y| ≤ |x|+|y| (Triangle Inequality). Prove: For all positive integers n and real numbers x1,...,xn, we have |x1 +···+xn| ≤ |x1|+···+|xn|.

◮ Statement: P(n) = ∀x1,...,xn ∈ R |∑n i=1 xi| ≤ ∑n i=1 |xi|. ◮ Base case: Start with P(1). |x1| ≤ |x1| for all x1 ∈ R.

Obviously true.

◮ Inductive hypothesis: For some n ∈ N, assume that

|x1 +···+xn| ≤ |x1|+···+|xn| for all x1,...,xn ∈ R.

◮ Inductive step: Prove ∀x1,...,xn+1 ∈ R |∑n+1 i=1 xi| ≤ ∑n+1 i=1 |xi|.

Let x1,...,xn+1 be arbitrary real numbers.

slide-55
SLIDE 55

Better Triangle Inequality

Recall: For all x,y ∈ R, |x +y| ≤ |x|+|y| (Triangle Inequality). Prove: For all positive integers n and real numbers x1,...,xn, we have |x1 +···+xn| ≤ |x1|+···+|xn|.

◮ Statement: P(n) = ∀x1,...,xn ∈ R |∑n i=1 xi| ≤ ∑n i=1 |xi|. ◮ Base case: Start with P(1). |x1| ≤ |x1| for all x1 ∈ R.

Obviously true.

◮ Inductive hypothesis: For some n ∈ N, assume that

|x1 +···+xn| ≤ |x1|+···+|xn| for all x1,...,xn ∈ R.

◮ Inductive step: Prove ∀x1,...,xn+1 ∈ R |∑n+1 i=1 xi| ≤ ∑n+1 i=1 |xi|.

Let x1,...,xn+1 be arbitrary real numbers.

  • n+1

i=1

xi

  • =
  • n

i=1

xi +xn+1

  • n

i=1

xi

  • +|xn+1| ≤

n

i=1

|xi|+|xn+1|.

slide-56
SLIDE 56

Better Triangle Inequality

Recall: For all x,y ∈ R, |x +y| ≤ |x|+|y| (Triangle Inequality). Prove: For all positive integers n and real numbers x1,...,xn, we have |x1 +···+xn| ≤ |x1|+···+|xn|.

◮ Statement: P(n) = ∀x1,...,xn ∈ R |∑n i=1 xi| ≤ ∑n i=1 |xi|. ◮ Base case: Start with P(1). |x1| ≤ |x1| for all x1 ∈ R.

Obviously true.

◮ Inductive hypothesis: For some n ∈ N, assume that

|x1 +···+xn| ≤ |x1|+···+|xn| for all x1,...,xn ∈ R.

◮ Inductive step: Prove ∀x1,...,xn+1 ∈ R |∑n+1 i=1 xi| ≤ ∑n+1 i=1 |xi|.

Let x1,...,xn+1 be arbitrary real numbers.

  • n+1

i=1

xi

  • =
  • n

i=1

xi +xn+1

  • n

i=1

xi

  • +|xn+1| ≤

n

i=1

|xi|+|xn+1|. This proves P(n +1).

slide-57
SLIDE 57

Recursion & Induction

We define objects via recursion, and prove statements via induction.

slide-58
SLIDE 58

Recursion & Induction

We define objects via recursion, and prove statements via induction.

◮ The two concepts are closely related.

slide-59
SLIDE 59

Recursion & Induction

We define objects via recursion, and prove statements via induction.

◮ The two concepts are closely related. ◮ Let a0 := 1, and for n ∈ N, define an+1 := 2an.

slide-60
SLIDE 60

Recursion & Induction

We define objects via recursion, and prove statements via induction.

◮ The two concepts are closely related. ◮ Let a0 := 1, and for n ∈ N, define an+1 := 2an. (recursive

definition)

slide-61
SLIDE 61

Recursion & Induction

We define objects via recursion, and prove statements via induction.

◮ The two concepts are closely related. ◮ Let a0 := 1, and for n ∈ N, define an+1 := 2an. (recursive

definition)

◮ Prove: For all n ∈ N, an = 2n.

slide-62
SLIDE 62

Recursion & Induction

We define objects via recursion, and prove statements via induction.

◮ The two concepts are closely related. ◮ Let a0 := 1, and for n ∈ N, define an+1 := 2an. (recursive

definition)

◮ Prove: For all n ∈ N, an = 2n. How?

slide-63
SLIDE 63

Recursion & Induction

We define objects via recursion, and prove statements via induction.

◮ The two concepts are closely related. ◮ Let a0 := 1, and for n ∈ N, define an+1 := 2an. (recursive

definition)

◮ Prove: For all n ∈ N, an = 2n. How? (inductive proof)

slide-64
SLIDE 64

Recursion & Induction

We define objects via recursion, and prove statements via induction.

◮ The two concepts are closely related. ◮ Let a0 := 1, and for n ∈ N, define an+1 := 2an. (recursive

definition)

◮ Prove: For all n ∈ N, an = 2n. How? (inductive proof)

Recall from CS 61A: tree recursion.

slide-65
SLIDE 65

Recursion & Induction

We define objects via recursion, and prove statements via induction.

◮ The two concepts are closely related. ◮ Let a0 := 1, and for n ∈ N, define an+1 := 2an. (recursive

definition)

◮ Prove: For all n ∈ N, an = 2n. How? (inductive proof)

Recall from CS 61A: tree recursion.

◮ Example: Finding the height of a binary tree T.

slide-66
SLIDE 66

Recursion & Induction

We define objects via recursion, and prove statements via induction.

◮ The two concepts are closely related. ◮ Let a0 := 1, and for n ∈ N, define an+1 := 2an. (recursive

definition)

◮ Prove: For all n ∈ N, an = 2n. How? (inductive proof)

Recall from CS 61A: tree recursion.

◮ Example: Finding the height of a binary tree T. ◮ If T is a leaf, height(T) = 1.

slide-67
SLIDE 67

Recursion & Induction

We define objects via recursion, and prove statements via induction.

◮ The two concepts are closely related. ◮ Let a0 := 1, and for n ∈ N, define an+1 := 2an. (recursive

definition)

◮ Prove: For all n ∈ N, an = 2n. How? (inductive proof)

Recall from CS 61A: tree recursion.

◮ Example: Finding the height of a binary tree T. ◮ If T is a leaf, height(T) = 1. ◮ Otherwise, height(T) =

1+max{height(left subtree),height(right subtree)}.

slide-68
SLIDE 68

Recursion & Induction

We define objects via recursion, and prove statements via induction.

◮ The two concepts are closely related. ◮ Let a0 := 1, and for n ∈ N, define an+1 := 2an. (recursive

definition)

◮ Prove: For all n ∈ N, an = 2n. How? (inductive proof)

Recall from CS 61A: tree recursion.

◮ Example: Finding the height of a binary tree T. ◮ If T is a leaf, height(T) = 1. ◮ Otherwise, height(T) =

1+max{height(left subtree),height(right subtree)}. Just as we can do recursion on trees, we can prove facts about trees inductively.

slide-69
SLIDE 69

Recursion & Induction

We define objects via recursion, and prove statements via induction.

◮ The two concepts are closely related. ◮ Let a0 := 1, and for n ∈ N, define an+1 := 2an. (recursive

definition)

◮ Prove: For all n ∈ N, an = 2n. How? (inductive proof)

Recall from CS 61A: tree recursion.

◮ Example: Finding the height of a binary tree T. ◮ If T is a leaf, height(T) = 1. ◮ Otherwise, height(T) =

1+max{height(left subtree),height(right subtree)}. Just as we can do recursion on trees, we can prove facts about trees inductively. (Next topic: graph theory.)

slide-70
SLIDE 70

Domino Tiling

For a positive integer n, consider the 2n ×2n grid with the upper-right corner missing. Can we tile the grid with L-shaped tiles?

slide-71
SLIDE 71

Domino Tiling

For a positive integer n, consider the 2n ×2n grid with the upper-right corner missing. Can we tile the grid with L-shaped tiles? Base case, n = 1.

slide-72
SLIDE 72

Domino Tiling

For a positive integer n, consider the 2n ×2n grid with the upper-right corner missing. Can we tile the grid with L-shaped tiles? Base case, n = 1. We are done!

slide-73
SLIDE 73

Domino Tiling: Inductive Step

Now let us try n = 2.

slide-74
SLIDE 74

Domino Tiling: Inductive Step

Now let us try n = 2. Think of the 4×4 grid as four copies of the 2×2 grid.

slide-75
SLIDE 75

Domino Tiling: Inductive Step

Now let us try n = 2. Think of the 4×4 grid as four copies of the 2×2 grid. Apply inductive tiling?

slide-76
SLIDE 76

Domino Tiling: Inductive Step

Now let us try n = 2. Think of the 4×4 grid as four copies of the 2×2 grid. Apply inductive tiling?

slide-77
SLIDE 77

Domino Tiling: Inductive Step

Now let us try n = 2. Think of the 4×4 grid as four copies of the 2×2 grid. Apply inductive tiling? We failed!

slide-78
SLIDE 78

Strengthening the Inductive Hypothesis

Counterintuitive idea: Make the theorem stronger.

slide-79
SLIDE 79

Strengthening the Inductive Hypothesis

Counterintuitive idea: Make the theorem stronger. New Theorem: For any positive integer n, given a 2n ×2n grid with any square missing, we can tile it with L-shaped tiles.

slide-80
SLIDE 80

Strengthening the Inductive Hypothesis

Counterintuitive idea: Make the theorem stronger. New Theorem: For any positive integer n, given a 2n ×2n grid with any square missing, we can tile it with L-shaped tiles. Counterintuitive?

slide-81
SLIDE 81

Strengthening the Inductive Hypothesis

Counterintuitive idea: Make the theorem stronger. New Theorem: For any positive integer n, given a 2n ×2n grid with any square missing, we can tile it with L-shaped tiles. Counterintuitive?

◮ The theorem is now harder to prove, since the missing hole

can be anywhere.

slide-82
SLIDE 82

Strengthening the Inductive Hypothesis

Counterintuitive idea: Make the theorem stronger. New Theorem: For any positive integer n, given a 2n ×2n grid with any square missing, we can tile it with L-shaped tiles. Counterintuitive?

◮ The theorem is now harder to prove, since the missing hole

can be anywhere.

◮ However, in an inductive proof where we assume P(n), we

have more information at our disposal to prove P(n +1).

slide-83
SLIDE 83

Domino Tiling: Second Try

New Theorem: For any positive integer n, given a 2n ×2n grid with any square missing, we can tile it with L-shaped tiles.

slide-84
SLIDE 84

Domino Tiling: Second Try

New Theorem: For any positive integer n, given a 2n ×2n grid with any square missing, we can tile it with L-shaped tiles. Now, there are four base cases.

slide-85
SLIDE 85

Domino Tiling: Second Try

New Theorem: For any positive integer n, given a 2n ×2n grid with any square missing, we can tile it with L-shaped tiles. Now, there are four base cases.

slide-86
SLIDE 86

Domino Tiling: Second Try

New Theorem: For any positive integer n, given a 2n ×2n grid with any square missing, we can tile it with L-shaped tiles. Now, there are four base cases. The missing hole can be anywhere, but we can rotate our L-tile to accommodate all cases.

slide-87
SLIDE 87

Domino Tiling: Second Try

Again, try n = 2.

slide-88
SLIDE 88

Domino Tiling: Second Try

Again, try n = 2.

◮ Split 4×4 grid into four 2×2 grids.

slide-89
SLIDE 89

Domino Tiling: Second Try

Again, try n = 2.

◮ Split 4×4 grid into four 2×2 grids. ◮ In the 2×2 grid with the missing square, tile with inductive

hypothesis.

slide-90
SLIDE 90

Domino Tiling: Second Try

Again, try n = 2.

◮ Split 4×4 grid into four 2×2 grids. ◮ In the 2×2 grid with the missing square, tile with inductive

hypothesis.

◮ Tile the other 2×2 grids with holes lining up using the

(strengthened) inductive hypothesis.

slide-91
SLIDE 91

Domino Tiling: Second Try

Again, try n = 2.

◮ Split 4×4 grid into four 2×2 grids. ◮ In the 2×2 grid with the missing square, tile with inductive

hypothesis.

◮ Tile the other 2×2 grids with holes lining up using the

(strengthened) inductive hypothesis.

◮ Can you complete the proof?

slide-92
SLIDE 92

Strengthening the Inductive Hypothesis

Key idea: The inductive claim must contain information in order to propagate the claim from P(n) to P(n +1).

slide-93
SLIDE 93

Strengthening the Inductive Hypothesis

Key idea: The inductive claim must contain information in order to propagate the claim from P(n) to P(n +1). If your inductive claim does not contain enough information, reformulate your theorem to include this necessary information.

slide-94
SLIDE 94

Making Change

You live in a country where there are only two types of coins: 4-cent coins and 5-cent coins.

slide-95
SLIDE 95

Making Change

You live in a country where there are only two types of coins: 4-cent coins and 5-cent coins. Question: If I need x cents total, using only 4-cent and 5-cent coins, can you add up to exactly x cents?

slide-96
SLIDE 96

Making Change

You live in a country where there are only two types of coins: 4-cent coins and 5-cent coins. Question: If I need x cents total, using only 4-cent and 5-cent coins, can you add up to exactly x cents?

◮ We cannot make change for amounts less than 4 cents.

slide-97
SLIDE 97

Making Change

You live in a country where there are only two types of coins: 4-cent coins and 5-cent coins. Question: If I need x cents total, using only 4-cent and 5-cent coins, can you add up to exactly x cents?

◮ We cannot make change for amounts less than 4 cents. ◮ We cannot make change for 6 cents or 7 cents.

slide-98
SLIDE 98

Making Change

You live in a country where there are only two types of coins: 4-cent coins and 5-cent coins. Question: If I need x cents total, using only 4-cent and 5-cent coins, can you add up to exactly x cents?

◮ We cannot make change for amounts less than 4 cents. ◮ We cannot make change for 6 cents or 7 cents. ◮ We can make change for 8 cents with two 4-cent coins.

slide-99
SLIDE 99

Making Change

You live in a country where there are only two types of coins: 4-cent coins and 5-cent coins. Question: If I need x cents total, using only 4-cent and 5-cent coins, can you add up to exactly x cents?

◮ We cannot make change for amounts less than 4 cents. ◮ We cannot make change for 6 cents or 7 cents. ◮ We can make change for 8 cents with two 4-cent coins. ◮ We can make change for 9 cents with a 4-cent coin and a

5-cent coin.

slide-100
SLIDE 100

Making Change

You live in a country where there are only two types of coins: 4-cent coins and 5-cent coins. Question: If I need x cents total, using only 4-cent and 5-cent coins, can you add up to exactly x cents?

◮ We cannot make change for amounts less than 4 cents. ◮ We cannot make change for 6 cents or 7 cents. ◮ We can make change for 8 cents with two 4-cent coins. ◮ We can make change for 9 cents with a 4-cent coin and a

5-cent coin.

◮ We can make change for 10 cents with two 5-cent coins.

slide-101
SLIDE 101

Making Change

You live in a country where there are only two types of coins: 4-cent coins and 5-cent coins. Question: If I need x cents total, using only 4-cent and 5-cent coins, can you add up to exactly x cents?

◮ We cannot make change for amounts less than 4 cents. ◮ We cannot make change for 6 cents or 7 cents. ◮ We can make change for 8 cents with two 4-cent coins. ◮ We can make change for 9 cents with a 4-cent coin and a

5-cent coin.

◮ We can make change for 10 cents with two 5-cent coins. ◮ We cannot make change for 11 cents.

slide-102
SLIDE 102

Think Inductively

Try to make change inductively.

slide-103
SLIDE 103

Think Inductively

Try to make change inductively. If we can make change for x cents, we can make change for x +4 cents (add a 4-cent coin).

slide-104
SLIDE 104

Think Inductively

Try to make change inductively. If we can make change for x cents, we can make change for x +4 cents (add a 4-cent coin). However, if we can make change for x cents, it is not necessarily true that we can make change for x +1 cents.

slide-105
SLIDE 105

Think Inductively

Try to make change inductively. If we can make change for x cents, we can make change for x +4 cents (add a 4-cent coin). However, if we can make change for x cents, it is not necessarily true that we can make change for x +1 cents.

◮ We can make change for 10 cents, but not for 11 cents.

slide-106
SLIDE 106

Think Inductively

Try to make change inductively. If we can make change for x cents, we can make change for x +4 cents (add a 4-cent coin). However, if we can make change for x cents, it is not necessarily true that we can make change for x +1 cents.

◮ We can make change for 10 cents, but not for 11 cents.

If induction is climbing a ladder one step at a time. . . here we can climb the ladder four steps at a time.

slide-107
SLIDE 107

Visualizing Change

Stare at this graph. x x +1 x +2 x +3 x +4 x +5 ··· ···

slide-108
SLIDE 108

Visualizing Change

Stare at this graph. x x +1 x +2 x +3 x +4 x +5 ··· ··· We can think of this as four separate ladders:

◮ P(0) =

⇒ P(4), P(4) = ⇒ P(8), P(8) = ⇒ P(12), . . .

◮ P(1) =

⇒ P(5), P(5) = ⇒ P(9), P(9) = ⇒ P(13), . . .

◮ P(2) =

⇒ P(6), P(6) = ⇒ P(10), P(10) = ⇒ P(14), . . .

◮ P(3) =

⇒ P(7), P(7) = ⇒ P(11), P(11) = ⇒ P(15), . . .

slide-109
SLIDE 109

Visualizing Change

Stare at this graph. x x +1 x +2 x +3 x +4 x +5 ··· ··· We can think of this as four separate ladders:

◮ P(0) =

⇒ P(4), P(4) = ⇒ P(8), P(8) = ⇒ P(12), . . .

◮ P(1) =

⇒ P(5), P(5) = ⇒ P(9), P(9) = ⇒ P(13), . . .

◮ P(2) =

⇒ P(6), P(6) = ⇒ P(10), P(10) = ⇒ P(14), . . .

◮ P(3) =

⇒ P(7), P(7) = ⇒ P(11), P(11) = ⇒ P(15), . . . Idea: If we can make change for four consecutive numbers x, x +1, x +2, x +3, then we can make change for all n ≥ x.

slide-110
SLIDE 110

Making Change

Theorem: Using 4-cent coins and 5-cent coins, we can make change for n cents, where n is any integer which is at least 12.

slide-111
SLIDE 111

Making Change

Theorem: Using 4-cent coins and 5-cent coins, we can make change for n cents, where n is any integer which is at least 12. Proof.

slide-112
SLIDE 112

Making Change

Theorem: Using 4-cent coins and 5-cent coins, we can make change for n cents, where n is any integer which is at least 12. Proof.

◮ 12 cents: Use three 4-cent coins.

slide-113
SLIDE 113

Making Change

Theorem: Using 4-cent coins and 5-cent coins, we can make change for n cents, where n is any integer which is at least 12. Proof.

◮ 12 cents: Use three 4-cent coins. ◮ 13 cents: Use two 4-cent coins and a 5-cent coin.

slide-114
SLIDE 114

Making Change

Theorem: Using 4-cent coins and 5-cent coins, we can make change for n cents, where n is any integer which is at least 12. Proof.

◮ 12 cents: Use three 4-cent coins. ◮ 13 cents: Use two 4-cent coins and a 5-cent coin. ◮ 14 cents: Use a 4-cent coin and two 5-cent coins.

slide-115
SLIDE 115

Making Change

Theorem: Using 4-cent coins and 5-cent coins, we can make change for n cents, where n is any integer which is at least 12. Proof.

◮ 12 cents: Use three 4-cent coins. ◮ 13 cents: Use two 4-cent coins and a 5-cent coin. ◮ 14 cents: Use a 4-cent coin and two 5-cent coins. ◮ 15 cents: Use three 5-cent coins.

slide-116
SLIDE 116

Making Change

Theorem: Using 4-cent coins and 5-cent coins, we can make change for n cents, where n is any integer which is at least 12. Proof.

◮ 12 cents: Use three 4-cent coins. ◮ 13 cents: Use two 4-cent coins and a 5-cent coin. ◮ 14 cents: Use a 4-cent coin and two 5-cent coins. ◮ 15 cents: Use three 5-cent coins. ◮ Inductively, assume that we can make change for x, x +1,

x +2, and x +3, where x is some integer ≥ 12.

slide-117
SLIDE 117

Making Change

Theorem: Using 4-cent coins and 5-cent coins, we can make change for n cents, where n is any integer which is at least 12. Proof.

◮ 12 cents: Use three 4-cent coins. ◮ 13 cents: Use two 4-cent coins and a 5-cent coin. ◮ 14 cents: Use a 4-cent coin and two 5-cent coins. ◮ 15 cents: Use three 5-cent coins. ◮ Inductively, assume that we can make change for x, x +1,

x +2, and x +3, where x is some integer ≥ 12.

◮ How do we make change for x +4?

slide-118
SLIDE 118

Making Change

Theorem: Using 4-cent coins and 5-cent coins, we can make change for n cents, where n is any integer which is at least 12. Proof.

◮ 12 cents: Use three 4-cent coins. ◮ 13 cents: Use two 4-cent coins and a 5-cent coin. ◮ 14 cents: Use a 4-cent coin and two 5-cent coins. ◮ 15 cents: Use three 5-cent coins. ◮ Inductively, assume that we can make change for x, x +1,

x +2, and x +3, where x is some integer ≥ 12.

◮ How do we make change for x +4? Make change for x,

and then add a 4-cent coin.

slide-119
SLIDE 119

Strong Induction

More generally, this introduces the idea that we may need more than just P(n) to prove P(n +1).

slide-120
SLIDE 120

Strong Induction

More generally, this introduces the idea that we may need more than just P(n) to prove P(n +1). To prove ∀n ∈ N P(n), prove:

slide-121
SLIDE 121

Strong Induction

More generally, this introduces the idea that we may need more than just P(n) to prove P(n +1). To prove ∀n ∈ N P(n), prove:

◮ P(0);

slide-122
SLIDE 122

Strong Induction

More generally, this introduces the idea that we may need more than just P(n) to prove P(n +1). To prove ∀n ∈ N P(n), prove:

◮ P(0); ◮ ∀n ∈ N [(P(0)∧P(1)∧···∧P(n)) =

⇒ P(n +1)].

slide-123
SLIDE 123

Strong Induction

More generally, this introduces the idea that we may need more than just P(n) to prove P(n +1). To prove ∀n ∈ N P(n), prove:

◮ P(0); ◮ ∀n ∈ N [(P(0)∧P(1)∧···∧P(n)) =

⇒ P(n +1)]. This is called strong induction.

slide-124
SLIDE 124

Strong Induction

More generally, this introduces the idea that we may need more than just P(n) to prove P(n +1). To prove ∀n ∈ N P(n), prove:

◮ P(0); ◮ ∀n ∈ N [(P(0)∧P(1)∧···∧P(n)) =

⇒ P(n +1)]. This is called strong induction. Why does this work?

slide-125
SLIDE 125

Strong Induction

More generally, this introduces the idea that we may need more than just P(n) to prove P(n +1). To prove ∀n ∈ N P(n), prove:

◮ P(0); ◮ ∀n ∈ N [(P(0)∧P(1)∧···∧P(n)) =

⇒ P(n +1)]. This is called strong induction. Why does this work?

◮ We proved P(0).

slide-126
SLIDE 126

Strong Induction

More generally, this introduces the idea that we may need more than just P(n) to prove P(n +1). To prove ∀n ∈ N P(n), prove:

◮ P(0); ◮ ∀n ∈ N [(P(0)∧P(1)∧···∧P(n)) =

⇒ P(n +1)]. This is called strong induction. Why does this work?

◮ We proved P(0). ◮ We proved P(0) and P(0) =

⇒ P(1), so P(1) holds.

slide-127
SLIDE 127

Strong Induction

More generally, this introduces the idea that we may need more than just P(n) to prove P(n +1). To prove ∀n ∈ N P(n), prove:

◮ P(0); ◮ ∀n ∈ N [(P(0)∧P(1)∧···∧P(n)) =

⇒ P(n +1)]. This is called strong induction. Why does this work?

◮ We proved P(0). ◮ We proved P(0) and P(0) =

⇒ P(1), so P(1) holds.

◮ We proved P(0), P(1), and (P(0)∧P(1)) =

⇒ P(2), so P(2) holds.

slide-128
SLIDE 128

Strong Induction

More generally, this introduces the idea that we may need more than just P(n) to prove P(n +1). To prove ∀n ∈ N P(n), prove:

◮ P(0); ◮ ∀n ∈ N [(P(0)∧P(1)∧···∧P(n)) =

⇒ P(n +1)]. This is called strong induction. Why does this work?

◮ We proved P(0). ◮ We proved P(0) and P(0) =

⇒ P(1), so P(1) holds.

◮ We proved P(0), P(1), and (P(0)∧P(1)) =

⇒ P(2), so P(2) holds. (and so on)

slide-129
SLIDE 129

Strong Induction

More generally, this introduces the idea that we may need more than just P(n) to prove P(n +1). To prove ∀n ∈ N P(n), prove:

◮ P(0); ◮ ∀n ∈ N [(P(0)∧P(1)∧···∧P(n)) =

⇒ P(n +1)]. This is called strong induction. Why does this work?

◮ We proved P(0). ◮ We proved P(0) and P(0) =

⇒ P(1), so P(1) holds.

◮ We proved P(0), P(1), and (P(0)∧P(1)) =

⇒ P(2), so P(2) holds. (and so on)

◮ Knock over dominoes, where all previously knocked down

dominoes help knock over the next domino.

slide-130
SLIDE 130

Existence of Prime Factorizations

Theorem: For any natural number n ≥ 2, we can write n as a product of prime numbers.

1Remark: Relating the prime factorization of n with the prime factorization

  • f n +1 is an incredibly difficult unsolved problem in number theory.
slide-131
SLIDE 131

Existence of Prime Factorizations

Theorem: For any natural number n ≥ 2, we can write n as a product of prime numbers. Proof.

1Remark: Relating the prime factorization of n with the prime factorization

  • f n +1 is an incredibly difficult unsolved problem in number theory.
slide-132
SLIDE 132

Existence of Prime Factorizations

Theorem: For any natural number n ≥ 2, we can write n as a product of prime numbers. Proof.

◮ Base case: n = 2 is itself prime.

1Remark: Relating the prime factorization of n with the prime factorization

  • f n +1 is an incredibly difficult unsolved problem in number theory.
slide-133
SLIDE 133

Existence of Prime Factorizations

Theorem: For any natural number n ≥ 2, we can write n as a product of prime numbers. Proof.

◮ Base case: n = 2 is itself prime. ◮ Inductive hypothesis: Let n ≥ 2 and suppose that n has a

prime factorization.

1Remark: Relating the prime factorization of n with the prime factorization

  • f n +1 is an incredibly difficult unsolved problem in number theory.
slide-134
SLIDE 134

Existence of Prime Factorizations

Theorem: For any natural number n ≥ 2, we can write n as a product of prime numbers. Proof.

◮ Base case: n = 2 is itself prime. ◮ Inductive hypothesis: Let n ≥ 2 and suppose that n has a

prime factorization.

◮ Inductive step: Either n +1 is prime, or n +1 = ab where

a,b ∈ N with 1 < a,b < n +1.

1Remark: Relating the prime factorization of n with the prime factorization

  • f n +1 is an incredibly difficult unsolved problem in number theory.
slide-135
SLIDE 135

Existence of Prime Factorizations

Theorem: For any natural number n ≥ 2, we can write n as a product of prime numbers. Proof.

◮ Base case: n = 2 is itself prime. ◮ Inductive hypothesis: Let n ≥ 2 and suppose that n has a

prime factorization.

◮ Inductive step: Either n +1 is prime, or n +1 = ab where

a,b ∈ N with 1 < a,b < n +1. How do we factor a and b? 1

1Remark: Relating the prime factorization of n with the prime factorization

  • f n +1 is an incredibly difficult unsolved problem in number theory.
slide-136
SLIDE 136

Existence of Prime Factorizations

Theorem: For any natural number n ≥ 2, we can write n as a product of prime numbers. Proof.

◮ Base case: n = 2 is itself prime. ◮ Inductive hypothesis: Let n ≥ 2 and suppose that n has a

prime factorization.

◮ Inductive step: Either n +1 is prime, or n +1 = ab where

a,b ∈ N with 1 < a,b < n +1. How do we factor a and b? 1

◮ Strong induction: Assume that for all 2 ≤ k ≤ n, we know

that k has a prime factorization.

1Remark: Relating the prime factorization of n with the prime factorization

  • f n +1 is an incredibly difficult unsolved problem in number theory.
slide-137
SLIDE 137

Existence of Prime Factorizations

Theorem: For any natural number n ≥ 2, we can write n as a product of prime numbers. Proof.

◮ Base case: n = 2 is itself prime. ◮ Inductive hypothesis: Let n ≥ 2 and suppose that n has a

prime factorization.

◮ Inductive step: Either n +1 is prime, or n +1 = ab where

a,b ∈ N with 1 < a,b < n +1. How do we factor a and b? 1

◮ Strong induction: Assume that for all 2 ≤ k ≤ n, we know

that k has a prime factorization.

◮ Apply strong inductive hypothesis to a and b to express

each as products of primes.

1Remark: Relating the prime factorization of n with the prime factorization

  • f n +1 is an incredibly difficult unsolved problem in number theory.
slide-138
SLIDE 138

Existence of Prime Factorizations

Theorem: For any natural number n ≥ 2, we can write n as a product of prime numbers. Proof.

◮ Base case: n = 2 is itself prime. ◮ Inductive hypothesis: Let n ≥ 2 and suppose that n has a

prime factorization.

◮ Inductive step: Either n +1 is prime, or n +1 = ab where

a,b ∈ N with 1 < a,b < n +1. How do we factor a and b? 1

◮ Strong induction: Assume that for all 2 ≤ k ≤ n, we know

that k has a prime factorization.

◮ Apply strong inductive hypothesis to a and b to express

each as products of primes.

◮ Thus, n +1 is a product of primes.

1Remark: Relating the prime factorization of n with the prime factorization

  • f n +1 is an incredibly difficult unsolved problem in number theory.
slide-139
SLIDE 139

Strong Induction Is Equivalent to Induction

Strong induction. . . is a misleading name.

slide-140
SLIDE 140

Strong Induction Is Equivalent to Induction

Strong induction. . . is a misleading name. Strong induction implies ordinary induction.

slide-141
SLIDE 141

Strong Induction Is Equivalent to Induction

Strong induction. . . is a misleading name. Strong induction implies ordinary induction.

◮ Ordinary induction is the same as strong induction, except

that we forget that we proved P(0),P(1),...,P(n −1).

slide-142
SLIDE 142

Strong Induction Is Equivalent to Induction

Strong induction. . . is a misleading name. Strong induction implies ordinary induction.

◮ Ordinary induction is the same as strong induction, except

that we forget that we proved P(0),P(1),...,P(n −1). We only use P(n) to prove P(n +1).

slide-143
SLIDE 143

Strong Induction Is Equivalent to Induction

Strong induction. . . is a misleading name. Strong induction implies ordinary induction.

◮ Ordinary induction is the same as strong induction, except

that we forget that we proved P(0),P(1),...,P(n −1). We only use P(n) to prove P(n +1). Ordinary induction implies strong induction.

slide-144
SLIDE 144

Strong Induction Is Equivalent to Induction

Strong induction. . . is a misleading name. Strong induction implies ordinary induction.

◮ Ordinary induction is the same as strong induction, except

that we forget that we proved P(0),P(1),...,P(n −1). We only use P(n) to prove P(n +1). Ordinary induction implies strong induction.

◮ Given a sequence of propositions

P(0),P(1),P(2),P(3),..., define the propositions Q(n) := P(0)∧P(1)∧···∧P(n), for n ∈ N.

slide-145
SLIDE 145

Strong Induction Is Equivalent to Induction

Strong induction. . . is a misleading name. Strong induction implies ordinary induction.

◮ Ordinary induction is the same as strong induction, except

that we forget that we proved P(0),P(1),...,P(n −1). We only use P(n) to prove P(n +1). Ordinary induction implies strong induction.

◮ Given a sequence of propositions

P(0),P(1),P(2),P(3),..., define the propositions Q(n) := P(0)∧P(1)∧···∧P(n), for n ∈ N.

◮ Ordinary induction to prove ∀n ∈ N Q(n) is equivalent to

using strong induction to prove ∀n ∈ N P(n).

slide-146
SLIDE 146

Strong Induction

If you do not need strong induction, then just use ordinary (weak) induction.

slide-147
SLIDE 147

Strong Induction

If you do not need strong induction, then just use ordinary (weak) induction.

◮ Try weak induction first.

slide-148
SLIDE 148

Strong Induction

If you do not need strong induction, then just use ordinary (weak) induction.

◮ Try weak induction first. ◮ If you need more information, just upgrade to strong

induction at no additional cost.

slide-149
SLIDE 149

Strong Induction

If you do not need strong induction, then just use ordinary (weak) induction.

◮ Try weak induction first. ◮ If you need more information, just upgrade to strong

induction at no additional cost. Strong induction is not really a different technique from ordinary induction.

slide-150
SLIDE 150

Strong Induction

If you do not need strong induction, then just use ordinary (weak) induction.

◮ Try weak induction first. ◮ If you need more information, just upgrade to strong

induction at no additional cost. Strong induction is not really a different technique from ordinary induction. Strong induction is a different way to apply ordinary induction.

slide-151
SLIDE 151

All Horses Are the Same Color

“Theorem”: All horses are the same color.

slide-152
SLIDE 152

All Horses Are the Same Color

“Theorem”: All horses are the same color. “Proof”.

slide-153
SLIDE 153

All Horses Are the Same Color

“Theorem”: All horses are the same color. “Proof”.

◮ We will use induction on the size of the set of horses.

slide-154
SLIDE 154

All Horses Are the Same Color

“Theorem”: All horses are the same color. “Proof”.

◮ We will use induction on the size of the set of horses. ◮ Base case: For a set containing one horse, all horses in

the set are the same color.

slide-155
SLIDE 155

All Horses Are the Same Color

“Theorem”: All horses are the same color. “Proof”.

◮ We will use induction on the size of the set of horses. ◮ Base case: For a set containing one horse, all horses in

the set are the same color.

◮ Inductive hypothesis: Assume that for all sets containing n

horses, all horses in the set are the same color.

slide-156
SLIDE 156

All Horses Are the Same Color

“Theorem”: All horses are the same color. “Proof”.

◮ We will use induction on the size of the set of horses. ◮ Base case: For a set containing one horse, all horses in

the set are the same color.

◮ Inductive hypothesis: Assume that for all sets containing n

horses, all horses in the set are the same color.

◮ Inductive step: Consider a set of n +1 horses.

slide-157
SLIDE 157

All Horses Are the Same Color

“Theorem”: All horses are the same color. “Proof”.

◮ We will use induction on the size of the set of horses. ◮ Base case: For a set containing one horse, all horses in

the set are the same color.

◮ Inductive hypothesis: Assume that for all sets containing n

horses, all horses in the set are the same color.

◮ Inductive step: Consider a set of n +1 horses. ◮ By the inductive hypothesis, the first n horses are the same

color.

slide-158
SLIDE 158

All Horses Are the Same Color

“Theorem”: All horses are the same color. “Proof”.

◮ We will use induction on the size of the set of horses. ◮ Base case: For a set containing one horse, all horses in

the set are the same color.

◮ Inductive hypothesis: Assume that for all sets containing n

horses, all horses in the set are the same color.

◮ Inductive step: Consider a set of n +1 horses. ◮ By the inductive hypothesis, the first n horses are the same

  • color. The last n horses are also the same color.
slide-159
SLIDE 159

All Horses Are the Same Color

“Theorem”: All horses are the same color. “Proof”.

◮ We will use induction on the size of the set of horses. ◮ Base case: For a set containing one horse, all horses in

the set are the same color.

◮ Inductive hypothesis: Assume that for all sets containing n

horses, all horses in the set are the same color.

◮ Inductive step: Consider a set of n +1 horses. ◮ By the inductive hypothesis, the first n horses are the same

  • color. The last n horses are also the same color.

◮ Since the first n and last n horses overlap, then all n +1

horses are the same color. ♠

slide-160
SLIDE 160

All Horses Are the Same Color

“Theorem”: All horses are the same color. “Proof”.

◮ We will use induction on the size of the set of horses. ◮ Base case: For a set containing one horse, all horses in

the set are the same color.

◮ Inductive hypothesis: Assume that for all sets containing n

horses, all horses in the set are the same color.

◮ Inductive step: Consider a set of n +1 horses. ◮ By the inductive hypothesis, the first n horses are the same

  • color. The last n horses are also the same color.

◮ Since the first n and last n horses overlap, then all n +1

horses are the same color. ♠ Spot the mistake!

slide-161
SLIDE 161

Actually, Not All Horses Are the Same Color

The implication P(1) = ⇒ P(2) fails.

slide-162
SLIDE 162

Actually, Not All Horses Are the Same Color

The implication P(1) = ⇒ P(2) fails.

◮ For a set of two horses, the first horse and last horse do

NOT overlap.

slide-163
SLIDE 163

Actually, Not All Horses Are the Same Color

The implication P(1) = ⇒ P(2) fails.

◮ For a set of two horses, the first horse and last horse do

NOT overlap. Moral of the story: Be careful!

slide-164
SLIDE 164

Actually, Not All Horses Are the Same Color

The implication P(1) = ⇒ P(2) fails.

◮ For a set of two horses, the first horse and last horse do

NOT overlap. Moral of the story: Be careful!

◮ Also check the base case!

slide-165
SLIDE 165

Actually, Not All Horses Are the Same Color

The implication P(1) = ⇒ P(2) fails.

◮ For a set of two horses, the first horse and last horse do

NOT overlap. Moral of the story: Be careful!

◮ Also check the base case! ◮ The base case is usually easy so it is sometimes ignored.

slide-166
SLIDE 166

Actually, Not All Horses Are the Same Color

The implication P(1) = ⇒ P(2) fails.

◮ For a set of two horses, the first horse and last horse do

NOT overlap. Moral of the story: Be careful!

◮ Also check the base case! ◮ The base case is usually easy so it is sometimes ignored. ◮ This costs you points on the midterm.

slide-167
SLIDE 167

Summary

◮ To prove ∀n ∈ N P(n), prove:

  • 1. the base case P(0), and
  • 2. for all n ∈ N, assume P(n) and prove P(n +1).

◮ Domino tilings and moving the hole around:

◮ Sometimes strengthening the claim makes it easier to

prove!

◮ Strong induction: in the inductive step, assume

P(0),P(1),...,P(n −1) in addition to P(n).

◮ Strong induction is equivalent to ordinary induction. ◮ All horses are not the same color: you can make mistakes

if you are not careful.