# At the start of the term, we saw the following formula for computing the sum of the first n integers:

Save this PDF as:

Size: px
Start display at page:

Download "At the start of the term, we saw the following formula for computing the sum of the first n integers:"

## Transcription

1 Chapter 11 Induction This chapter covers mathematical induction Introduction to induction At the start of the term, we saw the following formula for computing the sum of the first n integers: Claim 38 For any positive integer n, Σ n i=1 i = n(n+1). At that point, we didn t prove this formula correct, because this is most easily done using a new proof technique: induction. Mathematical induction is a technique for showing that a statement P(n) is true for all natural numbers n, or for some infinite subset of the natural numbers (e.g. all positive even integers). It s a nice way to produce quick, easy-to-read proofs for a variety of fact that would be awkward to prove with the techniques you ve seen so far. It is particularly well suited to analyzing theperformance of recursive algorithms. Most of youhave seen a few ofthese in previous programming classes; you ll see many more in later classes. Induction is very handy, but it may strike you as a bit weird. It may take you some time to get used to it. In fact, you have two tasks which are somewhat independent: 1

2 CHAPTER 11. INDUCTION 13 Learn how to write an inductive proof. Understand why inductive proofs are legitimate. You can learn to write correct inductive proofs even if you remain somewhat unsure of why the method is legitimate. Over the next few classes, you ll gain confidence in the validity of induction and its friend recursion. 11. An Example A proof by induction has the following outline: Claim: P(n) is true for all positive integers n. Proof: We ll use induction on n. Base: We need to show that P(1) is true. Induction: Suppose that P(n) is true for n = 1,,...,k 1. We need to show that P(k) is true. The part of the proof labelled induction is a conditional statement. We assume thatp(n)istrueforvalues ofnno largerthank 1. Thisassumption is called the inductive hypothesis. We use this assumption to show that P(k) is true. For our formula example, our proposition P(n) is Σ n i=1 i = n(n+1). Substituting this definition of P into the outline, we get the following outline for our specific claim: Proof: We will show that Σ n i=1 i = n(n+1) for any positive integer n, using induction on n. Base: We need to show that the formula holds for n = 1, i.e. Σ 1 i=1 i = 1. Induction: Suppose that Σ n i=1 i = n(n+1) for n = 1,,...,k 1. We need to show that Σ k i=1 i = k(k+1).

3 CHAPTER 11. INDUCTION 14 The full proof might then look like: Proof: We will show that Σ n i=1 i = n(n+1) for any positive integer n, using induction on n. Base: Weneedtoshowthattheformulaholdsforn = 1. Σ 1 i=1 i = 1. And also 1 = 1. So the two are equal for n = 1. Induction: Suppose that Σ n i=1 i = n(n+1) for n = 1,,...,k 1. We need to show that Σ k i=1 i = k(k+1). By the definition of summation notation, Σ k i=1 i = (Σ k 1 i=1 i)+k Our inductive hypothesis states that at n = k 1, Σi=1 k 1 i = ( (k 1)k ). Combining these two formulas, we get that Σ k i=1 i = ( (k 1)k )+k. But ( (k 1)k )+k = ( (k 1)k )+ k = ((k 1+)k ) = k(k+1). So, combining these equations, we get that Σ k i=1 i = k(k+1) which is what we needed to show. One way to think of a proof by induction is that it s a template for building direct proofs. If I give you the specific value n = 47, you could write a direct proof by starting with the base case and using the inductive step 46 times to work your way from the n = 1 case up to the n = 47 case Why is this legit? There are several ways to think about mathematical induction, and understand why it s a legitimate proof technique. Different people prefer different motivations at this point, so I ll offer several. Domino Theory: Imagine an infinite line of dominoes. The base step pushes the first one over. The inductive step claims that one domino falling down will push over the next domino in the line. So dominos will start to fall from the beginning all the way down the line. This process continues forever, because

4 CHAPTER 11. INDUCTION 15 the line is infinitely long. However, if you focus on any specific domino, it falls after some specific finite delay. Recursion fairy: The recursion fairy is the mathematician s version of a programming assistant. Suppose you tell her how to do the proof for P(1) and also why P(1) up through P(k) implies P(k + 1). Then suppose you pick any integer (e.g. 1034) then she can take this recipe and use it to fill in all the details of a normal direct proof that P holds for this particular integer. That is, she takes P(1), then uses the inductive step to get from P(1) to P(), and so on up to P(1034). Defining property of the integers: The integers are set up mathematically so that induction will work. Some formal sets of axioms defining the integers include a rule saying that induction works. Other axiom sets include the well-ordering property: any subset that has a lower bound also has a smallest element. This is equivalent to an axiom that explicitly states that induction works. Both of these axioms prevent the integers from having extra very large elements that can t be reached by repeatedly adding one to some starting integer. So, for example, is not an integer. These arguments don t depend on whether our starting point is 1 or some other integer, e.g. 0 or or -47. All you need to do is ensure that your base case covers the first integer for which the claim is supposed to be true Building an inductive proof In constructing an inductive proof, you ve got two tasks. First, you need to set up this outline for your problem. This includes identifying a suitable proposition P and a suitable integer variable n. Notice that P(n) must be a statement, i.e. something that is either true or false. For example, it is never just a formula whose value is a number. Also, notice that P(n) must depend on an integer n. This integer n is known

