Unit 6: Mathematical Induction 1 Subunit 6(a): Ordinary Induction 2 Principle of Mathematical Induction (Ordinary) Let đ(đ)be a statement about the positive integer đ. To prove that đ đ is true for all positive integers đ, it is sufficient to do the following: • (Basic step): Prove that đ(1) is true • (Inductive step): Prove that for every positive integer đ, đ(đ) → đ(đ + 1). If we succeed in doing these two things, it follows that đ(đ) is true for all positive integers đ. 3 Example 1 đ(đ+1) 2 • Prove that 1 + 2 + ⯠+ đ = for every positive integer đ. Solution: Let the given statement be đ(đ). Basic step: đ(1) says that 1 = 1(1+1) 2 which is true. Inductive step: Let đ be any positive integer. We have to show that đ(đ) → đ(đ + 1). Suppose that đ đ is true. This means that 4 Example 1 (continued) 1 + 2 + âŻ+ đ = đ(đ+1) . 2 Then, k (k + 1) + k +1 2 ïŠk ï¶ = (k + 1)ï§ + 1ï· ïš2 ïž (k + 1)(k + 2) = 2 1 + 2 + ï k + (k + 1) = which is đ(đ + 1). We have shown that đ(đ) → đ(đ + 1) for every positive integer đ. It follows that đ(đ) is true for every positive integer đ by the principle of mathematical induction. 5 Principle of Mathematical Induction (modified) Let đ(đ) be a statement about the integer đ and let đ be a fixed integer. To prove that đ(đ) is true for every integer đ with đ ≥ đ, it is sufficient to do the following: • (Basic step): Prove that đ(đ) is true. • (Inductive step): Prove that for every integer đ with đ ≥ đ, we have đ(đ) → đ(đ + 1). It will follow that đ(đ) is true for all integers đ with đ ≥ đ. 6 Example 2 Prove that 2đ < đ! for every integer đ with đ ≥ 4. Solution: Let the given statement be đ(đ). • Basic step: đ(4) says that 24 < 4! which is true. • Inductive step: Let đ be a positive integer with đ ≥ 4. We have to show that đ đ → đ đ + 1 . Suppose that đ(đ) is true. 7 Example 2 (continued) Thus, 2đ < đ!. Multiplying both sides by 2 gives 2đ+1 < 2 đ! . Next, note that 2 < đ + 1 since đ ≥ 4. Therefore, 2 đ! < đ + 1 đ! . Thus, 2đ+1 < đ + 1 !. We have shown that đ(đ) → đ(đ + 1)for every integer đ with đ ≥ 4. It follows that đ(đ) is true for every integer đ with đ ≥ 4. 8 Divisibility Let đ and đ be integers with đ ≠ 0. We say that đ divides đ and write đ|đ provided that there exists an integer đ such that đ = đđ. Whenever đ|đ, we also say the following • đ is a factor of đ • đ is a multiple of đ • đ is divisible by đ • đ is a divisor of đ. If đ does not divide đ, we write a |⁄b For example, 3|6 but 2 |⁄ 5. 9 Example 3 • Prove that 7|(32đ+1 + 2đ+2 ) for all nonnegative integers đ. Solution: Let the given statement be đ(đ). đ(0) says that 7|(31 +22 ) which is true. Next, let đ be a non-negative integer such that đ(đ) is true. Hence, 7|(32đ+1 + 2đ+2 ) so that there is an integer đ with 32đ+1 + 2đ+2 = 7đ. Thus, 32đ+1 = 7đ − 2đ+2 (1) 10 Example 3 (continued) Note that 32 ( k +1) +1 + 2( k +1) + 2 = 32 k +3 + 2 k +3 = 3232 k +1 + 2 k +3 = 9(7q − 2 k + 2 ) + 2 k +3 = 7(9q) − 9(2 k + 2 ) + 2(2 k + 2 ) = 7(9q) − 7(2 k + 2 ) = 7(9q − 2 k + 2 ) Thus, 7 | (32 ( k +1) +1 + 2( k +1) + 2 ) since 9q − 2 k + 2 is an integer. We have shown that P(k ) → P(k + 1) for every non - negative integer k . Hence, P(n) is true for all non - negative integers n. 11 Subunit 6(b): Strong Induction 12 Example 4 • The Fibonacci sequence is defined recursively as follows: đ0 = 0, đ1 = 1, đđ = đđ−1 + đđ−2 for all integers đ with đ ≥ 2. The first few terms are 0, 1, 1, 2, 3, 5, 8, 13. Prove that đđ = 1 1+ 5 5 2 đ − 1 1− 5 5 2 đ for every non- negative integer đ. 13 Example 4 (continued) Solution: Let đ(đ) be the statement that has to 1+ 5 2 2 1− 5 . 2 be proved. Let đŒ = đđđ đœ = Note that đŒ 2 = đŒ + 1 and đœ = đœ + 1. Also, note that 1 đ 1 đ đ(đ) says that đđ = đŒ − đœ . 5 5 Basic Step: It is easily checked that đ(0) and đ(1) are true. 14 Example 4 (continued) • Inductive step: Let đ be an integer with đ ≥ 2. We will show that if đ đ is true for every integer đ with 0 ≤ đ < đ then đ(đ) must be true. So, suppose that đ(đ) is true for every integer đ with 0 ≤ đ < đ. This means that đ(đ − 2) and đ(đ − 1) are true. Hence, đđ−2 = đđ−1 = 1 đ−2 1 đ−2 đŒ − đœ and 5 5 1 đ−1 1 đ−1 đŒ − đœ . 5 5 15 Example 4 (continued) We have f k = f k −1 + f k − 2 = = = = = 1 k −1 1 k −1 1 k − 2 1 k − 2 ïĄ − ïą + ïĄ − ïą 5 5 5 5 1 1 ïĄ k −1 + ïĄ k − 2 − ïą k −1 + ïą k − 2 5 5 1 k −2 1 k −2 ïĄ (ïĄ + 1) − ïą ( ïą + 1) 5 5 1 k −2 2 1 k −2 2 ïĄ ïĄ − ïą ïą (since ïĄ 2 = ïĄ + 1 and ïą 2 = ïą + 1) 5 5 1 k 1 k ïĄ − ïą 5 5 ( ) ( ) 16 Example 4 (continued) We have shown that for every integer đ with đ ≥ 2, if đ(đ) is true for every integer đ with 0 ≤ đ < đ then đ(đ) is true. Together with the basic step where it was shown that đ(0)and đ(1) are true, it follows that đ(đ) is true for every nonnegative integer đ by the principle of strong induction. 17 Example 5 Consider the sequence defined recursively as follows: đ1 = 1, đ2 = 2, đ3 = 3, and đđ = đđ−1 + đđ−2 + đđ−3 for all integers đ with đ ≥ 4. Prove that đđ < 2đ for all positive integers đ. Solution: Let đ(đ) be the statement that has to be proved. Basic step: It is easily seen that đ 1 , đ(2) and đ(3) are true. 18 Example 5 (continued) • Inductive step: Let đ be an integer with đ ≥ 4. Suppose that đ đ is true for every integer đ with 1 ≤ đ < đ. We will show that đ(đ) is true. Note that by our assumption, đ(đ − 3), đ(đ − 2)and đ(đ − 1) are all true. Hence, đđ−3 < 2đ−3 , đđ−2 < 2đ−2 and đđ−1 < 2đ−1 . Hence, we have 19 Example 5 (continued) ak = ak −1 + ak − 2 + ak −3 ïŒ 2 k −1 + 2 k − 2 + 2 k −3 = 2 k −3 (2 2 + 2 + 1) = 2 k −3 (7) ïŒ 2 k −3 (8) = 2 k . We have shown that for every integer k with k ïł 4, if P( j ) is true for every integer j with 1 ïŁ j ïŒ k then P(k ) is true. Together with the fact that P(1), P(2), and P(3) are true, it follows that P(n) is true for all positive integers n. 20