MATHEMATICAL INDUCTION AND DIFFERENCE EQUATIONS

Size: px
Start display at page:

Download "MATHEMATICAL INDUCTION AND DIFFERENCE EQUATIONS"

Transcription

1 1 CHAPTER 6. MATHEMATICAL INDUCTION AND DIFFERENCE EQUATIONS 1 INSTITIÚID TEICNEOLAÍOCHTA CHEATHARLACH INSTITUTE OF TECHNOLOGY CARLOW MATHEMATICAL INDUCTION AND DIFFERENCE EQUATIONS 1 Introduction Recurrence relations, recursive algorithms, and mathematical induction are closely related. In all three, prior instances of the current case are assumed known. A recurrence relation uses prior values in a sequence to complete the current value. A recursive algorithm uses smaller instances of the current input to process the current input. The inductive step in a proof by mathematical induction assumes the truth of prior instances of the statement to prove the truth of the current statement. The Principle of Mathematical Induction In order to prove that certain results hold for all positive integers, the Principle of Mathematical Induction is often employed. These results may, for example, be summation formulae or results from number theory relating to divisibility. We will also illustrate how the principle is used to establish the truth of inequalities. Firstly, some preliminary information..1 Integers and Natural Numbers An integer is a whole number. We denote the the set (or collection) of integers by Z. (The word for number in German is Zahl.) Z = {... 3,, 1, 0, 1,, 3,...}

2 CHAPTER 6. MATHEMATICAL INDUCTION AND DIFFERENCE EQUATIONS We specify important subsets of this set. The non-negative integers are Z + = {0, 1,, 3,...}. The non-positive integers are Z = {0, 1,, 3,...}. The positive integers are Z + 0 = {1,, 3, 4,...} The negative integers are Z 0 = { 1,, 3, 4,...} The natural numbers are the positive integers 1,,3,4,... N = {1,, 3, 4,...} In some books 0 appears in this set. Note that the terms natural number and positive integer refer to the same objects.. The Well-Ordered Principle Every nonempty set of positive integers contains a smallest member. So, clearly, the set N is well ordered as are the sets Z + and Z + 0. However, the sets Q+ 0 or R+ 0 do not have a smallest element and hence are not well ordered. The principle of mathematical induction is based on this property of subsets..3 Introduction to the Principle of Mathematical Induction For each n N, let S n, denote the sum of the first n (positive) odd numbers. Calculating S 1, S, S 3, S 4, S 5 we find S 1 = 1 = 1 S = = 4 S 3 = = 9 S 4 = = 16 S 5 = = 5 You may notice a pattern beginning to emerge. Does this pattern continue? Suppose that we see whether or not the pattern continues to S 6. Adding up, we find S 6 = = 36

3 3 CHAPTER 6. MATHEMATICAL INDUCTION AND DIFFERENCE EQUATIONS 3 We are thus led to the conjecture that S n = n for all natural numbers n? Can we prove this? If so, how? Merely testing the proposition for a few values of n, no matter how many, cannot in itself suffice to prove that the proposition holds for all natural numbers n. Some propositions may turn out to be true in a very large number of cases, and yet fails for others. Such a proposition is the following: n < 1, 000, 000, 000 This proposition holds for a very large number of natural numbers n, (for 999,999,999 of them to be precise), yet it obviously fails to hold for all natural numbers n. A strategy for proving that some conjecture holds for all natural numbers n is the Principle of Mathematical Induction. Theorem 1 Let P (n) denote some proposition. i. Verify statement P (n) is true for the smallest value of n (usually 1). ii. Assume the statement P (n) is true for some value k < n and prove it also true for k + 1. iii. If P (1) holds, then by point ii, P () holds and so on up to n. To understand the justification for the Principle of Mathematical Induction, consider the following. For each natural number n, let P (n) denote a proposition (that is either true or false). We suppose that we have proved that P (1) is true, and that if P (k) is true then P (k + 1) is true. Now P (1) is true. If P (1) is true then P () is true. Moreover P (1) is true. Therefore P () is true. If P () is true then P (3) is true. Moreover P () is true. Therefore P (3) is true. If P (3) is true then P (4) is true. Moreover P (3) is true. Therefore P (4) is true. : : : : : : If P (n ) is true then P (n 1) is true. Moreover P (n ) is true.

4 4 CHAPTER 6. MATHEMATICAL INDUCTION AND DIFFERENCE EQUATIONS 4 Therefore P (n 1) is true. If P (n 1) is true then P (n) is true. Moreover P (n 1) is true. Therefore P (n) is true. The pattern exhibited in these statements should convince you that P (n) is true for any natural number n, no matter how large..4 Examples Summation Formulae Example We claim that n i = n(n + 1) for all n N, where n i = n We prove this result using the Principle of Mathematical Induction. Let P (n) = n(n + 1) We can verify statement P (n) is true for the smallest value of n i.e., n = 1. So P (1) = 1(1 + 1) = 1 Therefore P (1) is true. Now assume the statement P (n) is true for some value k < n and prove it also true for k + 1. So we assume the following statement to be true P (k) = k i = k(k + 1) We must now prove that the following statement is true k+1 P (k + 1) = i = (k + 1)(k + )

5 5 CHAPTER 6. MATHEMATICAL INDUCTION AND DIFFERENCE EQUATIONS 5 We can do so as follows k+1 P (k + 1) = i = = = = = = [ ] k + (k + 1) k i + (k + 1) k(k + 1) + (k + 1) k(k + 1) + (k + 1) (k + 1)(k + ) k+1 i We can now conclude from the Principle of Mathematical Induction that P (n) is true for all natural numbers, which is the result we set out to prove. Example We claim that for all n N, where n i = n(n + 1)(n + 1) 6 n i = n We prove this result using the Principle of Mathematical Induction. Let P (n) = n(n + 1)(n + 1) 6 We can verify statement P (n) is true for the smallest value of n i.e., n = 1. So P (1) = 1(1 + 1)( + 1) 6 = 1 Therefore P (1) is true. Now assume the statement P (n) is true for some value k < n and prove it also true for k + 1. So we assume the following statement to be true P (k) = k i = k(k + 1)(k + 1) 6

6 6 CHAPTER 6. MATHEMATICAL INDUCTION AND DIFFERENCE EQUATIONS 6 We must now prove that the following statement is true We can do so as follows k+1 P (k + 1) = i = k+1 P (k + 1) = i = = (k + 1)(k + )(k + 3) 6 [ k ] + (k + 1) k i + (k + 1) k(k + 1)(k + 1) = + (k + 1) 6 k(k + 1)(k + 1) + 6(k + 1) = [ 6 ] (k + 1) k(k + 1) + 6(k + 1) = 6 = (k + 1)(k + 7k + 6) 6 (k + 1)(k + )(k + 3) = 6 k+1 = i We can now conclude from the Principle of Mathematical Induction that P (n) is true for all natural numbers, which is the result we set out to prove. Example We claim that for all n N, where n i(i + 3) = n(n + 1)(n + 5) 3 n i(i + 3) = n(n + 3) We prove this result using the Principle of Mathematical Induction. Let P (n) = n(n + 1)(n + 5) 3 We can verify statement P (n) is true for the smallest value of n i.e., n = 1. So

7 7 CHAPTER 6. MATHEMATICAL INDUCTION AND DIFFERENCE EQUATIONS 7 P (1) = 1(1 + 1)(1 + 5) 3 = 4 Therefore P (1) is true. Now assume the statement P (n) is true for some value k < n and prove it also true for k + 1. So we assume the following statement to be true P (k) = k i(i + 3) = k(k + 1)(k + 5) 3 We must now prove that the following statement is true k+1 P (k + 1) = i(i + 3) = (k + 1)(k + )(k + 6) 3 We can do so as follows k+1 P (k + 1) = i(i + 3) = = [ ] k(k + 3) + (k + 1)(k + 4) k i(i + 3) + (k + 1)(k + 4) k(k + 1)(k + 5) = + (k + 1)(k + 4) 3 k(k + 1)(k + 5) + 3(k + 1)(k + 4) = [ 3 ] (k + 1) k(k + 5) + 3(k + 4) = 3 = (k + 1)(k + 8k + 1) 3 (k + 1)(k + )(k + 6) = 3 k+1 = i(i + 3) We can now conclude from the Principle of Mathematical Induction that P (n) is true for all natural numbers, which is the result we set out to prove.