5 CHAPTER 11. INDUCTION 16 as our induction variable. The assumption at the start of the inductive step ( P(k) is true ) is called the inductive hypothesis. Your second task is to fill in the middle part of the induction step. That is, you must figure out how to relate a solution for a larger problem P(k) to a solution for one or more of the smaller problems P(1)...,P(k 1). Most students want to do this by starting with a small problem, e.g. P(k 1), and adding something to it. For more complex situations, however, it s usually better to start with the larger problem and try to find an instance of the smaller problem inside it Another example The previous example applied induction to an algebraic formula. We can also apply induction to other sorts of statements, as long as they involve a suitable integer n. Claim 39 For any natural number n, n 3 n is divisible by 3. In this case, P(n) is n 3 n is divisible by 3. So the outline of our proof looks like Proof: By induction on n. Base: Let n = 0. [prove that n 3 n is divisible by 3 when n = 0] Induction: Supposethatn 3 nisdivisibleby3,forn = 0,1,...,k. We need to show that (k +1) 3 (k +1) is divisible by 3. Fleshing out the details of the algebra, we get the following full proof: Proof: By induction on n. Base: Let n = 0. Then n 3 n = = 0 which is divisible by 3. Induction: Supposethatn 3 nisdivisibleby3,forn = 0,1,...,k. We need to show that (k +1) 3 (k +1) is divisible by 3.

7 CHAPTER 11. INDUCTION 18 case involves an equation, compute the results for both sides (not just one side) so you can verify they are equal. The important part of the inductive step is ensuring that you assume P(1),...,P(k 1) and use these facts to show P(k). At the start, you must spell out your inductive hypothesis, i.e. what P(n) is for your claim. It s usually helpful to explicitly substitute in some key values for n, e.g. work out what P(k 1) is. Make sure that you use the information from the inductive hypothesis in your argument that P(k + 1) holds. If you don t, it s not an inductive proof and it s very likely that your proof is buggy. At the start of the inductive step, it s also a good idea to say what you need to show, i.e. quote what P(k) is. These style issues are optional in theory, but actually critical for beginners writing inductive proofs. You will lose points if your proof isn t clear and easy to read. Following these style points (e.g. labelling your base and inductive steps) is a good way to ensure that it is, and that the logic of your proof is correct A geometrical example Let s see another example of the basic induction outline, this time on a geometrical application. Tiling some area of space with a certain type of puzzle piece means that you fit the puzzle pieces onto that area of space exactly, with no overlaps or missing areas. A right triomino is a -by- square minus one of the four squares. I claim that

8 CHAPTER 11. INDUCTION 19 Claim 40 For any positive integer n, a n n checkerboard with any one square removed can be tiled using right triominoes. Proof: by induction on n. Base: Suppose n = 1. Then our n n checkerboard with one square removed is exactly one right triomino. Induction: Suppose that the claim is true for n = 1,...,k. That is a n n checkerboard with any one square removed can be tiled using right triominoes as long as n k. Suppose we have a k+1 k+1 checkerboard C with any one squareremoved. WecandivideC intofour k k sub-checkerboards P, Q, R, and S. One of these sub-checkerboards is already missing a square. Suppose without loss of generality that this one is S. Place a single right triomino in the middle of C so it covers one square on each of P, Q, and R. Now look at the areas remaining to be covered. In each of the sub-checkerboards, exactly one square is missing (S) or already covered (P, Q, and R). So, by our inductive hypothesis, each of these sub-checkerboards minus one square can be tiled with right triominoes. Combining these four tilings with the triomino we put in the middle, we get a tiling for the whole of the larger checkerboard C. This is what we needed to construct Graph coloring We can also use induction to prove a useful general fact about graph colorability: Claim 41 For any positive integer D, if all nodes in a graph G have degree D, then G can be colored with D+1 colors. The objects involved in this claim are graphs. To apply induction to objects like graphs, we organize our objects by their size. Each step in the induction process will show that the claim holds for all objects of a particular

9 CHAPTER 11. INDUCTION 130 (integer) size. For graphs, the size would typically be either the number of nodes or the number of edges. For this proof, it s most convenient to use the number of nodes. Proof: Let s pick a positive integer D and prove the claim by induction on the number of nodes in G. Base: Since D 1, the graph with just one node can obviously be colored with D+1 colors. Induction: Suppose that any graph with at most k 1 nodes and maximum node degree D can be colored with D +1 colors. Let G be a graph with k nodes and maximum node degree D. Remove some node v (and its edges) from G to create a smaller graph G. G has k 1 nodes. Also, the maximum node degree of G is no larger than D, because removing a node can t increase the degree. So, by the inductive hypothesis, G can be colored with D +1 colors. Because v has at most D neighbors, its neighbors are only using D of the available colors, leaving a spare color that we can assign to v. The coloring of G can be extended to a coloring of G with D +1 colors. We can use this idea to design an algorithm (called the greedy algorithm) for coloring a graph. This algorithm walks through the nodes one-byone, giving each node a color without revising any of the previously-assigned colors. When we get to each node, we see what colors have been assigned to its neighbors. If there is a previously used color not assigned to a neighbor, we re-use that color. Otherwise, we deploy a new color. The above theorem shows that the greedy algorithm will never use more than D +1 colors. Notice, however, that D + 1 is only an upper bound on the chromatic number of the graph. The actual chromatic number of the graph might be a lot smaller. For example, D+1 would be 7 for the wheel graph W 6 but this graph actually has chromatic number only three:

10 CHAPTER 11. INDUCTION 131 G B B R G G B The performance of the greedy algorithm is very sensitive to the order in which the nodes are considered. For example, suppose we start coloring W 6 by coloring the center hub, then a node v on the outer ring, and then the node opposite v. Then our partial coloring might look as shown below. Completing this coloring will require using four colors. G R G Notice that whether we need to deploy a new color to handle a node isn t actually determined by the degree of the node but, rather, by how many of its neighbors are already colored. So a useful heuristic is to order nodes by their degrees and color higher-degree nodes earlier in the process. This tends to mean that, when we reach a high-degree node, some of its neighbors will not yet be colored. So we will be able to handle the high-degree nodes with fewer colors and then extend this partial coloring to all the low-degree nodes Postage example In the inductive proofs we ve seen so far, we didn t actually need the full information in our inductive hypothesis. Our inductive step assumed that P(n) was true for all values of n from the base up through k 1, a so-

11 CHAPTER 11. INDUCTION 13 called strong inductive hypothesis. However, the rest of the inductive step actually depended only on the information that P(k 1) was true. We could, in fact, have used a simpler inductive hypothesis, known as a weak inductive hypothesis, in which we just assumed that P(k 1) was true. We ll now see some examples where a strong inductive hypothesis is essential, beucase the result for n = k depends on the result for some smaller value of n, but it s not the immediately previous value k 1. Here s a classic example: Claim 4 Every amount of postage that is at least 1 cents can be made from 4-cent and 5-cent stamps. Before trying to prove a claim of this sort, you should try small examples and verify that the stated base case is correct. That is, in this case, that you can make postage for some representative integers, 1, but you can t do it for 11. For example, 1 cents uses three 4-cent stamps. 13 cents of postage uses two 4-cent stamps plus a 5-cent stamp. 14 uses one 4-cent stamp plus two 5-cent stamps. If you experiment with small values, you quickly realize that the formula for making k cents of postage depends on the one for making k 4 cents of postage. That is, you take the stamps for k 4 cents and add another 4-cent stamp. We can make this into an inductive proof as follows: Proof: by induction on the amount of postage. Base: If the postage is 1 cents, we can make it with three 4-cent stamps. If the postage is 13 cents, we can make it with two 4-cent stamps. plus a 5-cent stamp. If it is 14, we use one 4-cent stamp plus two 5-cent stamps. If it is 15, we use three 5-cent stamps. Induction: Suppose that we have show how to construct postage for every value from 1 up through k 1. We need to show how to construct k cents of postage. Since we ve already proved base cases up through 15 cents, we ll assume that k 16. Since k 16, k 4 1. So by the inductive hypothesis, we can construct postage for k 4 cents using m 4-cent stamps and

12 CHAPTER 11. INDUCTION 133 n 5-cent stamps, for some natural numbers m and n. In other words k 4 = 4m+5n. But then k = 4(m + 1) + 5n. So we can construct k cents of postage using m+1 4-cent stamps and n 5-cent stamps, which is what we needed to show. Notice that we needed to directly prove four base cases, since we needed to reach back four integers in our inductive step. It s not always obvious how many base cases are needed until you work out the details of your inductive step. The first base case was n = 1 because our claim only starts working consistently for integers Nim In the parlour game Nim, there are two players and two piles of matches. At each turn, a player removes some (non-zero) number of matches from one of the piles. The player who removes the last match wins. 1 Claim 43 If the two piles contain the same number of matches at the start of the game, then the second player can always win. Here s a winning strategy for the second player. Suppose your opponent removes m matches from one pile. In your next move, you remove m matches from the other pile, thus evening up the piles. Let s prove that this strategy works. Proof by induction on the number of matches (n) in each pile. Base: If both piles contain 1 match, the first player has only one possible move: remove the last match from one pile. The second player can then remove the last match from the other pile and thereby win. 1 Or, in some variations, loses. There seem to be several variations of this game.

13 CHAPTER 11. INDUCTION 134 Induction: Suppose that the second player can win any game that starts with two piles of n matches, where n is any value from 1 through k 1. We need to show that this is true if n = k. So, suppose that both piles contain k matches. A legal move by the first player involves removing j matches from one pile, where 1 j k. The piles then contain k matches and k j matches. The second player can now remove j matches from the other pile. This leaves us with two piles of k j matches. If j = k, then the second player wins. If j < k, then we re now effectively at the start of a game with k j matches in each pile. Since j 1, k j k 1. So, by the induction hypothesis, we know that the second player can finish the rest of the game with a win. The induction step in this proof uses the fact that our claim P(n) is true for a smaller value of n. But since we can t control how many matches the first player removes, we don t know how far back we have look in the sequence of earlier results P(1)...P(k). Our previous proof about postage can be rewritten so as to avoid strong induction. It s less clear how to rewrite proofs like this Nim example Prime factorization Early in this course, we saw the Fundamental Theorem of Arithmetic, which states that every positive integer n, n, can be expressed as the product of one or more prime numbers. Let s prove that this is true. Recall that a number n is prime if its only positive factors are one and n. n is composite if it s not prime. Since a factor of a number must be no larger than the number itself, this means that a composite number n always has a factor larger than 1 but smaller than n. This, in turn, means that we can write n as ab, where a and b are both larger than 1 but smaller than n. Proof by induction on n. We ll leave the details of proving this as an exercise for the reader.

14 CHAPTER 11. INDUCTION 135 Base: can be written as the product of a single prime number,. Induction: Suppose that every integer between and k can be written as the product of one or more primes. We need to show that k +1 can be written as a product of primes. There are two cases: Case 1: k +1 is prime. Then it is the product of one prime, i.e. itself. Case : k + 1 is composite. Then k + 1 can be written as ab, where a and b are integers such that a and b lie in the range [,k]. By the induction hypothesis, a can be written as a product of primes p 1 p...p i and b can be written as a product of primes q 1 q...q j. So then k+1 can be written as the product of primes p 1 p...p i q 1 q...q j. In both cases k+1 can be written as a product of primes, which is what we needed to show. Again, the inductive step needed to reach back some number of steps in our sequence of results, but we couldn t control how far back we needed to go Variation in notation Certain details of the induction outline vary, depending on the individual preferences of the author and the specific claim being proved. Some folks prefer to assume the statement is true for k and prove it s true for k + 1. Other assume it s true for k 1 and prove it s true for k. For a specific problems, sometimes one or the other choice yields a slightly simpler proofs. Folks differ as to whether the notation n = 0,1,...,k implies that k is necessarily at least 0, at least 1, or at least. Some authors prefer to write strong induction hypotheses all the time, even when a weak hypothesis would be sufficient. This saves mental effort, because you don t have to figure out in advance whether a strong hypothesis

15 CHAPTER 11. INDUCTION 136 was really required. However, for some problems, a strong hypothesis may be more complicated to state than a weak one. Authors writing for more experienced audiences may abbreviate the outline somewhat, e.g. packing an entirely short proof into one paragraph without labelling the base and inductive steps separately. However, being careful about the outline is important when you are still getting used to the technique.

### 3.1 Induction: An informal introduction

Chapter 3 Induction and Recursion 3.1 Induction: An informal introduction This section is intended as a somewhat informal introduction to The Principle of Mathematical Induction (PMI): a theorem that establishes

### Chapter 2. Mathematical Reasoning. 2.1 Mathematical Models

Contents Mathematical Reasoning 3.1 Mathematical Models........................... 3. Mathematical Proof............................ 4..1 Structure of Proofs........................ 4.. Direct Method..........................

### Mathematical Induction

Mathematical Induction MAT231 Transition to Higher Mathematics Fall 2014 MAT231 (Transition to Higher Math) Mathematical Induction Fall 2014 1 / 21 Outline 1 Mathematical Induction 2 Strong Mathematical

### Mathematical Induction. How does discrete math help us. How does discrete math help (CS160)? How does discrete math help (CS161)?

How does discrete math help us Helps create a solution (program) Helps analyze a program How does discrete math help (CS160)? Helps create a solution (program) q Logic helps you understand conditionals

### Induction. Announcements. Overview. Defining Functions. Sum of Squares. Closed-form expression for SQ(n) There have been some corrections to A1

Induction There have been some corrections to A1 Check the website and the newsgroup Announcements Upcoming topic: Recursion Lecture 3 CS 211 Fall 2005 Overview Recursion a programming strategy that solves

### Proof by Induction. Andreas Klappenecker