8 8 CHAPTER 6. MATHEMATICAL INDUCTION AND DIFFERENCE EQUATIONS 8 Example We claim that for all n N, where n 5 i i = 5 ( ) (4n 1)5 n n 5 i i = n n We prove this result using the Principle of Mathematical Induction. Let P (n) = 5 n n. We can verify statement P (n) is true for the smallest value of n i.e., n = 1. So P (1) = = 5. Therefore P (1) is true. Now assume the statement P (n) is true for some value k < n and prove it also true for k + 1. So we assume the following statement to be true P (k) = k 5 i i = 5 ( ) (4k 1)5 k We must now prove that the following statement is true k+1 P (k + 1) = 5 i i = 5 ( ) (4(k + 1) 1)5 k We can do so as follows k+1 P (k + 1) = 5 i i = k 5 i i + 5 k+1 (k + 1) = 5 ( ) (4k 1)5 k k+1 (k + 1) 16 = 5 ) ((4k 1)5 k (k + 1)5 k 16 = 5 ( ) (0k + 15)5 k = 5 ( ) (4k + 3)5 k = 5 ( ) (4(k + 1) 1)5 k = k+1 5 i i We can now conclude from the Principle of Mathematical Induction that P (n) is true for all natural numbers, which is the result we set out to prove.

9 9 CHAPTER 6. MATHEMATICAL INDUCTION AND DIFFERENCE EQUATIONS 9 Exercise i Prove using the Principle of Mathematical Induction n i 3 = n (n + 1) 4 ii Prove using the Principle of Mathematical Induction n (i 1) = n(n 1)(n + 1) 3 iii Prove using the Principle of Mathematical Induction n i(i + ) = n(n + 1)(n + 7) 6

10 10 CHAPTER 6. MATHEMATICAL INDUCTION AND DIFFERENCE EQUATIONS 10 3 Difference Equations 3.1 Introduction Definition A sequence is a function which maps the natural numbers to the real numbers. f : N R Let a particular sequence be defined by the following general term u n = 5. n 1 To generate the first 4 terms of this sequence we have u 1 = = 5. 0 = 5 u = 5. 1 = 5. 1 = 10 u 3 = = 5. = 0 u 4 = = 5. 3 = 40 Hence the sequence is 5, 10, 0, 40,... Exercise For the sequence defined by the following general term u n = n n + 1 find the terms u 1, u, u 3, u 4, u 5. Many sequences have had explicit formulas for their terms. That is, sequences for which we could write the n th or general term as u n = f(n) for some known function f. For example u n = n (n 1) then it is an easy matter to compute explicitly, say, u 4 = 7 or u 5 = 9. In such cases we are able to compute any given term in the sequence without reference to any other terms in the sequence. However, it is often the case in applications that we do not begin with an explicit formula for the terms of a sequence; rather, we may know only some relationship between the various terms.

11 11 CHAPTER 6. MATHEMATICAL INDUCTION AND DIFFERENCE EQUATIONS Recurrence Relations Definition A recurrence relation is a mathematical relationship expressing f n as some combination of f i with i < n. Example The most famous example of a recurrence relation is the one defining the Fibonacci numbers, f n = f n 1 + f n for n 3 and with f 1 = f = 1. The Fibonacci numbers are computed as follows: f 3 = f + f 1 = = f 4 = f 3 + f = + 1 = 3 f 5 = f 4 + f 3 = 3 + = 5 f 6 = f 5 + f 4 = = 8 f 7 = f 6 + f 5 = = 13 f 8 = f 7 + f 6 = = 1 f 9 = f 8 + f 7 = = 34 So we get the following sequence 1, 1,, 3, 5, 8, 13, 1, 34, 55,... Remark In his book, written in 10, the mathematician Fibonacci ( ) posed a problem concerning the growth of the number of rabbits in a certain area. The problem can be phased as follows: A young pair of rabbits, one of each sex, is placed on an island. Assuming that rabbits do not breed until they are two months old and after they are two months old, each pair of rabbits produces another pair each month, how many pairs are there after n months. Exercise Compute the first five terms of the following recurrence relations: i u n = u n for n 1 with u 1 = 1. ii u n = 3u n 1 + u n for n 1 with u 1 = 1 and u = 1. iii u n = u n 1 + u n for n with u 1 = u = 1.

12 1 CHAPTER 6. MATHEMATICAL INDUCTION AND DIFFERENCE EQUATIONS 1 Definition Consider the sequence u 1, u, u 3,... A function f : Z + Z + is recursively defined if u k = f(u k 1, u k,..., u, u 1 ) A difference equation may be defined as a rule which expresses each member of the sequence, from some point on, in terms of the previous member of the sequence. u k u k 1 = f(u k,..., u, u 1 ) Remark For the sequence u 1, u, u 3, u 4... we have a first order recurrence relation u n = f(u n 1 ) and first order difference equation u n u n 1 = f(u n 1 ) Example For the first order recurrence relation u n = n(u n 1 ) (n =, 3, 4,...) and the initial condition u 1 = 1 determine the sequence as far as u 5. Solution: In the recurrence relation we allow n =, 3, 4, 5 to get u = (u 1 ) = 1 = u 3 = 3(u ) = 3 = 1 u 4 = 4(u 3 ) = 4 1 = 576 u 5 = 5(u 4 ) = =

13 13 CHAPTER 6. MATHEMATICAL INDUCTION AND DIFFERENCE EQUATIONS 13 Note A recurrence relation may be converted to a difference equation by subtracting u n 1 from both sides. Correspondently a difference equation may be converted to a recurrence relation by moving the u n 1 to the other side of the equation. For the recurrence relation u n = n(u n 1 ) we have the corresponding difference equation u n u n 1 = n(u n 1 ) u n 1 Remembering that the L.H.S. is now the difference between a member of the sequence and the previous member of the sequence with u 1 = 1 we have u u 1 = (u 1 ) u 1 = 1 1 = 1 u 3 u = 3(u ) u = 3 = 10 u 4 u 3 = 4(u 3 ) u 3 = = 564 u 5 u 4 = 5(u 4 ) u 4 = = which again yields the sequence 1,, 1, 576, Recurrance Relation Dif f erence Equation u n = f(u n 1 ) u n u n 1 = f(u n 1 )

14 14 CHAPTER 6. MATHEMATICAL INDUCTION AND DIFFERENCE EQUATIONS 14 Example For the second order recurrence relation u n = u n 1 + (u n ) 3 (n 3) with initial conditions u 1 = 1 and u = determine the solution as far as u 5. Solution: In the recurrence relation we allow n = 3, 4, 5 to get u 3 = u + (u 1 ) 3 = = 5 u 4 = u 3 + (u ) 3 = = 18 u 5 = u 4 + (u 3 ) 3 = = 161 Notice that as the order increases the number of required initial conditions increase correspondently. Also we will only consider first order recurrence relations and corresponding first order difference equations. Exercise For the first order recurrence relation u n = u n 1 + (u n 1 ) 3 and the initial condition u 1 = 1 determine the sequence as far as u 5. Write down the corresponding difference equation and again determine the solution as far as u Solving Recurrence Relations To solve a recurrence relation involving the sequence u 1, u, u 3,... is to find an explicit formula for the general term u n. The process of repeatedly substituting old values back into the recurrence relation to produce new ones is called iteration. It is clear that this process will eventually produce u n for any value of u. While iteration has the advantage of being repetitive, and therefore easy to apply, it has drawbacks. For example, if you wished to calculate u 100, say, by iteration then you would also have to write down all the preceding members of the sequence u 1, u, u 3,..., u 98, u 99 regardless if you wanted them or not. For some recurrence relations it is possible to find a simple formula giving the solution u n as a function of u. Such a formula is said to provide a closed-form solution of the recurrence relation and

15 15 CHAPTER 6. MATHEMATICAL INDUCTION AND DIFFERENCE EQUATIONS 15 enables u 100, say, to be calculated directly, without any need to calculate all the preceding members of the sequence. The following examples illustrate how a closed form solution may be guessed and then checked. Example Guess a formula for the solution of the first order recurrence relation u n = 1 + u n u n 1 (n ) with initial conditions u 1 = 0. Solution: First calculate u 1, u, u 3, u 4. From the recurrence relation (or corresponding difference equation) and the initial condition it follows by iteration that these four numbers are respectively 0, 3, 8, 15. These numbers look very close to the perfect squares 1, 4, 9, 16. More precisely u 1 = 1 1 u = 1 u 3 = 3 1 u 4 = 4 1 This leads to the guess u n = n 1 for all n 1. Remark We can show that the formula u n = n 1 satisfies both the initial condition and the difference equation as follows: At n = 1 we get the initial condition u 1 = 0. At n = n 1 we get u n 1 = (n 1) 1. Substituting into the difference equation we get u n = 1 + u n u n 1 = (n 1) + (n 1) as n 1 = (n 1) + (n 1) = n 1 = u n Thus the difference equation is satisfied.

16 16 CHAPTER 6. MATHEMATICAL INDUCTION AND DIFFERENCE EQUATIONS Linear Difference Equations with Constant Coefficients Now that we have defined a recurrence relation (and corresponding difference equation) and sought to find a solution of such equations we should proceed by classifying different types of difference equations and consider how to determine their solution in a more structured way. In ordinary algebra, we call y = mx + c a linear equation. Certain difference equations look a little like this, namely those of the form u n = αu n 1 + β and are examples of first-order linear difference equations. Here, α and β are constants. They may, in more advanced cases, take the form of functions. So this is a first-order linear difference equation with constant coefficients. Definition If the terms of the difference equation that involve sequence variables (i.e., which contain u s n ) involve no product of sequence variables, nor functions of sequence variables, then we call the difference equation linear. Otherwise the difference equation is termed non-linear. Note that the restriction apply only to the terms involving the sequence variable and not to any added terms which don t involve the sequence variables. To formalize the definition of the order of a difference equation we have the following definition: Definition If from the highest subscript of the difference equation you subtract the lowest subscript the resulting number is called the order of the difference equation. The following are first-order linear difference equations with constant coefficients u n = u n 1 u n = 3u n The following are second-order linear difference equations with constant coefficients u n = 3u n + n u n = 5u n + u n 1 u n = 3u n 4u n 1 6 The following are non-linear difference equations with constant coefficients u n = (u n 1 ) u n = (u n )(u n 1 )

17 17 CHAPTER 6. MATHEMATICAL INDUCTION AND DIFFERENCE EQUATIONS First-Order Linear Difference Equation u n = f(n) u n = f(u n 1 ) u n u n 1 = f(u n 1 ) Theorem For a first-order linear difference equation of the form: where u 1 = C a solution is of the form u n = αu n 1 u n = Cα n 1 Example For the first-order linear difference equation u n 3u n 1 = 0 with initial condition u 1 = 5 notice that it is equivalent to the difference equation u n = 3u n 1 and has a solution is given as u n = 5.(3) n

18 18 CHAPTER 6. MATHEMATICAL INDUCTION AND DIFFERENCE EQUATIONS Second-Order Linear Difference Equation u n = f(n) u n = f(u n, u n 1 ) u n u n 1 = f(u n, u n 1 ) Theorem 3 For a second-order linear difference equation of the form: u n+ αu n+1 + βu n = 0 where α and β are constants, a solution is of the form u n = l.a n + m.b n where a and b are the solutions of the quadratic equation (characteristic equation) x αx + β = 0. Example To solve the second-order difference equation u n+ 8u n u n = 0 given that u 1 = 1 and u = 7 it has characteristic equation x 8x + 15 = 0. This equation has solutions x 1 = 5 and x = 3. Hence the solution of this second-order difference equation is of the form u n = l.5 n + m.3 n Now evaluating this expressions at each of the initial conditions we get

19 19 CHAPTER 6. MATHEMATICAL INDUCTION AND DIFFERENCE EQUATIONS 19 u 1 = 1 l m.3 1 = 1 5l + 3m = 1 u = 7 l.5 + m.3 = 7 5l + 9m = 7 Now solving these two simultaneous equations * for l and m yieldsl = 1 and m =. So, the solution of the difference equation is u n =.3 n 5 n As an exercise check that this is the correct solution. Exercise Show that u n = 4.3 n + n is a solution of the difference equation u n+ 5u n+1 + 6u n = 0 Exercise Solve the difference equation where u 1 = 9 and u = 41. 3u n+ 11u n+1 + 6u n = 0 Exercise The solution of the difference equation u n+ 9u n u n = 0 is given as u n = a.7 n n. Find the value of a if u = 41.

20 0 CHAPTER 6. MATHEMATICAL INDUCTION AND DIFFERENCE EQUATIONS The Fibonacci Sequence Return again to the most famous example of a recurrence relation that defines the Fibonacci numbers, for n 1 and with f 1 = f = 1. f n+ = f n+1 + f n The Fibonacci numbers are computed as follows: f 3 = f + f 1 = = f 4 = f 3 + f = + 1 = 3 f 5 = f 4 + f 3 = 3 + = 5 f 6 = f 5 + f 4 = = 8 f 7 = f 6 + f 5 = = 13 f 8 = f 7 + f 6 = = 1 f 9 = f 8 + f 7 = = 34 So we get the following sequence 1, 1,, 3, 5, 8, 13, 1, 34, 55,... Each term in the sequence (after the second) is the sum of the two that immediately proceed it. Now to find an explicit formulae for the Fibonacci sequence notice that the sequence is linear second-order difference equation f n+ f n+1 f n = 0 with f 1 = 1 and f = 1 it has characteristic equation x x 1 = 0. This equation has solutions x 1 = 1 + 5, x = 1 5 Hence the solution of this second-order difference equation is of the form ( ) n ( f n = l. + m. ) n Now evaluating this expressions at each of the initial conditions we get

21 1 CHAPTER 6. MATHEMATICAL INDUCTION AND DIFFERENCE EQUATIONS 1 ( ) ( ) f 1 = 1 l. + m. = 1 ( ) ( ) f = 1 l. + m. = 1 Solving these two equations for l and m yields l = 1 5, m = 1 5 Therefore an explicit formula for the Fibonacci sequence is f n = 1 5. ( ) n 1 ( ) n Exercise The most famous example of a recursive defined sequence is the one defining the Fibonacci sequence, f n = f n 1 + f n for n 3 and with f 1 = f = 1. i Prove, using the Principle of Mathematical Induction, that n fi = f n f n+1 for all n N. ii Prove, using the Principle of Mathematical Induction, that for all n N. n f i = f n+ 1

22 CHAPTER 6. MATHEMATICAL INDUCTION AND DIFFERENCE EQUATIONS 3.6 Recursive Algorithms A recursive function is a function that invokes itself. A recursive algorithm is an algorithm that contains a recursive function. Recursion is a powerful, elegant, and a natural way to solve a large class of problems. A problem in this class can be solved using a divide-and-conquer technique in which the problem is decomposed into problems of the same type as the original problem. Each subproblem, in turn, is decomposed further until the process yields subproblems that can be solved in a straightforward way. Finally, solutions to the subproblems are combined to obtain a solution to the original problem. An example of a recursive function is n factorial, i.e., f(n) = n! = n(n 1)(n ) = n(n 1)! This representation shows how to decompose the original problem (to compute n!) into increasingly simpler subproblems of computing (n 1)!, and computing (n )! etc., until the process reaches the straightforward problem of computing 0!. The solutions to these subproblems can then be combined, by multiplying, to solve the original problem. So, for example, the problem of computing 5! is reduced to computing 4!; the problem of computing 4! is reduced to computing 3!; and so on until the computing of 0!. P roblem Solution 0! 1 1! 1.0!!.1! 3! 3.! 4! 4.3! 5! 5.4! A recursive algorithm that computes factorials is as follows: Algorithm: Factorial n Input: n, an integer greater than or equal to zero. Output: n! 1. factorial(n) {. if (n==0) 3. return 1 4. return n*factorial(n-1) 5. }

23 3 CHAPTER 6. MATHEMATICAL INDUCTION AND DIFFERENCE EQUATIONS 3 We can use the Principle of Mathematical Induction to prove that the algorithm correctly returns the correct value of n!. At n = 0, the algorithm returns the correct value for 0! = 1. Assume algorithm correctly returns the value of (n 1)!, n N. Now we must prove that algorithm correctly returns the value of n!. If the function correctly returns the value of (n 1)!, then line 4., the function correctly computes the value n.(n 1)! = n!. Therefore, by the Principle of Mathematical Induction, the algorithm correctly returns the value of n!, n N. Remark There is an important link between mathematical induction and recursive algorithms. The basic step of a proof by mathematical induction corresponds to the basic case(s) of a recursive function, and the inductive step of a proof corresponds to the part of a recursive function where the function calls itself. Example A robot can take steps of 1 meter or meters. Write a recursive algorithm to calculate the number of ways the robot can walk n meters. Firstly, some analysis Distance Sequence of Steps N umber of ways to walk , 1 or 3 1, 1, 1 or 1, or, , 1, 1, 1 or 1, 1, or 1,, 1 or, 1, 1, or, 5 Let walk(n) denote the number of ways the robot can walk n meters. We have observed that walk(1) = 1, walk() =

24 4 CHAPTER 6. MATHEMATICAL INDUCTION AND DIFFERENCE EQUATIONS 4 Now suppose that n >. The robot can begin by taking a step of 1 meter or a step of meters. If the robot begins by taking a 1-meter step, a distance of n 1 meters remains. By definition the remainder of the walk can be completed in walk(n 1) ways. Similarly, if the robot begins by taking a -meter step, a distance of n meters remains. By definition the remainder of the walk can be completed in walk(n ) ways. Since the walk must begin with a 1-meter step or a -meter step, all of the ways to walk n meters are accounted for. We obtain the formula So, for example, walk(n) = walk(n 1) + walk(n ) walk(4) = walk(3) + walk() = 3 + = 5 We can write a recursive algorithm to compute walk(n) by translating this equation directly into an algorithm. This algorithm computes the function defined by 1, n = 1 walk(n) =, n = walk(n 1) + walk(n ) n >. Algorithm: Robot Walking Input: n, an integer greater than or equal to zero. Output: walk(n) 1. walk(n) {. if (n==1 n==) 3. return n 4. return walk(n-1)+walk(n-) 5. } Example i Use the formulas s 1 =, s n = s n 1 + n, n, to write a recursive algorithm that computes s n = n

25 5 CHAPTER 6. MATHEMATICAL INDUCTION AND DIFFERENCE EQUATIONS 5 ii Give a proof, using mathematical induction, that your algorithm from part i is correct. i Input: Natural Number n. Output: n 1. sum(s,n) {. if (n==1) 3. return 4. return sum(n-1)+n 5. } ii Using the Principle of Mathematical Induction we can prove that the algorithm is correct. Let sum(n) = n We can verify statement sum(n) is true for the smallest value of n i.e., n = 1. So sum(1) = Therefore, if n = 1, we correctly return. Now assume the statement sum(k 1) is true for some value k < n and prove it also true for k. So we assume the following statement to be true sum(k 1) = (k 1) We must now prove that the following statement is true sum(k) = k We can do so as follows sum(k) = (k 1) + k = sum(k 1) + k which is the correct value. Hence sum(k 1) sum(k) We can now conclude from the Principle of Mathematical Induction that P (n) is true for all natural numbers, which is the result we set out to prove.

26 6 CHAPTER 6. MATHEMATICAL INDUCTION AND DIFFERENCE EQUATIONS 6 Exercise i Write a recursive algorithm to find the maximum of a finite sequence of numbers. ii Give a proof, using mathematical induction, that your algorithm from part i is correct. Input: The sequence s 1, s,...s n and the length n of the sequence. Output: The maximum value of the sequence. 1. findmax(s, n) {. if (n==1) 3. return s 1 4. x = findmax(s, n 1) 5. if(x > s n ) 6. return x 7. else 8. return s n 9. } Example Consider the following recursive algorithm Input: Natural number n Output: Sequence 1. if n=1 then. u else 4. u n 1 + u n u n 1 i Trace the algorithm as far as u 5. ii By inspection, conjecture a non-recursive formula for the n th term of the sequence. iii Use the Principle of Mathematical Induction to prove the formula from part ii is correct. iv Using the non-recursive formula from part ii, write an iterative algorithm to output the first n terms of the sequence.

27 7 CHAPTER 6. MATHEMATICAL INDUCTION AND DIFFERENCE EQUATIONS 7 Firstly, u 1 = 0, hence u = 1 + u u 1 = = 3 u 3 = 1 + u u = = 8 u 4 = 1 + u u 3 = = 15 u 5 = 1 + u u 4 = = 4... So, our sequence is, 0, 3, 8, 15, 4,... By inspection, we conjecture the formula u n = f(n) = n 1 for all n 1. Using the Principle of Mathematical Induction we can prove that this formula is correct. Let P (n) = n 1. We can verify statement P (n) is true for the smallest value of n i.e., n = 1. So P (1) = 1 1 = 0. Therefore P (1) is true. Now assume the statement P (n) is true for some value k < n and prove it also true for k + 1. So we assume the following statement to be true P (k) = k 1 We must now prove that the following statement is true We can do so as follows P (k + 1) = (k + 1) 1 P (k + 1) = 1 + u k u k = 1 + k k 1 = 1 + k 1 + k = 1 + k 1 + k = k + k = (k + 1) 1 = P (k + 1) We can now conclude from the Principle of Mathematical Induction that P (n) is true for all natural numbers, which is the result we set out to prove. Finally, using this non-recursive formula from part ii, we can write an iterative algorithm to output the first n terms of the sequence.

28 8 CHAPTER 6. MATHEMATICAL INDUCTION AND DIFFERENCE EQUATIONS 8 Input: Natural number n Output: Sequence 1. for n=1 to n. u n n 1 Example Consider the following recursive algorithm Input: Natural number n Output: Sequence 1. if n=1 then. u if n= then 4. u 7 5. else 6. u n 8u n 1 15u n i Trace the algorithm as far as u 5. ii Determine a non-recursive formula for the n th term of the sequence. iii Using the non-recursive formula from part ii, write an iterative algorithm to output the first n terms of the sequence. Firstly, u 1 = 1 and u = 7, hence u 3 = 8u 15u 1 = 8.( 7) 15.(1) = 71 u 4 = 8u 3 15u = 8.( 71) 15.( 7) = 463 u 5 = 8u 4 15u 3 = 8.( 463) 15.( 71) = So, our sequence is, 1, 7, 71, 463, 639,... Now u n = 8u n 1 15u n u n 8u n u n = 0

29 9 CHAPTER 6. MATHEMATICAL INDUCTION AND DIFFERENCE EQUATIONS 9 This is equivalent to the following second order linear difference equation u n+ 8u n u n = 0 Using Theorem 3. this equation may be solved to yield the non-recursive formula f(n). Firstly, its has characteristic equation x 8x + 15 = 0 This equation has solutions x 1 = 5 and x = 3 Hence the solution of this second-order difference equation is of the form u n = l.5 n + m.3 n Now evaluating this expressions at each of the initial conditions we get u 1 = 1 l m.3 1 = 1 5l + 3m = 1 u = 7 l.5 + m.3 = 7 5l + 9m = 7 Now solving these two simultaneous equations * for l and m yields l = 1, m = So, the solution of the difference equation is u n = f(n) =.3 n 5 n Finally, using this non-recursive formula from part ii, we can write an iterative algorithm to output the first n terms of the sequence. Input: Natural number n Output: Sequence 1. for n=1 to n. u n.3 n 5 n

30 30 CHAPTER 6. MATHEMATICAL INDUCTION AND DIFFERENCE EQUATIONS 30 Exercise Consider the following recursive algorithm Input: Natural number n Output: Sequence 1. if n=1 then. u if n= then 4. u else 6. u n 10u n 1 16u n i Trace the algorithm as far as u 4. ii Determine a non-recursive formula for the n th term of the sequence. iii Using the non-recursive formula from part ii, write an iterative algorithm to output the first n terms of the sequence.

31 31 CHAPTER 6. MATHEMATICAL INDUCTION AND DIFFERENCE EQUATIONS 31 Contents 1 Introduction 1 The Principle of Mathematical Induction 1.1 Integers and Natural Numbers The Well-Ordered Principle Introduction to the Principle of Mathematical Induction Examples Summation Formulae Difference Equations Introduction Recurrence Relations Solving Recurrence Relations Linear Difference Equations with Constant Coefficients First-Order Linear Difference Equation Second-Order Linear Difference Equation The Fibonacci Sequence Recursive Algorithms

CS 103X: Discrete Structures Homework Assignment 3 Solutions

CS 103X: Discrete Structures Homework Assignment 3 Solutions CS 103X: Discrete Structures Homework Assignment 3 s Exercise 1 (20 points). On well-ordering and induction: (a) Prove the induction principle from the well-ordering principle. (b) Prove the well-ordering

More information

3. Mathematical Induction

3. Mathematical Induction 3. MATHEMATICAL INDUCTION 83 3. Mathematical Induction 3.1. First Principle of Mathematical Induction. Let P (n) be a predicate with domain of discourse (over) the natural numbers N = {0, 1,,...}. If (1)

More information

Math 55: Discrete Mathematics

Math 55: Discrete Mathematics Math 55: Discrete Mathematics UC Berkeley, Fall 2011 Homework # 5, due Wednesday, February 22 5.1.4 Let P (n) be the statement that 1 3 + 2 3 + + n 3 = (n(n + 1)/2) 2 for the positive integer n. a) What

More information

Basic Proof Techniques

Basic Proof Techniques Basic Proof Techniques David Ferry dsf43@truman.edu September 13, 010 1 Four Fundamental Proof Techniques When one wishes to prove the statement P Q there are four fundamental approaches. This document

More information

Introduction. Appendix D Mathematical Induction D1

Introduction. Appendix D Mathematical Induction D1 Appendix D Mathematical Induction D D Mathematical Induction Use mathematical induction to prove a formula. Find a sum of powers of integers. Find a formula for a finite sum. Use finite differences to

More information

Mathematical Induction. Lecture 10-11

Mathematical Induction. Lecture 10-11 Mathematical Induction Lecture 10-11 Menu Mathematical Induction Strong Induction Recursive Definitions Structural Induction Climbing an Infinite Ladder Suppose we have an infinite ladder: 1. We can reach

More information

8 Primes and Modular Arithmetic

8 Primes and Modular Arithmetic 8 Primes and Modular Arithmetic 8.1 Primes and Factors Over two millennia ago already, people all over the world were considering the properties of numbers. One of the simplest concepts is prime numbers.

More information

Collatz Sequence. Fibbonacci Sequence. n is even; Recurrence Relation: a n+1 = a n + a n 1.

Collatz Sequence. Fibbonacci Sequence. n is even; Recurrence Relation: a n+1 = a n + a n 1. Fibonacci Roulette In this game you will be constructing a recurrence relation, that is, a sequence of numbers where you find the next number by looking at the previous numbers in the sequence. Your job

More information

SECTION 10-2 Mathematical Induction

SECTION 10-2 Mathematical Induction 73 0 Sequences and Series 6. Approximate e 0. using the first five terms of the series. Compare this approximation with your calculator evaluation of e 0.. 6. Approximate e 0.5 using the first five terms

More information

Section IV.1: Recursive Algorithms and Recursion Trees

Section IV.1: Recursive Algorithms and Recursion Trees Section IV.1: Recursive Algorithms and Recursion Trees Definition IV.1.1: A recursive algorithm is an algorithm that solves a problem by (1) reducing it to an instance of the same problem with smaller

More information

Sample Induction Proofs

Sample Induction Proofs Math 3 Worksheet: Induction Proofs III, Sample Proofs A.J. Hildebrand Sample Induction Proofs Below are model solutions to some of the practice problems on the induction worksheets. The solutions given

More information

HOMEWORK 5 SOLUTIONS. n!f n (1) lim. ln x n! + xn x. 1 = G n 1 (x). (2) k + 1 n. (n 1)!

HOMEWORK 5 SOLUTIONS. n!f n (1) lim. ln x n! + xn x. 1 = G n 1 (x). (2) k + 1 n. (n 1)! Math 7 Fall 205 HOMEWORK 5 SOLUTIONS Problem. 2008 B2 Let F 0 x = ln x. For n 0 and x > 0, let F n+ x = 0 F ntdt. Evaluate n!f n lim n ln n. By directly computing F n x for small n s, we obtain the following

More information

Notes on Determinant

Notes on Determinant ENGG2012B Advanced Engineering Mathematics Notes on Determinant Lecturer: Kenneth Shum Lecture 9-18/02/2013 The determinant of a system of linear equations determines whether the solution is unique, without

More information

k, then n = p2α 1 1 pα k

k, then n = p2α 1 1 pα k Powers of Integers An integer n is a perfect square if n = m for some integer m. Taking into account the prime factorization, if m = p α 1 1 pα k k, then n = pα 1 1 p α k k. That is, n is a perfect square

More information

Recursive Algorithms. Recursion. Motivating Example Factorial Recall the factorial function. { 1 if n = 1 n! = n (n 1)! if n > 1

Recursive Algorithms. Recursion. Motivating Example Factorial Recall the factorial function. { 1 if n = 1 n! = n (n 1)! if n > 1 Recursion Slides by Christopher M Bourke Instructor: Berthe Y Choueiry Fall 007 Computer Science & Engineering 35 Introduction to Discrete Mathematics Sections 71-7 of Rosen cse35@cseunledu Recursive Algorithms

More information

Discrete Mathematics and Probability Theory Fall 2009 Satish Rao, David Tse Note 2

Discrete Mathematics and Probability Theory Fall 2009 Satish Rao, David Tse Note 2 CS 70 Discrete Mathematics and Probability Theory Fall 2009 Satish Rao, David Tse Note 2 Proofs Intuitively, the concept of proof should already be familiar We all like to assert things, and few of us

More information

16. Recursion. COMP 110 Prasun Dewan 1. Developing a Recursive Solution

16. Recursion. COMP 110 Prasun Dewan 1. Developing a Recursive Solution 16. Recursion COMP 110 Prasun Dewan 1 Loops are one mechanism for making a program execute a statement a variable number of times. Recursion offers an alternative mechanism, considered by many to be more

More information

MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS

MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS Systems of Equations and Matrices Representation of a linear system The general system of m equations in n unknowns can be written a x + a 2 x 2 + + a n x n b a

More information

Mathematical Induction

Mathematical Induction Mathematical Induction (Handout March 8, 01) The Principle of Mathematical Induction provides a means to prove infinitely many statements all at once The principle is logical rather than strictly mathematical,

More information

Continued Fractions and the Euclidean Algorithm

Continued Fractions and the Euclidean Algorithm Continued Fractions and the Euclidean Algorithm Lecture notes prepared for MATH 326, Spring 997 Department of Mathematics and Statistics University at Albany William F Hammond Table of Contents Introduction

More information

COMP 250 Fall 2012 lecture 2 binary representations Sept. 11, 2012

COMP 250 Fall 2012 lecture 2 binary representations Sept. 11, 2012 Binary numbers The reason humans represent numbers using decimal (the ten digits from 0,1,... 9) is that we have ten fingers. There is no other reason than that. There is nothing special otherwise about

More information

The Prime Numbers. Definition. A prime number is a positive integer with exactly two positive divisors.

The Prime Numbers. Definition. A prime number is a positive integer with exactly two positive divisors. The Prime Numbers Before starting our study of primes, we record the following important lemma. Recall that integers a, b are said to be relatively prime if gcd(a, b) = 1. Lemma (Euclid s Lemma). If gcd(a,

More information

8 Divisibility and prime numbers

8 Divisibility and prime numbers 8 Divisibility and prime numbers 8.1 Divisibility In this short section we extend the concept of a multiple from the natural numbers to the integers. We also summarize several other terms that express

More information

Answer Key for California State Standards: Algebra I

Answer Key for California State Standards: Algebra I Algebra I: Symbolic reasoning and calculations with symbols are central in algebra. Through the study of algebra, a student develops an understanding of the symbolic language of mathematics and the sciences.

More information

Zeros of a Polynomial Function

Zeros of a Polynomial Function Zeros of a Polynomial Function An important consequence of the Factor Theorem is that finding the zeros of a polynomial is really the same thing as factoring it into linear factors. In this section we

More information

Equations, Inequalities & Partial Fractions

Equations, Inequalities & Partial Fractions Contents Equations, Inequalities & Partial Fractions.1 Solving Linear Equations 2.2 Solving Quadratic Equations 1. Solving Polynomial Equations 1.4 Solving Simultaneous Linear Equations 42.5 Solving Inequalities

More information

CHAPTER 5. Number Theory. 1. Integers and Division. Discussion

CHAPTER 5. Number Theory. 1. Integers and Division. Discussion CHAPTER 5 Number Theory 1. Integers and Division 1.1. Divisibility. Definition 1.1.1. Given two integers a and b we say a divides b if there is an integer c such that b = ac. If a divides b, we write a

More information

Creating, Solving, and Graphing Systems of Linear Equations and Linear Inequalities

Creating, Solving, and Graphing Systems of Linear Equations and Linear Inequalities Algebra 1, Quarter 2, Unit 2.1 Creating, Solving, and Graphing Systems of Linear Equations and Linear Inequalities Overview Number of instructional days: 15 (1 day = 45 60 minutes) Content to be learned

More information

CONTINUED FRACTIONS AND PELL S EQUATION. Contents 1. Continued Fractions 1 2. Solution to Pell s Equation 9 References 12

CONTINUED FRACTIONS AND PELL S EQUATION. Contents 1. Continued Fractions 1 2. Solution to Pell s Equation 9 References 12 CONTINUED FRACTIONS AND PELL S EQUATION SEUNG HYUN YANG Abstract. In this REU paper, I will use some important characteristics of continued fractions to give the complete set of solutions to Pell s equation.

More information

Math 55: Discrete Mathematics

Math 55: Discrete Mathematics Math 55: Discrete Mathematics UC Berkeley, Spring 2012 Homework # 9, due Wednesday, April 11 8.1.5 How many ways are there to pay a bill of 17 pesos using a currency with coins of values of 1 peso, 2 pesos,

More information

Math Review. for the Quantitative Reasoning Measure of the GRE revised General Test

Math Review. for the Quantitative Reasoning Measure of the GRE revised General Test Math Review for the Quantitative Reasoning Measure of the GRE revised General Test www.ets.org Overview This Math Review will familiarize you with the mathematical skills and concepts that are important

More information

Mathematical Induction. Mary Barnes Sue Gordon

Mathematical Induction. Mary Barnes Sue Gordon Mathematics Learning Centre Mathematical Induction Mary Barnes Sue Gordon c 1987 University of Sydney Contents 1 Mathematical Induction 1 1.1 Why do we need proof by induction?.... 1 1. What is proof by

More information

Solving Rational Equations

Solving Rational Equations Lesson M Lesson : Student Outcomes Students solve rational equations, monitoring for the creation of extraneous solutions. Lesson Notes In the preceding lessons, students learned to add, subtract, multiply,

More information

Continued Fractions. Darren C. Collins

Continued Fractions. Darren C. Collins Continued Fractions Darren C Collins Abstract In this paper, we discuss continued fractions First, we discuss the definition and notation Second, we discuss the development of the subject throughout history

More information

This unit will lay the groundwork for later units where the students will extend this knowledge to quadratic and exponential functions.

This unit will lay the groundwork for later units where the students will extend this knowledge to quadratic and exponential functions. Algebra I Overview View unit yearlong overview here Many of the concepts presented in Algebra I are progressions of concepts that were introduced in grades 6 through 8. The content presented in this course

More information

Lecture 3: Finding integer solutions to systems of linear equations

Lecture 3: Finding integer solutions to systems of linear equations Lecture 3: Finding integer solutions to systems of linear equations Algorithmic Number Theory (Fall 2014) Rutgers University Swastik Kopparty Scribe: Abhishek Bhrushundi 1 Overview The goal of this lecture

More information

Indiana State Core Curriculum Standards updated 2009 Algebra I

Indiana State Core Curriculum Standards updated 2009 Algebra I Indiana State Core Curriculum Standards updated 2009 Algebra I Strand Description Boardworks High School Algebra presentations Operations With Real Numbers Linear Equations and A1.1 Students simplify and

More information

1.2. Successive Differences

1.2. Successive Differences 1. An Application of Inductive Reasoning: Number Patterns In the previous section we introduced inductive reasoning, and we showed how it can be applied in predicting what comes next in a list of numbers

More information

God created the integers and the rest is the work of man. (Leopold Kronecker, in an after-dinner speech at a conference, Berlin, 1886)

God created the integers and the rest is the work of man. (Leopold Kronecker, in an after-dinner speech at a conference, Berlin, 1886) Chapter 2 Numbers God created the integers and the rest is the work of man. (Leopold Kronecker, in an after-dinner speech at a conference, Berlin, 1886) God created the integers and the rest is the work

More information

PRIME FACTORS OF CONSECUTIVE INTEGERS

PRIME FACTORS OF CONSECUTIVE INTEGERS PRIME FACTORS OF CONSECUTIVE INTEGERS MARK BAUER AND MICHAEL A. BENNETT Abstract. This note contains a new algorithm for computing a function f(k) introduced by Erdős to measure the minimal gap size in

More information

Handout NUMBER THEORY

Handout NUMBER THEORY Handout of NUMBER THEORY by Kus Prihantoso Krisnawan MATHEMATICS DEPARTMENT FACULTY OF MATHEMATICS AND NATURAL SCIENCES YOGYAKARTA STATE UNIVERSITY 2012 Contents Contents i 1 Some Preliminary Considerations

More information

LINEAR EQUATIONS IN TWO VARIABLES

LINEAR EQUATIONS IN TWO VARIABLES 66 MATHEMATICS CHAPTER 4 LINEAR EQUATIONS IN TWO VARIABLES The principal use of the Analytic Art is to bring Mathematical Problems to Equations and to exhibit those Equations in the most simple terms that

More information

POLYNOMIAL FUNCTIONS

POLYNOMIAL FUNCTIONS POLYNOMIAL FUNCTIONS Polynomial Division.. 314 The Rational Zero Test.....317 Descarte s Rule of Signs... 319 The Remainder Theorem.....31 Finding all Zeros of a Polynomial Function.......33 Writing a

More information

26 Integers: Multiplication, Division, and Order

26 Integers: Multiplication, Division, and Order 26 Integers: Multiplication, Division, and Order Integer multiplication and division are extensions of whole number multiplication and division. In multiplying and dividing integers, the one new issue

More information

LEARNING OBJECTIVES FOR THIS CHAPTER

LEARNING OBJECTIVES FOR THIS CHAPTER CHAPTER 2 American mathematician Paul Halmos (1916 2006), who in 1942 published the first modern linear algebra book. The title of Halmos s book was the same as the title of this chapter. Finite-Dimensional

More information

1 Solving LPs: The Simplex Algorithm of George Dantzig

1 Solving LPs: The Simplex Algorithm of George Dantzig Solving LPs: The Simplex Algorithm of George Dantzig. Simplex Pivoting: Dictionary Format We illustrate a general solution procedure, called the simplex algorithm, by implementing it on a very simple example.

More information

MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS. + + x 2. x n. a 11 a 12 a 1n b 1 a 21 a 22 a 2n b 2 a 31 a 32 a 3n b 3. a m1 a m2 a mn b m

MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS. + + x 2. x n. a 11 a 12 a 1n b 1 a 21 a 22 a 2n b 2 a 31 a 32 a 3n b 3. a m1 a m2 a mn b m MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS 1. SYSTEMS OF EQUATIONS AND MATRICES 1.1. Representation of a linear system. The general system of m equations in n unknowns can be written a 11 x 1 + a 12 x 2 +

More information

This is a square root. The number under the radical is 9. (An asterisk * means multiply.)

This is a square root. The number under the radical is 9. (An asterisk * means multiply.) Page of Review of Radical Expressions and Equations Skills involving radicals can be divided into the following groups: Evaluate square roots or higher order roots. Simplify radical expressions. Rationalize

More information

a 1 x + a 0 =0. (3) ax 2 + bx + c =0. (4)

a 1 x + a 0 =0. (3) ax 2 + bx + c =0. (4) ROOTS OF POLYNOMIAL EQUATIONS In this unit we discuss polynomial equations. A polynomial in x of degree n, where n 0 is an integer, is an expression of the form P n (x) =a n x n + a n 1 x n 1 + + a 1 x

More information

Math Workshop October 2010 Fractions and Repeating Decimals

Math Workshop October 2010 Fractions and Repeating Decimals Math Workshop October 2010 Fractions and Repeating Decimals This evening we will investigate the patterns that arise when converting fractions to decimals. As an example of what we will be looking at,

More information

Cartesian Products and Relations

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

More information

CONTINUED FRACTIONS AND FACTORING. Niels Lauritzen

CONTINUED FRACTIONS AND FACTORING. Niels Lauritzen CONTINUED FRACTIONS AND FACTORING Niels Lauritzen ii NIELS LAURITZEN DEPARTMENT OF MATHEMATICAL SCIENCES UNIVERSITY OF AARHUS, DENMARK EMAIL: niels@imf.au.dk URL: http://home.imf.au.dk/niels/ Contents

More information

Lecture Notes on Polynomials

Lecture Notes on Polynomials Lecture Notes on Polynomials Arne Jensen Department of Mathematical Sciences Aalborg University c 008 Introduction These lecture notes give a very short introduction to polynomials with real and complex

More information

The last three chapters introduced three major proof techniques: direct,

The last three chapters introduced three major proof techniques: direct, CHAPTER 7 Proving Non-Conditional Statements The last three chapters introduced three major proof techniques: direct, contrapositive and contradiction. These three techniques are used to prove statements

More information

Solutions of Linear Equations in One Variable

Solutions of Linear Equations in One Variable 2. Solutions of Linear Equations in One Variable 2. OBJECTIVES. Identify a linear equation 2. Combine like terms to solve an equation We begin this chapter by considering one of the most important tools

More information

Chapter 3. Distribution Problems. 3.1 The idea of a distribution. 3.1.1 The twenty-fold way

Chapter 3. Distribution Problems. 3.1 The idea of a distribution. 3.1.1 The twenty-fold way Chapter 3 Distribution Problems 3.1 The idea of a distribution Many of the problems we solved in Chapter 1 may be thought of as problems of distributing objects (such as pieces of fruit or ping-pong balls)

More information

SOLVING POLYNOMIAL EQUATIONS

SOLVING POLYNOMIAL EQUATIONS C SOLVING POLYNOMIAL EQUATIONS We will assume in this appendix that you know how to divide polynomials using long division and synthetic division. If you need to review those techniques, refer to an algebra

More information

Lecture 13 - Basic Number Theory.

Lecture 13 - Basic Number Theory. Lecture 13 - Basic Number Theory. Boaz Barak March 22, 2010 Divisibility and primes Unless mentioned otherwise throughout this lecture all numbers are non-negative integers. We say that A divides B, denoted

More information

The Graphical Method: An Example

The Graphical Method: An Example The Graphical Method: An Example Consider the following linear program: Maximize 4x 1 +3x 2 Subject to: 2x 1 +3x 2 6 (1) 3x 1 +2x 2 3 (2) 2x 2 5 (3) 2x 1 +x 2 4 (4) x 1, x 2 0, where, for ease of reference,

More information

Chapter 3. Cartesian Products and Relations. 3.1 Cartesian Products

Chapter 3. Cartesian Products and Relations. 3.1 Cartesian Products Chapter 3 Cartesian Products and Relations The material in this chapter is the first real encounter with abstraction. Relations are very general thing they are a special type of subset. After introducing

More information

Math 4310 Handout - Quotient Vector Spaces

Math 4310 Handout - Quotient Vector Spaces Math 4310 Handout - Quotient Vector Spaces Dan Collins The textbook defines a subspace of a vector space in Chapter 4, but it avoids ever discussing the notion of a quotient space. This is understandable

More information

6.3 Conditional Probability and Independence

6.3 Conditional Probability and Independence 222 CHAPTER 6. PROBABILITY 6.3 Conditional Probability and Independence Conditional Probability Two cubical dice each have a triangle painted on one side, a circle painted on two sides and a square painted

More information

SYSTEMS OF PYTHAGOREAN TRIPLES. Acknowledgements. I would like to thank Professor Laura Schueller for advising and guiding me

SYSTEMS OF PYTHAGOREAN TRIPLES. Acknowledgements. I would like to thank Professor Laura Schueller for advising and guiding me SYSTEMS OF PYTHAGOREAN TRIPLES CHRISTOPHER TOBIN-CAMPBELL Abstract. This paper explores systems of Pythagorean triples. It describes the generating formulas for primitive Pythagorean triples, determines

More information

Undergraduate Notes in Mathematics. Arkansas Tech University Department of Mathematics

Undergraduate Notes in Mathematics. Arkansas Tech University Department of Mathematics Undergraduate Notes in Mathematics Arkansas Tech University Department of Mathematics An Introductory Single Variable Real Analysis: A Learning Approach through Problem Solving Marcel B. Finan c All Rights

More information

5.1 Radical Notation and Rational Exponents

5.1 Radical Notation and Rational Exponents Section 5.1 Radical Notation and Rational Exponents 1 5.1 Radical Notation and Rational Exponents We now review how exponents can be used to describe not only powers (such as 5 2 and 2 3 ), but also roots

More information

Special Situations in the Simplex Algorithm

Special Situations in the Simplex Algorithm Special Situations in the Simplex Algorithm Degeneracy Consider the linear program: Maximize 2x 1 +x 2 Subject to: 4x 1 +3x 2 12 (1) 4x 1 +x 2 8 (2) 4x 1 +2x 2 8 (3) x 1, x 2 0. We will first apply the

More information

Core Maths C1. Revision Notes

Core Maths C1. Revision Notes Core Maths C Revision Notes November 0 Core Maths C Algebra... Indices... Rules of indices... Surds... 4 Simplifying surds... 4 Rationalising the denominator... 4 Quadratic functions... 4 Completing the

More information

0.8 Rational Expressions and Equations

0.8 Rational Expressions and Equations 96 Prerequisites 0.8 Rational Expressions and Equations We now turn our attention to rational expressions - that is, algebraic fractions - and equations which contain them. The reader is encouraged to

More information

6.2 Permutations continued

6.2 Permutations continued 6.2 Permutations continued Theorem A permutation on a finite set A is either a cycle or can be expressed as a product (composition of disjoint cycles. Proof is by (strong induction on the number, r, of

More information

Number Theory. Proof. Suppose otherwise. Then there would be a finite number n of primes, which we may

Number Theory. Proof. Suppose otherwise. Then there would be a finite number n of primes, which we may Number Theory Divisibility and Primes Definition. If a and b are integers and there is some integer c such that a = b c, then we say that b divides a or is a factor or divisor of a and write b a. Definition

More information

Formal Languages and Automata Theory - Regular Expressions and Finite Automata -

Formal Languages and Automata Theory - Regular Expressions and Finite Automata - Formal Languages and Automata Theory - Regular Expressions and Finite Automata - Samarjit Chakraborty Computer Engineering and Networks Laboratory Swiss Federal Institute of Technology (ETH) Zürich March

More information

Properties of sequences Since a sequence is a special kind of function it has analogous properties to functions:

Properties of sequences Since a sequence is a special kind of function it has analogous properties to functions: Sequences and Series A sequence is a special kind of function whose domain is N - the set of natural numbers. The range of a sequence is the collection of terms that make up the sequence. Just as the word

More information

Examples of Functions

Examples of Functions Examples of Functions In this document is provided examples of a variety of functions. The purpose is to convince the beginning student that functions are something quite different than polynomial equations.

More information

Homework until Test #2

Homework until Test #2 MATH31: Number Theory Homework until Test # Philipp BRAUN Section 3.1 page 43, 1. It has been conjectured that there are infinitely many primes of the form n. Exhibit five such primes. Solution. Five such

More information

6 EXTENDING ALGEBRA. 6.0 Introduction. 6.1 The cubic equation. Objectives

6 EXTENDING ALGEBRA. 6.0 Introduction. 6.1 The cubic equation. Objectives 6 EXTENDING ALGEBRA Chapter 6 Extending Algebra Objectives After studying this chapter you should understand techniques whereby equations of cubic degree and higher can be solved; be able to factorise

More information

Integrating algebraic fractions

Integrating algebraic fractions Integrating algebraic fractions Sometimes the integral of an algebraic fraction can be found by first epressing the algebraic fraction as the sum of its partial fractions. In this unit we will illustrate

More information

MATH10212 Linear Algebra. Systems of Linear Equations. Definition. An n-dimensional vector is a row or a column of n numbers (or letters): a 1.

MATH10212 Linear Algebra. Systems of Linear Equations. Definition. An n-dimensional vector is a row or a column of n numbers (or letters): a 1. MATH10212 Linear Algebra Textbook: D. Poole, Linear Algebra: A Modern Introduction. Thompson, 2006. ISBN 0-534-40596-7. Systems of Linear Equations Definition. An n-dimensional vector is a row or a column

More information

= 2 + 1 2 2 = 3 4, Now assume that P (k) is true for some fixed k 2. This means that

= 2 + 1 2 2 = 3 4, Now assume that P (k) is true for some fixed k 2. This means that Instructions. Answer each of the questions on your own paper, and be sure to show your work so that partial credit can be adequately assessed. Credit will not be given for answers (even correct ones) without

More information

MATHEMATICAL INDUCTION. Mathematical Induction. This is a powerful method to prove properties of positive integers.

MATHEMATICAL INDUCTION. Mathematical Induction. This is a powerful method to prove properties of positive integers. MATHEMATICAL INDUCTION MIGUEL A LERMA (Last updated: February 8, 003) Mathematical Induction This is a powerful method to prove properties of positive integers Principle of Mathematical Induction Let P

More information

Solution to Exercise 2.2. Both m and n are divisible by d, som = dk and n = dk. Thus m ± n = dk ± dk = d(k ± k ),som + n and m n are divisible by d.

Solution to Exercise 2.2. Both m and n are divisible by d, som = dk and n = dk. Thus m ± n = dk ± dk = d(k ± k ),som + n and m n are divisible by d. [Chap. ] Pythagorean Triples 6 (b) The table suggests that in every primitive Pythagorean triple, exactly one of a, b,orc is a multiple of 5. To verify this, we use the Pythagorean Triples Theorem to write

More information

WRITING PROOFS. Christopher Heil Georgia Institute of Technology

WRITING PROOFS. Christopher Heil Georgia Institute of Technology WRITING PROOFS Christopher Heil Georgia Institute of Technology A theorem is just a statement of fact A proof of the theorem is a logical explanation of why the theorem is true Many theorems have this

More information

a 11 x 1 + a 12 x 2 + + a 1n x n = b 1 a 21 x 1 + a 22 x 2 + + a 2n x n = b 2.

a 11 x 1 + a 12 x 2 + + a 1n x n = b 1 a 21 x 1 + a 22 x 2 + + a 2n x n = b 2. Chapter 1 LINEAR EQUATIONS 1.1 Introduction to linear equations A linear equation in n unknowns x 1, x,, x n is an equation of the form a 1 x 1 + a x + + a n x n = b, where a 1, a,..., a n, b are given

More information

Sequences. A sequence is a list of numbers, or a pattern, which obeys a rule.

Sequences. A sequence is a list of numbers, or a pattern, which obeys a rule. Sequences A sequence is a list of numbers, or a pattern, which obeys a rule. Each number in a sequence is called a term. ie the fourth term of the sequence 2, 4, 6, 8, 10, 12... is 8, because it is the

More information

MATH 10034 Fundamental Mathematics IV

MATH 10034 Fundamental Mathematics IV MATH 0034 Fundamental Mathematics IV http://www.math.kent.edu/ebooks/0034/funmath4.pdf Department of Mathematical Sciences Kent State University January 2, 2009 ii Contents To the Instructor v Polynomials.

More information

1 if 1 x 0 1 if 0 x 1

1 if 1 x 0 1 if 0 x 1 Chapter 3 Continuity In this chapter we begin by defining the fundamental notion of continuity for real valued functions of a single real variable. When trying to decide whether a given function is or

More information

Math 115 Spring 2011 Written Homework 5 Solutions

Math 115 Spring 2011 Written Homework 5 Solutions . Evaluate each series. a) 4 7 0... 55 Math 5 Spring 0 Written Homework 5 Solutions Solution: We note that the associated sequence, 4, 7, 0,..., 55 appears to be an arithmetic sequence. If the sequence

More information

Handout #1: Mathematical Reasoning

Handout #1: Mathematical Reasoning Math 101 Rumbos Spring 2010 1 Handout #1: Mathematical Reasoning 1 Propositional Logic A proposition is a mathematical statement that it is either true or false; that is, a statement whose certainty or

More information

Inner Product Spaces

Inner Product Spaces Math 571 Inner Product Spaces 1. Preliminaries An inner product space is a vector space V along with a function, called an inner product which associates each pair of vectors u, v with a scalar u, v, and

More information

SCORE SETS IN ORIENTED GRAPHS

SCORE SETS IN ORIENTED GRAPHS Applicable Analysis and Discrete Mathematics, 2 (2008), 107 113. Available electronically at http://pefmath.etf.bg.ac.yu SCORE SETS IN ORIENTED GRAPHS S. Pirzada, T. A. Naikoo The score of a vertex v in

More information

Linear Programming. Solving LP Models Using MS Excel, 18

Linear Programming. Solving LP Models Using MS Excel, 18 SUPPLEMENT TO CHAPTER SIX Linear Programming SUPPLEMENT OUTLINE Introduction, 2 Linear Programming Models, 2 Model Formulation, 4 Graphical Linear Programming, 5 Outline of Graphical Procedure, 5 Plotting

More information

Real Roots of Univariate Polynomials with Real Coefficients

Real Roots of Univariate Polynomials with Real Coefficients Real Roots of Univariate Polynomials with Real Coefficients mostly written by Christina Hewitt March 22, 2012 1 Introduction Polynomial equations are used throughout mathematics. When solving polynomials

More information

Application. Outline. 3-1 Polynomial Functions 3-2 Finding Rational Zeros of. Polynomial. 3-3 Approximating Real Zeros of.

Application. Outline. 3-1 Polynomial Functions 3-2 Finding Rational Zeros of. Polynomial. 3-3 Approximating Real Zeros of. Polynomial and Rational Functions Outline 3-1 Polynomial Functions 3-2 Finding Rational Zeros of Polynomials 3-3 Approximating Real Zeros of Polynomials 3-4 Rational Functions Chapter 3 Group Activity:

More information

LINEAR INEQUALITIES. Mathematics is the art of saying many things in many different ways. MAXWELL

LINEAR INEQUALITIES. Mathematics is the art of saying many things in many different ways. MAXWELL Chapter 6 LINEAR INEQUALITIES 6.1 Introduction Mathematics is the art of saying many things in many different ways. MAXWELL In earlier classes, we have studied equations in one variable and two variables

More information

The Factor Theorem and a corollary of the Fundamental Theorem of Algebra

The Factor Theorem and a corollary of the Fundamental Theorem of Algebra Math 421 Fall 2010 The Factor Theorem and a corollary of the Fundamental Theorem of Algebra 27 August 2010 Copyright 2006 2010 by Murray Eisenberg. All rights reserved. Prerequisites Mathematica Aside

More information

The sum of digits of polynomial values in arithmetic progressions

The sum of digits of polynomial values in arithmetic progressions The sum of digits of polynomial values in arithmetic progressions Thomas Stoll Institut de Mathématiques de Luminy, Université de la Méditerranée, 13288 Marseille Cedex 9, France E-mail: stoll@iml.univ-mrs.fr

More information

TAKE-AWAY GAMES. ALLEN J. SCHWENK California Institute of Technology, Pasadena, California INTRODUCTION

TAKE-AWAY GAMES. ALLEN J. SCHWENK California Institute of Technology, Pasadena, California INTRODUCTION TAKE-AWAY GAMES ALLEN J. SCHWENK California Institute of Technology, Pasadena, California L INTRODUCTION Several games of Tf take-away?f have become popular. The purpose of this paper is to determine the

More information

ON FIBONACCI NUMBERS WITH FEW PRIME DIVISORS

ON FIBONACCI NUMBERS WITH FEW PRIME DIVISORS ON FIBONACCI NUMBERS WITH FEW PRIME DIVISORS YANN BUGEAUD, FLORIAN LUCA, MAURICE MIGNOTTE, SAMIR SIKSEK Abstract If n is a positive integer, write F n for the nth Fibonacci number, and ω(n) for the number

More information

Integer roots of quadratic and cubic polynomials with integer coefficients

Integer roots of quadratic and cubic polynomials with integer coefficients Integer roots of quadratic and cubic polynomials with integer coefficients Konstantine Zelator Mathematics, Computer Science and Statistics 212 Ben Franklin Hall Bloomsburg University 400 East Second Street

More information

Sensitivity Analysis 3.1 AN EXAMPLE FOR ANALYSIS

Sensitivity Analysis 3.1 AN EXAMPLE FOR ANALYSIS Sensitivity Analysis 3 We have already been introduced to sensitivity analysis in Chapter via the geometry of a simple example. We saw that the values of the decision variables and those of the slack and

More information

South Carolina College- and Career-Ready (SCCCR) Algebra 1

South Carolina College- and Career-Ready (SCCCR) Algebra 1 South Carolina College- and Career-Ready (SCCCR) Algebra 1 South Carolina College- and Career-Ready Mathematical Process Standards The South Carolina College- and Career-Ready (SCCCR) Mathematical Process

More information