Proof by Induction Andreas Klappenecker 1 Motivation Induction is an axiom which allows us to prove that certain properties are true for all positive integers (or for all nonnegative integers, or all integers

### Discrete Mathematics and Probability Theory Spring 2014 Anant Sahai Note 3

EECS 70 Discrete Mathematics and Probability Theory Spring 014 Anant Sahai Note 3 Induction Induction is an extremely powerful tool in mathematics. It is a way of proving propositions that hold for all

### Use mathematical induction in Exercises 3 17 to prove summation formulae. Be sure to identify where you use the inductive hypothesis.

Exercises Exercises 1. There are infinitely many stations on a train route. Suppose that the train stops at the first station and suppose that if the train stops at a station, then it stops at the next

### The Inductive Proof Template

CS103 Handout 24 Winter 2016 February 5, 2016 Guide to Inductive Proofs Induction gives a new way to prove results about natural numbers and discrete structures like games, puzzles, and graphs. All of

### Lecture 6 : Induction DRAFT

CS/Math 40: Introduction to Discrete Mathematics /8/011 Lecture 6 : Induction Instructor: Dieter van Melkebeek Scribe: Dalibor Zelený DRAFT Last time we began discussing proofs. We mentioned some proof

### PEANO AXIOMS FOR THE NATURAL NUMBERS AND PROOFS BY INDUCTION. The Peano axioms

PEANO AXIOMS FOR THE NATURAL NUMBERS AND PROOFS BY INDUCTION The Peano axioms The following are the axioms for the natural numbers N. You might think of N as the set of integers {0, 1, 2,...}, but it turns

### PUTNAM TRAINING MATHEMATICAL INDUCTION. Exercises

PUTNAM TRAINING MATHEMATICAL INDUCTION (Last updated: December 11, 017) Remark. This is a list of exercises on mathematical induction. Miguel A. Lerma 1. Prove that n! > n for all n 4. Exercises. Prove

### Mathematical Induction. EECS 203: Discrete Mathematics Lecture 11 Spring

Mathematical Induction EECS 203: Discrete Mathematics Lecture 11 Spring 2016 1 Climbing the Ladder We want to show that n 1 P(n) is true. Think of the positive integers as a ladder. 1, 2, 3, 4, 5, 6,...

### Notes on induction proofs and recursive definitions

Notes on induction proofs and recursive definitions James Aspnes December 13, 2010 1 Simple induction Most of the proof techniques we ve talked about so far are only really useful for proving a property

### What is proof? Lesson 1

What is proof? Lesson The topic for this Math Explorer Club is mathematical proof. In this post we will go over what was covered in the first session. The word proof is a normal English word that you might

### 3 The language of proof

3 The language of proof After working through this section, you should be able to: (a) understand what is asserted by various types of mathematical statements, in particular implications and equivalences;

### MI 4 Mathematical Induction Name. Mathematical Induction

Mathematical Induction It turns out that the most efficient solution to the Towers of Hanoi problem with n disks takes n 1 moves. If this isn t the formula you determined, make sure to check your data

### PHIL 422 Advanced Logic Inductive Proof

PHIL 422 Advanced Logic Inductive Proof 1. Preamble: One of the most powerful tools in your meta-logical toolkit will be proof by induction. Just about every significant meta-logical result relies upon

### MA554 Assessment 1 Cosets and Lagrange s theorem

MA554 Assessment 1 Cosets and Lagrange s theorem These are notes on cosets and Lagrange s theorem; they go over some material from the lectures again, and they have some new material it is all examinable,

### Natural deduction for truth-functional logic

Natural deduction for truth-functional logic Phil 160 - Boston University Why natural deduction? After all, we just found this nice method of truth-tables, which can be used to determine the validity or

### One-to-one functions and onto functions

MA 3362 Lecture 7 - One-to-one and Onto Wednesday, October 22, 2008. Objectives: Formalize definitions of one-to-one and onto One-to-one functions and onto functions At the level of set theory, there are

### MATH10040: Chapter 0 Mathematics, Logic and Reasoning

MATH10040: Chapter 0 Mathematics, Logic and Reasoning 1. What is Mathematics? There is no definitive answer to this question. 1 Indeed, the answer given by a 21st-century mathematician would differ greatly

### PRINCIPLE OF MATHEMATICAL INDUCTION

Chapter 4 PRINCIPLE OF MATHEMATICAL INDUCTION Analysis and natural philosopy owe their most important discoveries to this fruitful means, which is called induction Newton was indebted to it for his theorem

### MA103 STATEMENTS, PROOF, LOGIC

MA103 STATEMENTS, PROOF, LOGIC Abstract Mathematics is about making precise mathematical statements and establishing, by proof or disproof, whether these statements are true or false. We start by looking

### Direct Proof MAT231. Fall Transition to Higher Mathematics. MAT231 (Transition to Higher Math) Direct Proof Fall / 24

Direct Proof MAT231 Transition to Higher Mathematics Fall 2014 MAT231 (Transition to Higher Math) Direct Proof Fall 2014 1 / 24 Outline 1 Overview of Proof 2 Theorems 3 Definitions 4 Direct Proof 5 Using

### Contradiction MATH Contradiction. Benjamin V.C. Collins, James A. Swenson MATH 2730

MATH 2730 Contradiction Benjamin V.C. Collins James A. Swenson Contrapositive The contrapositive of the statement If A, then B is the statement If not B, then not A. A statement and its contrapositive

### DIFFERENTIAL EQUATIONS

DIFFERENTIAL EQUATIONS Basic Concepts Paul Dawkins Table of Contents Preface... Basic Concepts... 1 Introduction... 1 Definitions... Direction Fields... 8 Final Thoughts...19 007 Paul Dawkins i http://tutorial.math.lamar.edu/terms.aspx

### Cosets and Lagrange s theorem

Cosets and Lagrange s theorem These are notes on cosets and Lagrange s theorem some of which may already have been lecturer. There are some questions for you included in the text. You should write the

### Mathematical Induction

Chapter 6 Mathematical Induction 6.1 The Process of Mathematical Induction 6.1.1 Motivating Mathematical Induction Consider the sum of the first several odd integers. produce the following: 1 = 1 1 + 3

### Mathematical Induction Assignments

1 Mathematical Induction Assignments Prove the Following using Principle of Mathematical induction 1) Prove that for any positive integer number n, n 3 + 2 n is divisible by 3 2) Prove that 1 3 + 2 3 +

### Discrete Mathematics and Probability Theory Spring 2016 Rao and Walrand Note 3

CS 70 Discrete Mathematics and Probability Theory Spring 06 ao and Walrand Note 3 Mathematical Induction Introduction. In this note, we introduce the proof technique of mathematical induction. Induction

### Mathematical Induction

Mathematical Induction James K. Peterson Department of Biological Sciences and Department of Mathematical Sciences Clemson University January 12, 2017 Outline Introduction to the Class Mathematical Induction

### 8. TRANSFORMING TOOL #1 (the Addition Property of Equality)

8 TRANSFORMING TOOL #1 (the Addition Property of Equality) sentences that look different, but always have the same truth values What can you DO to a sentence that will make it LOOK different, but not change

### 12 Sequences and Recurrences

12 Sequences and Recurrences A sequence is just what you think it is. It is often given by a formula known as a recurrence equation. 12.1 Arithmetic and Geometric Progressions An arithmetic progression

### 2.1 Convergence of Sequences

Chapter 2 Sequences 2. Convergence of Sequences A sequence is a function f : N R. We write f) = a, f2) = a 2, and in general fn) = a n. We usually identify the sequence with the range of f, which is written

### PROOF WITHOUT WORDS MATH CIRCLE (BEGINNERS) 05/06/2012

PROOF WITHOUT WORDS MATH CIRCLE (BEGINNERS) 05/06/2012 If you ve been with us for a little while, you ve already seen some examples of proofs without words. Remember a proof is just an airtight argument

### CONSTRUCTION OF sequence of rational approximations to sets of rational approximating sequences, all with the same tail behaviour Deﬁnition 1.

CONSTRUCTION OF R 1. MOTIVATION We are used to thinking of real numbers as successive approximations. For example, we write π = 3.14159... to mean that π is a real number which, accurate to 5 decimal places,

### Direct Proofs. the product of two consecutive integers plus the larger of the two integers

Direct Proofs A direct proof uses the facts of mathematics and the rules of inference to draw a conclusion. Since direct proofs often start with premises (given information that goes beyond the facts of

### Standard forms for writing numbers

Standard forms for writing numbers In order to relate the abstract mathematical descriptions of familiar number systems to the everyday descriptions of numbers by decimal expansions and similar means,

### HOW TO CREATE A PROOF. Writing proofs is typically not a straightforward, algorithmic process such as calculating

HOW TO CREATE A PROOF ALLAN YASHINSKI Abstract We discuss how to structure a proof based on the statement being proved Writing proofs is typically not a straightforward, algorithmic process such as calculating

### 30. TRANSFORMING TOOL #1 (the Addition Property of Equality)

30 TRANSFORMING TOOL #1 (the Addition Property of Equality) sentences that look different, but always have the same truth values What can you DO to a sentence that will make it LOOK different, but not

### 1 Modular Arithmetic Grade Level/Prerequisites: Time: Materials: Preparation: Objectives: Navajo Nation Math Circle Connection

1 Modular Arithmetic Students will explore a type of arithmetic that results from arranging numbers in circles instead of on a number line. Students make and prove conjectures about patterns relating to

### The Integers. Math 3040: Spring Contents 1. The Basic Construction 1 2. Adding integers 4 3. Ordering integers Multiplying integers 12

Math 3040: Spring 2011 The Integers Contents 1. The Basic Construction 1 2. Adding integers 4 3. Ordering integers 11 4. Multiplying integers 12 Before we begin the mathematics of this section, it is worth

### Carmen s Core Concepts (Math 135)

Carmen s Core Concepts (Math 135) Carmen Bruni University of Waterloo Week 4 1 Principle of Mathematical Induction 2 Example 3 Base Case 4 Inductive Hypothesis 5 Inductive Step When Induction Isn t Enough

### CONSTRUCTION OF THE REAL NUMBERS.

CONSTRUCTION OF THE REAL NUMBERS. IAN KIMING 1. Motivation. It will not come as a big surprise to anyone when I say that we need the real numbers in mathematics. More to the point, we need to be able to

### ACCESS TO SCIENCE, ENGINEERING AND AGRICULTURE: MATHEMATICS 1 MATH00030 SEMESTER / Lines and Their Equations

ACCESS TO SCIENCE, ENGINEERING AND AGRICULTURE: MATHEMATICS 1 MATH00030 SEMESTER 1 017/018 DR. ANTHONY BROWN. Lines and Their Equations.1. Slope of a Line and its y-intercept. In Euclidean geometry (where

### Nondeterministic finite automata

Lecture 3 Nondeterministic finite automata This lecture is focused on the nondeterministic finite automata (NFA) model and its relationship to the DFA model. Nondeterminism is an important concept in the

### Isomorphisms and Well-definedness

Isomorphisms and Well-definedness Jonathan Love October 30, 2016 Suppose you want to show that two groups G and H are isomorphic. There are a couple of ways to go about doing this depending on the situation,

### Alex s Guide to Word Problems and Linear Equations Following Glencoe Algebra 1

Alex s Guide to Word Problems and Linear Equations Following Glencoe Algebra 1 What is a linear equation? It sounds fancy, but linear equation means the same thing as a line. In other words, it s an equation

### CIS 2033 Lecture 5, Fall

CIS 2033 Lecture 5, Fall 2016 1 Instructor: David Dobor September 13, 2016 1 Supplemental reading from Dekking s textbook: Chapter2, 3. We mentioned at the beginning of this class that calculus was a prerequisite

### EECS 1028 M: Discrete Mathematics for Engineers

EECS 1028 M: Discrete Mathematics for Engineers Suprakash Datta Office: LAS 3043 Course page: http://www.eecs.yorku.ca/course/1028 Also on Moodle S. Datta (York Univ.) EECS 1028 W 18 1 / 32 Proofs Proofs

### Lecture 8: A Crash Course in Linear Algebra

Math/CS 120: Intro. to Math Professor: Padraic Bartlett Lecture 8: A Crash Course in Linear Algebra Week 9 UCSB 2014 Qué sed de saber cuánto! Pablo Neruda, Oda a los Números 1 Linear Algebra In the past

### 3. pour from one decanter to the other until either the receiving decanter is full or the poured decanter is empty.

Using the Euclidean Algorithm The Decanting Problem is a liquid measuring problem that begins with two unmarked decanters with capacities a and b. Usually a and b are integers. The problem is to determine

### Cantor and Infinite Sets

Cantor and Infinite Sets Galileo and the Infinite There are many whole numbers that are not perfect squares: 2, 3, 5, 6, 7, 8, 10, 11, and so it would seem that all numbers, including both squares and

### 4.1 Real-valued functions of a real variable

Chapter 4 Functions When introducing relations from a set A to a set B we drew an analogy with co-ordinates in the x-y plane. Instead of coming from R, the first component of an ordered pair comes from

### Fundamentals of Mathematics I

Fundamentals of Mathematics I Kent State Department of Mathematical Sciences Fall 2008 Available at: http://www.math.kent.edu/ebooks/10031/book.pdf August 4, 2008 Contents 1 Arithmetic 2 1.1 Real Numbers......................................................

### CHAPTER 3: THE INTEGERS Z

CHAPTER 3: THE INTEGERS Z MATH 378, CSUSM. SPRING 2009. AITKEN 1. Introduction The natural numbers are designed for measuring the size of finite sets, but what if you want to compare the sizes of two sets?

### Section 20: Arrow Diagrams on the Integers

Section 0: Arrow Diagrams on the Integers Most of the material we have discussed so far concerns the idea and representations of functions. A function is a relationship between a set of inputs (the leave

### Chapter 17. Proof by Contradiction The method

Chapter 17 Proof by Contradiction This chapter covers proof by contradiction. This is a powerful proof technique that can be extremely useful in the right circumstances. We ll need this method in Chapter

### TECHNISCHE UNIVERSITEIT EINDHOVEN Faculteit Wiskunde en Informatica. Final exam Logic & Set Theory (2IT61) (correction model)

TECHNISCHE UNIVERSITEIT EINDHOVEN Faculteit Wiskunde en Informatica Final exam Logic & Set Theory (2IT61) (correction model) Thursday November 4, 2016, 9:00 12:00 hrs. (2) 1. Determine whether the abstract

### CHAPTER 3. Sequences. 1. Basic Properties

CHAPTER 3 Sequences We begin our study of analysis with sequences. There are several reasons for starting here. First, sequences are the simplest way to introduce limits, the central idea of calculus.

### We are going to discuss what it means for a sequence to converge in three stages: First, we define what it means for a sequence to converge to zero

Chapter Limits of Sequences Calculus Student: lim s n = 0 means the s n are getting closer and closer to zero but never gets there. Instructor: ARGHHHHH! Exercise. Think of a better response for the instructor.

### Section 0.6: Factoring from Precalculus Prerequisites a.k.a. Chapter 0 by Carl Stitz, PhD, and Jeff Zeager, PhD, is available under a Creative

Section 0.6: Factoring from Precalculus Prerequisites a.k.a. Chapter 0 by Carl Stitz, PhD, and Jeff Zeager, PhD, is available under a Creative Commons Attribution-NonCommercial-ShareAlike.0 license. 201,

### ORDERS OF ELEMENTS IN A GROUP

ORDERS OF ELEMENTS IN A GROUP KEITH CONRAD 1. Introduction Let G be a group and g G. We say g has finite order if g n = e for some positive integer n. For example, 1 and i have finite order in C, since

### Section 3.1: Direct Proof and Counterexample 1

Section 3.1: Direct Proof and Counterexample 1 In this chapter, we introduce the notion of proof in mathematics. A mathematical proof is valid logical argument in mathematics which shows that a given conclusion

### Another Proof By Contradiction: 2 is Irrational

Another Proof By Contradiction: 2 is Irrational Theorem: 2 is irrational. Proof: By contradiction. Suppose 2 is rational. Then 2 = a/b for some a, b N +. We can assume that a/b is in lowest terms. Therefore,

### CS 360, Winter Morphology of Proof: An introduction to rigorous proof techniques

CS 30, Winter 2011 Morphology of Proof: An introduction to rigorous proof techniques 1 Methodology of Proof An example Deep down, all theorems are of the form If A then B, though they may be expressed

### Hence, the sequence of triangular numbers is given by., the. n th square number, is the sum of the first. S n

Appendix A: The Principle of Mathematical Induction We now present an important deductive method widely used in mathematics: the principle of mathematical induction. First, we provide some historical context

### Conditional Probability, Independence and Bayes Theorem Class 3, Jeremy Orloff and Jonathan Bloom

Conditional Probability, Independence and Bayes Theorem Class 3, 18.05 Jeremy Orloff and Jonathan Bloom 1 Learning Goals 1. Know the definitions of conditional probability and independence of events. 2.

### Solving Equations by Adding and Subtracting

SECTION 2.1 Solving Equations by Adding and Subtracting 2.1 OBJECTIVES 1. Determine whether a given number is a solution for an equation 2. Use the addition property to solve equations 3. Determine whether

### Chapter 8: Recursion. March 10, 2008

Chapter 8: Recursion March 10, 2008 Outline 1 8.1 Recursively Defined Sequences 2 8.2 Solving Recurrence Relations by Iteration 3 8.4 General Recursive Definitions Recursively Defined Sequences As mentioned

### Complex Numbers. Rich Schwartz. September 25, 2014

Complex Numbers Rich Schwartz September 25, 2014 1 From Natural Numbers to Reals You can think of each successive number system as arising so as to fill some deficits associated with the previous one.

### Going from graphic solutions to algebraic

Going from graphic solutions to algebraic 2 variables: Graph constraints Identify corner points of feasible area Find which corner point has best objective value More variables: Think about constraints

### cse547, math547 DISCRETE MATHEMATICS Professor Anita Wasilewska

cse547, math547 DISCRETE MATHEMATICS Professor Anita Wasilewska LECTURE 1 INTRODUCTION Course Web Page www.cs.stonybrook.edu/ cse547 The webpage contains: detailed lectures notes slides; very detailed

### A Brief Introduction to Proofs

A Brief Introduction to Proofs William J. Turner October, 010 1 Introduction Proofs are perhaps the very heart of mathematics. Unlike the other sciences, mathematics adds a final step to the familiar scientific

### Regression, part II. I. What does it all mean? A) Notice that so far all we ve done is math.

Regression, part II I. What does it all mean? A) Notice that so far all we ve done is math. 1) One can calculate the Least Squares Regression Line for anything, regardless of any assumptions. 2) But, if

### Roberto s Notes on Linear Algebra Chapter 4: Matrix Algebra Section 7. Inverse matrices

Roberto s Notes on Linear Algebra Chapter 4: Matrix Algebra Section 7 Inverse matrices What you need to know already: How to add and multiply matrices. What elementary matrices are. What you can learn

### 2. Two binary operations (addition, denoted + and multiplication, denoted

Chapter 2 The Structure of R The purpose of this chapter is to explain to the reader why the set of real numbers is so special. By the end of this chapter, the reader should understand the difference between

### Functions and one-to-one

Chapter 8 Functions and one-to-one In this chapter, we ll see what it means for a function to be one-to-one and bijective. This general topic includes counting permutations and comparing sizes of finite

### Basic Proof Examples

Basic Proof Examples Lisa Oberbroeckling Loyola University Maryland Fall 2015 Note. In this document, we use the symbol as the negation symbol. Thus p means not p. There are four basic proof techniques

### 7.5 Taking-and-Breaking Games

Chapter 7. Impartial Games 7.5 Taking-and-Breaking Games There are many natural variations on nim obtained by modifying the legal moves. For example, sometimes a player, in addition to taking counters,

### C241 Homework Assignment 7

C24 Homework Assignment 7. Prove that for all whole numbers n, n i 2 = n(n + (2n + The proof is by induction on k with hypothesis H(k i 2 = k(k + (2k + base case: To prove H(, i 2 = = = 2 3 = ( + (2 +

### February 13, Option 9 Overview. Mind Map

Option 9 Overview Mind Map Return tests - will discuss Wed..1.1 J.1: #1def,2,3,6,7 (Sequences) 1. Develop and understand basic ideas about sequences. J.2: #1,3,4,6 (Monotonic convergence) A quick review:

### (2) Generalize De Morgan s laws for n sets and prove the laws by induction. 1

ARS DIGITA UNIVERSITY MONTH 2: DISCRETE MATHEMATICS PROFESSOR SHAI SIMONSON PROBLEM SET 2 SOLUTIONS SET, FUNCTIONS, BIG-O, RATES OF GROWTH (1) Prove by formal logic: (a) The complement of the union of

### What Every Programmer Should Know About Floating-Point Arithmetic DRAFT. Last updated: November 3, Abstract

What Every Programmer Should Know About Floating-Point Arithmetic Last updated: November 3, 2014 Abstract The article provides simple answers to the common recurring questions of novice programmers about

### Cartesian Products and Relations

Cartesian Products and Relations Definition (Cartesian product) If A and B are sets, the Cartesian product of A and B is the set A B = {(a, b) : (a A) and (b B)}. The following points are worth special

### Number Theory. Zachary Friggstad. Programming Club Meeting

Number Theory Zachary Friggstad Programming Club Meeting Outline Factoring Sieve Multiplicative Functions Greatest Common Divisors Applications Chinese Remainder Theorem Throughout, problems to try are

### 10.7 Trigonometric Equations and Inequalities

0.7 Trigonometric Equations and Inequalities 857 0.7 Trigonometric Equations and Inequalities In Sections 0. 0. and most recently 0. we solved some basic equations involving the trigonometric functions.

### . As the binomial coefficients are integers we have that. 2 n(n 1).

Math 580 Homework. 1. Divisibility. Definition 1. Let a, b be integers with a 0. Then b divides b iff there is an integer k such that b = ka. In the case we write a b. In this case we also say a is a factor

### 1 Algorithms for Permutation Groups

AM 106/206: Applied Algebra Madhu Sudan Lecture Notes 9 October 3, 2016 References: Based on text by Akos Seress on Permutation Group Algorithms. Algorithm due to Sims. 1 Algorithms for Permutation Groups

### 10.7 Trigonometric Equations and Inequalities

0.7 Trigonometric Equations and Inequalities 857 0.7 Trigonometric Equations and Inequalities In Sections 0., 0. and most recently 0., we solved some basic equations involving the trigonometric functions.

### Solutions to November 2006 Problems

Solutions to November 2006 Problems Problem 1. A six-sided convex polygon is inscribed in a circle. All its angles are equal. Show that its sides need not be equal. What can be said about seven-sided equal-angled

### Introduction to Basic Proof Techniques Mathew A. Johnson

Introduction to Basic Proof Techniques Mathew A. Johnson Throughout this class, you will be asked to rigorously prove various mathematical statements. Since there is no prerequisite of a formal proof class,

### Dot Products, Transposes, and Orthogonal Projections

Dot Products, Transposes, and Orthogonal Projections David Jekel November 13, 2015 Properties of Dot Products Recall that the dot product or standard inner product on R n is given by x y = x 1 y 1 + +

### PUTNAM TRAINING NUMBER THEORY. Exercises 1. Show that the sum of two consecutive primes is never twice a prime.

PUTNAM TRAINING NUMBER THEORY (Last updated: December 11, 2017) Remark. This is a list of exercises on Number Theory. Miguel A. Lerma Exercises 1. Show that the sum of two consecutive primes is never twice

### Lecture 4: Training a Classifier

Lecture 4: Training a Classifier Roger Grosse 1 Introduction Now that we ve defined what binary classification is, let s actually train a classifier. We ll approach this problem in much the same way as

### Lecture 2: Linear regression

Lecture 2: Linear regression Roger Grosse 1 Introduction Let s ump right in and look at our first machine learning algorithm, linear regression. In regression, we are interested in predicting a scalar-valued