Chapter 5: Sequences, Mathematic Induction, and Recursion

Size: px
Start display at page:

Download "Chapter 5: Sequences, Mathematic Induction, and Recursion"

Transcription

1 Chapter 5: Sequences, Mathematic Induction, and Recursion Hao Zheng Department of Computer Science and Engineering University of South Florida Tampa, FL Phone: (813) Fax: (813) October 21, 2014 Hao Zheng ( Department of Computer Science Chapter and Engineering 5: Sequences, University Mathematic of South Induction, Floridand Tampa, Recursion October FL , zheng@cse.usf. 1 / 52

2 5.1 Sequences Hao Zheng ( Department of Computer Science Chapter and Engineering 5: Sequences, University Mathematic of South Induction, Floridand Tampa, Recursion October FL , zheng@cse.usf. 2 / 52

3 Definitions A sequence is a function whose domain is either all integers between two given integers or all the integers greater than or equal to a given integer. Example: how many ancestors does a person have? Position in the row Number of ancestors ao Zheng ( Department of Computer Science Chapter and Engineering 5: Sequences, University Mathematic of South Induction, Floridand Tampa, Recursion October FL , zheng@cse.usf. 3 / 52

4 Definitions A sequence is a function whose domain is either all integers between two given integers or all the integers greater than or equal to a given integer. Example: how many ancestors does a person have? Position in the row Number of ancestors The pattern: A k = 2 k. ao Zheng ( Department of Computer Science Chapter and Engineering 5: Sequences, University Mathematic of South Induction, Floridand Tampa, Recursion October FL , zheng@cse.usf. 3 / 52

5 Definitions (cont d) A sequence is a set of elements written in a row a m, a m+1,..., a n where each element a k is called a term, and k is called a index of a k. a m is the initial term, and a n is the final term. The final term exists only for a finite sequence. a m, a m+1,... is an infinite sequence.... is called an ellipsis, shorthand for and so forth. Hao Zheng ( Department of Computer Science Chapter and Engineering 5: Sequences, University Mathematic of South Induction, Floridand Tampa, Recursion October FL , zheng@cse.usf. 4 / 52

6 Definitions (cont d) An explicit formula or general formula for a sequence is a rule that shows how the values of a k depends on k. Examples Show the sequences for the following formulas. a k = k k + 1 for all integers k 1 b i = i 1 i for all integers i 2 ao Zheng ( Department of Computer Science Chapter and Engineering 5: Sequences, University Mathematic of South Induction, Floridand Tampa, Recursion October FL , zheng@cse.usf. 5 / 52

7 Definitions (cont d) An explicit formula or general formula for a sequence is a rule that shows how the values of a k depends on k. Examples Find the formula for the following sequence. 1, 1 4, 1 9, 1 16, 1 25, 1 36,... ao Zheng ( Department of Computer Science Chapter and Engineering 5: Sequences, University Mathematic of South Induction, Floridand Tampa, Recursion October FL , zheng@cse.usf. 5 / 52

8 Summation Notation Question How many total ancestors does a person have for the most recent five generations? Hao Zheng ( Department of Computer Science Chapter and Engineering 5: Sequences, University Mathematic of South Induction, Floridand Tampa, Recursion October FL , zheng@cse.usf. 6 / 52

9 Recursive Summation Notation If m is any integer, then n a k = k=m ( n 1 k=m a k ) + a n When solving problems, it is often useful to rewrite a summation using the recursive form of the definition, either by separating off the final term of a summation or by adding a final term to a summation. Examples n+1 i=1 1 i 2 = n i=1 1 i (n + 1) 2 Hao Zheng ( Department of Computer Science Chapter and Engineering 5: Sequences, University Mathematic of South Induction, Floridand Tampa, Recursion October FL , zheng@cse.usf. 7 / 52

10 Summation: Exercise Compute the following: 3 5 n=1 k=1 k 3 4 i(i + 1) i=2 ( 1 n 1 ) n + 1 Hao Zheng ( Department of Computer Science Chapter and Engineering 5: Sequences, University Mathematic of South Induction, Floridand Tampa, Recursion October FL , zheng@cse.usf. 8 / 52

11 Summation: Exercise Change the expanded form to summation notation. 1 n + 2 n n n + 1 2n Hao Zheng ( Department of Computer Science Chapter and Engineering 5: Sequences, University Mathematic of South Induction, Floridand Tampa, Recursion October FL , zheng@cse.usf. 9 / 52

12 Product Notation Recursive definition n a k = k=m ( n 1 k=m a k ) a n Hao Zheng ( Department of Computer Science Chapter and Engineering 5: Sequences, University Mathematic of South Induction, Floridand Tampa, Recursion October FL , zheng@cse.usf. 10 / 52

13 Exercise: Compute the following products 3 k=1 k k k=2 4 i=2 i i + 1 Hao Zheng ( Department of Computer Science Chapter and Engineering 5: Sequences, University Mathematic of South Induction, Floridand Tampa, Recursion October FL , zheng@cse.usf. 11 / 52

14 Properties of Summations and Products Hao Zheng ( Department of Computer Science Chapter and Engineering 5: Sequences, University Mathematic of South Induction, Floridand Tampa, Recursion October FL , zheng@cse.usf. 12 / 52

15 Exercise: Simplify the following expressions n k=m ( 1 1 ) + 2 k n k=m 1 k Hao Zheng ( Department of Computer Science Chapter and Engineering 5: Sequences, University Mathematic of South Induction, Floridand Tampa, Recursion October FL , zheng@cse.usf. 13 / 52

16 Exercise: Simplify the following expressions n n (k + 1) (k 1) k=m k=m Hao Zheng ( Department of Computer Science Chapter and Engineering 5: Sequences, University Mathematic of South Induction, Floridand Tampa, Recursion October FL , zheng@cse.usf. 13 / 52

17 Exercise: Simplify the following expressions n 1 i=1 1 i + 1 n Hao Zheng ( Department of Computer Science Chapter and Engineering 5: Sequences, University Mathematic of South Induction, Floridand Tampa, Recursion October FL , zheng@cse.usf. 13 / 52

18 Change of Variable Observe that 3 k 2 = k=1 The symbol used to represent the index of a summation or product can be replaced by any other symbol as long as the replacement is made in each location where the symbol occurs. Example transform the following summation by making the specified change of variable. 6 k=0 3 j=1 1, change of variable : j = k + 1 k + 1 j 2 Hao Zheng ( Department of Computer Science Chapter and Engineering 5: Sequences, University Mathematic of South Induction, Floridand Tampa, Recursion October FL , zheng@cse.usf. 14 / 52

19 Change of Variable: Exercise Transform the summation by the change defined by j = k 1. n+1 k=1 (k + 1) 2 n k + 2 Hao Zheng ( Department of Computer Science Chapter and Engineering 5: Sequences, University Mathematic of South Induction, Floridand Tampa, Recursion October FL , zheng@cse.usf. 15 / 52

20 Change of Variable: Exercise Simplify the following summation. n 1 n (2k 1) + (4 5k) k=0 k=1 Hao Zheng ( Department of Computer Science Chapter and Engineering 5: Sequences, University Mathematic of South Induction, Floridand Tampa, Recursion October FL , zheng@cse.usf. 15 / 52

21 Factorial Recursive definition n! = { 1 if n = 0 n (n 1)! if n 1 Hao Zheng ( Department of Computer Science Chapter and Engineering 5: Sequences, University Mathematic of South Induction, Floridand Tampa, Recursion October FL , zheng@cse.usf. 16 / 52

22 Exercise: Compute the following Factorials 8! 7! ((n + 1)!) 2 (n!) 2 n! (n 3)! Hao Zheng ( Department of Computer Science Chapter and Engineering 5: Sequences, University Mathematic of South Induction, Floridand Tampa, Recursion October FL , zheng@cse.usf. 17 / 52

23 n Choose r ( ) n r Definition Let n and r be integers with 0 r n. The symbol ( ) n r is read n choose r and represents the number of subsets of size r that can be chosen from a set of n elements. Formula for computing ( ) n r For all integers n and r with 0 r n, ( ) n n! = r r!(n r)! ao Zheng ( Department of Computer Science Chapter and Engineering 5: Sequences, University Mathematic of South Induction, Floridand Tampa, Recursion October FL , zheng@cse.usf. 18 / 52

24 n Choose r ( n r) : Examples ( ) 3 2 ( ) 4 4 ( ) n + 1 n Hao Zheng ( Department of Computer Science Chapter and Engineering 5: Sequences, University Mathematic of South Induction, Floridand Tampa, Recursion October FL , zheng@cse.usf. 19 / 52

25 Sequences in Computer Programming Recall the following algorithms for computing quotients and reminders based on quotient-remainder theorem. Input: a 0 and d > 0 Algorithm r := a, q := 0 while(r d) r := r d q := q + 1 end Output: q and r ao Zheng ( Department of Computer Science Chapter and Engineering 5: Sequences, University Mathematic of South Induction, Floridand Tampa, Recursion October FL , zheng@cse.usf. 20 / 52

26 Sequences in Computer Programming Recall the following algorithms for computing quotients and reminders based on quotient-remainder theorem. Output: Input: a 0 and d > 0 Algorithm r := a, q := 0 while(r d) r := r d q := q + 1 end Output: q and r Index Quotient q 1 q 2... Remainder r 1 r 2... ao Zheng ( Department of Computer Science Chapter and Engineering 5: Sequences, University Mathematic of South Induction, Floridand Tampa, Recursion October FL , zheng@cse.usf. 20 / 52

27 5.2 & 5.3 Mathematical Induction Hao Zheng ( Department of Computer Science Chapter and Engineering 5: Sequences, University Mathematic of South Induction, Floridand Tampa, Recursion October FL , zheng@cse.usf. 21 / 52

28 Observe the Following A certain store sells envelopes in packages of five and packages of twelve. Can this store sell you exactly 44 envelopes? Can this store sell you exactly 45 envelopes? Can this store sell you exactly 46 envelopes? Can this store sell you exactly 47 envelopes? Can this store sell you exactly 48 envelopes? Can this store sell you any number of envelops in a similar way? Hao Zheng ( Department of Computer Science Chapter and Engineering 5: Sequences, University Mathematic of South Induction, Floridand Tampa, Recursion October FL , zheng@cse.usf. 22 / 52

29 How to Solve it? A certain store sells envelopes in packages of five and packages of twelve. Prove that for every n 44 this store can sell you exactly n envelopes (assuming an unlimited supply of each type of envelope package), i.e. n = 5p + 12q for some positive integersp, q. Note that p 7 or q 2 for the above equation. Hint: suppose it is possible to buy exactly k envelopes at this store, where k 44, can you show that the store can also fill an order for k + 1 envelopes? Hao Zheng ( Department of Computer Science Chapter and Engineering 5: Sequences, University Mathematic of South Induction, Floridand Tampa, Recursion October FL , zheng@cse.usf. 23 / 52

30 Principle of Mathematical Induction In general, mathematical induction is a method for proving that a property defined for integers n is true for all values of n that are greater than or equal to some initial integer. Mathematical Induction is taken as an axiom. Hao Zheng ( Department of Computer Science Chapter and Engineering 5: Sequences, University Mathematic of South Induction, Floridand Tampa, Recursion October FL , zheng@cse.usf. 24 / 52

31 Principle of Mathematical Induction P (a) P (k) P (k + 1) k a, P (k) In general, mathematical induction is a method for proving that a property defined for integers n is true for all values of n that are greater than or equal to some initial integer. Mathematical Induction is taken as an axiom. Hao Zheng ( Department of Computer Science Chapter and Engineering 5: Sequences, University Mathematic of South Induction, Floridand Tampa, Recursion October FL , zheng@cse.usf. 24 / 52

32 Proof by Mathematical Induction To prove For all integers n a, a property P (n) is true, do the following two steps: Step 1 (Basis step) show that the P (a) is true. Step 2 (Inductive step) show that for all integers k a, if P (k) is true then P (k + 1) is also true. To perform this step, Suppose that P (k) is true for p.b.a.c k a. [This supposition is called the inductive hypothesis.] Then, show that P (k + 1) is true. ao Zheng ( Department of Computer Science Chapter and Engineering 5: Sequences, University Mathematic of South Induction, Floridand Tampa, Recursion October FL , zheng@cse.usf. 25 / 52

33 Theorem Sum of the First n Integers For all integers n 1, n = n(n + 1). 2 ao Zheng ( Department of Computer Science Chapter and Engineering 5: Sequences, University Mathematic of South Induction, Floridand Tampa, Recursion October FL , zheng@cse.usf. 26 / 52

34 Proof by Mathematical Induction: Exercise For all integer n 44, n = 5p + 12q for some integers p and q. Proof: See slide 51 for detailed proof. ao Zheng ( Department of Computer Science Chapter and Engineering 5: Sequences, University Mathematic of South Induction, Floridand Tampa, Recursion October FL , zheng@cse.usf. 27 / 52

35 Sum of a Geometric Sequence In a geometric sequence, each term is obtained from the preceding one by multiplying by a constant factor. If the first term is 1 and the constant factor is r, then the sequence is 1, r, r 2, r 3,..., r n,... Example: evaluate the following sequences m m Theorem For any real number r 1, and any integer n 0, n i=0 r i = rn+1 1 r 1. ao Zheng ( Department of Computer Science Chapter and Engineering 5: Sequences, University Mathematic of South Induction, Floridand Tampa, Recursion October FL , zheng@cse.usf. 28 / 52

36 Theorem For any real number r 1, and any integer n 0, Proof: n i=0 r i = rn+1 1 r 1. ao Zheng ( Department of Computer Science Chapter and Engineering 5: Sequences, University Mathematic of South Induction, Floridand Tampa, Recursion October FL , zheng@cse.usf. 29 / 52

37 Proving Equality Consider the following proof for the basis step. Is it correct? 0 i=0 r i = r0+1 1 r 1 r 0 = r 1 r 1 1 = 1 Hao Zheng ( Department of Computer Science Chapter and Engineering 5: Sequences, University Mathematic of South Induction, Floridand Tampa, Recursion October FL , zheng@cse.usf. 30 / 52

38 Deducing the Sum of a Geometric Sequence Let Then Therefore, S n = 1 + r + r r n. rs n = r + r 2 + r r n+1. rs n S n = (r + r 2 + r r n+1 ) (1 + r + r r n ) = r n+1 1. But the above equation can be transformed to Finally, rs n S n = r n+1 1 S n (r 1) = r n+1 1. S n = rn+1 1 r 1. Hao Zheng ( Department of Computer Science Chapter and Engineering 5: Sequences, University Mathematic of South Induction, Floridand Tampa, Recursion October FL , zheng@cse.usf. 31 / 52

39 Deduction and Induction Deduction and induction are the same in some sense. Deduction: infer conclusion from general principles and known facts by logical reasoning. Induction: prove a general principle after observing it to hold for a large number of elements. Inductive reasoning is used when generating hypotheses, formulating theories and discovering relationships from specific instances The derived hypotheses and relations need to be proved by induction to become mathematical certainty. An essential tool in studying natural sciences and scientific discovery. Hao Zheng ( Department of Computer Science Chapter and Engineering 5: Sequences, University Mathematic of South Induction, Floridand Tampa, Recursion October FL , zheng@cse.usf. 32 / 52

40 Inductive Reasoning: Example Observe that = 1 2 (1 1 2 )(1 1 3 ) = 1 3 (1 1 2 )(1 1 3 )(1 1 4 ) = 1 4 By inductive reasoning, a more general principle can be discovered. (1 1 2 )(1 1 3 ) (1 1 k ) = 1 k However, the above conjecture needs to be proved by mathematical induction to become a certainty. Hao Zheng ( Department of Computer Science Chapter and Engineering 5: Sequences, University Mathematic of South Induction, Floridand Tampa, Recursion October FL , zheng@cse.usf. 33 / 52

41 n 2, n (1 1 k ) = 1 n k=2 Proof: See slide 52 for detailed proof. ao Zheng ( Department of Computer Science Chapter and Engineering 5: Sequences, University Mathematic of South Induction, Floridand Tampa, Recursion October FL , zheng@cse.usf. 34 / 52

42 Proposition For all integers n 0, 2 2n 1 is divisible by 3. Proof: ao Zheng ( Department of Computer Science Chapter and Engineering 5: Sequences, University Mathematic of South Induction, Floridand Tampa, Recursion October FL , zheng@cse.usf. 35 / 52

43 For any integer x = d 0 d 1... d n where d i {0, 1, 2,..., 9}, if n d k = 3p for some integer p, 3 x. k=0 Proof: ao Zheng ( Department of Computer Science Chapter and Engineering 5: Sequences, University Mathematic of South Induction, Floridand Tampa, Recursion October FL , zheng@cse.usf. 36 / 52

44 Proposition For all integers n 3, 2n + 1 < 2 n. Proof: ao Zheng ( Department of Computer Science Chapter and Engineering 5: Sequences, University Mathematic of South Induction, Floridand Tampa, Recursion October FL , zheng@cse.usf. 37 / 52

45 5.6 Defining Sequences Recursively Hao Zheng ( Department of Computer Science Chapter and Engineering 5: Sequences, University Mathematic of South Induction, Floridand Tampa, Recursion October FL , zheng@cse.usf. 38 / 52

46 Defining Sequences A sequence can be defined in a variety of different ways. One informal way is to write the first few terms with the expectation that the general pattern will be obvious. Consider 3, 5, 7,.... Unfortunately, misunderstandings can occur when this approach is used. The next term of the sequence could be 9 if we mean a sequence of odd integers, or it could be 11 if we mean the sequence of prime numbers. Hao Zheng ( Department of Computer Science Chapter and Engineering 5: Sequences, University Mathematic of South Induction, Floridand Tampa, Recursion October FL , zheng@cse.usf. 39 / 52

47 Defining Sequences The second way to define a sequence is to give an explicit formula for its nth term. For example, a sequence a 0, a 1, a 2,... can be specified by writing a n = ( 1)n for all integers n 0. n + 1 The advantage of defining a sequence by such an explicit formula is that each term of the sequence is uniquely determined and can be computed in a fixed, finite number of steps, by substitution. Hao Zheng ( Department of Computer Science Chapter and Engineering 5: Sequences, University Mathematic of South Induction, Floridand Tampa, Recursion October FL , zheng@cse.usf. 40 / 52

48 The Fibonacci Numbers In 1202 European Mathematician Fibonacci posed the following problem: A single pair of rabbits (male and female) is born at the beginning of a year. 1 Rabbit pairs are not fertile during their first month of life but thereafter give birth to one new male/female pair at the end of every month. 2 No rabbits die. How many rabbit pairs will there be at the end of the year? Hao Zheng ( Department of Computer Science Chapter and Engineering 5: Sequences, University Mathematic of South Induction, Floridand Tampa, Recursion October FL , zheng@cse.usf. 41 / 52

49 Definition A recurrence relation for a sequence a 0, a 1, a 2,... is a formula that relates every a k to certain of its predecessors a k 1, a k 2,..., a k i where i is an integer with k i 0. The initial conditions for such a recurrence relation specify the values of a 0,..., a i 1, if i is a fixed integer, or a 0, a 1,..., a m, where m is an integer with m 0, if i depends on k. Consider the following sequence. Find the recurrence relation/initial condition. 1, 3, 9, 27, 81,... ao Zheng ( Department of Computer Science Chapter and Engineering 5: Sequences, University Mathematic of South Induction, Floridand Tampa, Recursion October FL , zheng@cse.usf. 42 / 52

50 Definition A recurrence relation for a sequence a 0, a 1, a 2,... is a formula that relates every a k to certain of its predecessors a k 1, a k 2,..., a k i where i is an integer with k i 0. The initial conditions for such a recurrence relation specify the values of a 0,..., a i 1, if i is a fixed integer, or a 0, a 1,..., a m, where m is an integer with m 0, if i depends on k. The same recurrence relation with different initial conditions represents different sequences. a k+1 = 3a k for all k 0 and a 0 = 2 ao Zheng ( Department of Computer Science Chapter and Engineering 5: Sequences, University Mathematic of South Induction, Floridand Tampa, Recursion October FL , zheng@cse.usf. 42 / 52

51 Example 5.6.7: Compound Interests You have three friends, Mike, Jennifer, and Sally. Each one has $10, 000 to invest for 5 years. Mike places his money on deposit 4% simple interest annually. Jennifer places her money on deposit 4% interest compounded annually. Sally left her money on deposit at 4% annual interest rate but compounded quarterly. What are the amounts in the accounts at the end of the 5th year? Hao Zheng ( Department of Computer Science Chapter and Engineering 5: Sequences, University Mathematic of South Induction, Floridand Tampa, Recursion October FL , zheng@cse.usf. 43 / 52

52 Example The Fibonacci Numbers In 1202 European Mathematician Fibonacci posed the following problem: A single pair of rabbits (male and female) is born at the beginning of a year. 1 Rabbit pairs are not fertile during their first month of life but thereafter give birth to one new male/female pair at the end of every month. 2 No rabbits die. How many rabbit pairs will there be at the end of the year? Hao Zheng ( Department of Computer Science Chapter and Engineering 5: Sequences, University Mathematic of South Induction, Floridand Tampa, Recursion October FL , zheng@cse.usf. 44 / 52

53 Recurrence Definitions of Sum and Product Hao Zheng ( Department of Computer Science Chapter and Engineering 5: Sequences, University Mathematic of South Induction, Floridand Tampa, Recursion October FL , zheng@cse.usf. 45 / 52

54 5.7 Solving Recurrence Relations by Iteration Find an explicit formula which is called a solution. Method of Iteration Given a sequence a 0, a 1, a 2,... defined by a recurrence relation and initial conditions, you start from the initial conditions and calculate successive terms of the sequence until you see a pattern developing. At that point you guess an explicit formula. ao Zheng ( Department of Computer Science Chapter and Engineering 5: Sequences, University Mathematic of South Induction, Floridand Tampa, Recursion October FL , zheng@cse.usf. 46 / 52

55 Example Define a sequence a 1, a 2,... as follows. a 1 = 2 a k = 5a k 1 for all integers k 2. Find the explicit formula for this sequence. Hao Zheng ( Department of Computer Science Chapter and Engineering 5: Sequences, University Mathematic of South Induction, Floridand Tampa, Recursion October FL , zheng@cse.usf. 47 / 52

56 Definition A sequence a 0, a 1, a 2,... is called an arithmetic sequence if, and only if, there is an constant d such that or, equivalently a k = a k 1 + d for all integer k 1 a n = a 0 + dn for all integer n 0 A sequence a 0, a 1, a 2,... is called an geometric sequence if, and only if, there is an constant r such that or, equivalently a k = a k 1 r for all integer k 1 a n = a 0 r n for all integer n 0 Hao Zheng ( Department of Computer Science Chapter and Engineering 5: Sequences, University Mathematic of South Induction, Floridand Tampa, Recursion October FL , zheng@cse.usf. 48 / 52

57 Exercise Find the explicit formula for the recursively defined sequence: p k = p k k 1, for k 2 and p 1 = 1 How do you check the correctness of the derived formula? Hao Zheng ( Department of Computer Science Chapter and Engineering 5: Sequences, University Mathematic of South Induction, Floridand Tampa, Recursion October FL , zheng@cse.usf. 49 / 52

58 Appendix Hao Zheng ( Department of Computer Science Chapter and Engineering 5: Sequences, University Mathematic of South Induction, Floridand Tampa, Recursion October FL , zheng@cse.usf. 50 / 52

59 For all integer n 44, n = 5p + 12q for some integers p and q. Proof: Notice that p 7 q 2. Also, let P (n) denote n = 5p + 12q for n 44. Basis step it is easy to show that P (44) holds for p = 4 q = 2. continued... ao Zheng ( Department of Computer Science Chapter and Engineering 5: Sequences, University Mathematic of South Induction, Floridand Tampa, Recursion October FL , zheng@cse.usf. 51 / 52

60 For all integer n 44, n = 5p + 12q for some integers p and q. Proof: Inductive step Suppose that P (n) holds for some k 44. We need to show that P (n + 1) also holds. Since p 7 q 2, the proof is divided into two cases. Case 1 Consider p 7. Suppose k = 5p + 12q for some integers p 7 and q. k + 1 = 5p + 12q + 1 = 5(p + 7) + 12q + 1 = 5p + 12q = 5p + 12q = 5p + 12(q + 3) Therefore, P (n + 1) holds for p = p 7 and q = q + 3. Case 2 Consider q 2. The proof can be done similarly, and not shown. ao Zheng ( Department of Computer Science Chapter and Engineering 5: Sequences, University Mathematic of South Induction, Floridand Tampa, Recursion October FL , zheng@cse.usf. 51 / 52

61 Proof: Let P (n) be n 2, n k=2 n (1 1 k ) = 1 n k=2 (1 1 k ) = 1 n. n Basis step When n = 2, (1 1 k=2 k ) = = n = 1 2. Therefore, P (n) holds true when n = 2. continued... ao Zheng ( Department of Computer Science Chapter and Engineering 5: Sequences, University Mathematic of South Induction, Floridand Tampa, Recursion October FL , zheng@cse.usf. 52 / 52

62 n 2, n (1 1 k ) = 1 n k=2 Proof: n Inductive step Suppose that P (n) : (1 1 k=2 k ) = 1 holds for n some n 2. We need to show that P (n + 1) also holds. (1 1 k ) = ( n (1 1 k ))(1 1 n + 1 ) n+1 k=2 k=2 = 1 n (1 1 n + 1 ) = 1 n n n = n + 1 ao Zheng ( Department of Computer Science Chapter and Engineering 5: Sequences, University Mathematic of South Induction, Floridand Tampa, Recursion October FL , zheng@cse.usf. 52 / 52

Chapter 8: Recursion. March 10, 2008

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

More information

Definition: A sequence is a function from a subset of the integers (usually either the set

Definition: A sequence is a function from a subset of the integers (usually either the set Math 3336 Section 2.4 Sequences and Summations Sequences Geometric Progression Arithmetic Progression Recurrence Relation Fibonacci Sequence Summations Definition: A sequence is a function from a subset

More information

Section Summary. Sequences. Recurrence Relations. Summations. Examples: Geometric Progression, Arithmetic Progression. Example: Fibonacci Sequence

Section Summary. Sequences. Recurrence Relations. Summations. Examples: Geometric Progression, Arithmetic Progression. Example: Fibonacci Sequence Section 2.4 Section Summary Sequences. Examples: Geometric Progression, Arithmetic Progression Recurrence Relations Example: Fibonacci Sequence Summations Introduction Sequences are ordered lists of elements.

More information

Discrete Structures Lecture Sequences and Summations

Discrete Structures Lecture Sequences and Summations Introduction Good morning. In this section we study sequences. A sequence is an ordered list of elements. Sequences are important to computing because of the iterative nature of computer programs. The

More information

Recurrence Relations

Recurrence Relations Recurrence Relations Recurrence Relations Reading (Epp s textbook) 5.6 5.8 1 Recurrence Relations A recurrence relation for a sequence aa 0, aa 1, aa 2, ({a n }) is a formula that relates each term a k

More information

Sequences and Series. College Algebra

Sequences and Series. College Algebra Sequences and Series College Algebra Sequences A sequence is a function whose domain is the set of positive integers. A finite sequence is a sequence whose domain consists of only the first n positive

More information

SEQUENCES, MATHEMATICAL INDUCTION, AND RECURSION

SEQUENCES, MATHEMATICAL INDUCTION, AND RECURSION CHAPTER 5 SEQUENCES, MATHEMATICAL INDUCTION, AND RECURSION One of the most important tasks of mathematics is to discover and characterize regular patterns, such as those associated with processes that

More information

Sec$on Summary. Sequences. Recurrence Relations. Summations. Ex: Geometric Progression, Arithmetic Progression. Ex: Fibonacci Sequence

Sec$on Summary. Sequences. Recurrence Relations. Summations. Ex: Geometric Progression, Arithmetic Progression. Ex: Fibonacci Sequence Section 2.4 Sec$on Summary Sequences Ex: Geometric Progression, Arithmetic Progression Recurrence Relations Ex: Fibonacci Sequence Summations 2 Introduc$on Sequences are ordered lists of elements. 1, 2,

More information

Section Summary. Sequences. Recurrence Relations. Summations Special Integer Sequences (optional)

Section Summary. Sequences. Recurrence Relations. Summations Special Integer Sequences (optional) Section 2.4 Section Summary Sequences. o Examples: Geometric Progression, Arithmetic Progression Recurrence Relations o Example: Fibonacci Sequence Summations Special Integer Sequences (optional) Sequences

More information

Discrete Mathematics. Spring 2017

Discrete Mathematics. Spring 2017 Discrete Mathematics Spring 2017 Previous Lecture Principle of Mathematical Induction Mathematical Induction: rule of inference Mathematical Induction: Conjecturing and Proving Climbing an Infinite Ladder

More information

Math 324 Summer 2012 Elementary Number Theory Notes on Mathematical Induction

Math 324 Summer 2012 Elementary Number Theory Notes on Mathematical Induction Math 4 Summer 01 Elementary Number Theory Notes on Mathematical Induction Principle of Mathematical Induction Recall the following axiom for the set of integers. Well-Ordering Axiom for the Integers If

More information

CSCE 222 Discrete Structures for Computing. Dr. Hyunyoung Lee

CSCE 222 Discrete Structures for Computing. Dr. Hyunyoung Lee CSCE 222 Discrete Structures for Computing Sequences and Summations Dr. Hyunyoung Lee Based on slides by Andreas Klappenecker 1 Sequences 2 Sequences A sequence is a function from a subset of the set of

More information

Every subset of {1, 2,...,n 1} can be extended to a subset of {1, 2, 3,...,n} by either adding or not adding the element n.

Every subset of {1, 2,...,n 1} can be extended to a subset of {1, 2, 3,...,n} by either adding or not adding the element n. 11 Recurrences A recurrence equation or recurrence counts things using recursion. 11.1 Recurrence Equations We start with an example. Example 11.1. Find a recurrence for S(n), the number of subsets of

More information

Page references correspond to locations of Extra Examples icons in the textbook.

Page references correspond to locations of Extra Examples icons in the textbook. Rosen, Discrete Mathematics and Its Applications, 7th edition Extra Examples Section 8. Recurrence Relations Page references correspond to locations of Extra Examples icons in the textbook. p.50, icon

More information

Problem Set 5 Solutions

Problem Set 5 Solutions Problem Set 5 Solutions Section 4.. Use mathematical induction to prove each of the following: a) For each natural number n with n, n > + n. Let P n) be the statement n > + n. The base case, P ), is true

More information

Math Circle: Recursion and Induction

Math Circle: Recursion and Induction Math Circle: Recursion and Induction Prof. Wickerhauser 1 Recursion What can we compute, using only simple formulas and rules that everyone can understand? 1. Let us use N to denote the set of counting

More information

Ex. Here's another one. We want to prove that the sum of the cubes of the first n natural numbers is. n = n 2 (n+1) 2 /4.

Ex. Here's another one. We want to prove that the sum of the cubes of the first n natural numbers is. n = n 2 (n+1) 2 /4. Lecture One type of mathematical proof that goes everywhere is mathematical induction (tb 147). Induction is essentially used to show something is true for all iterations, i, of a sequence, where i N.

More information

MATH10040: Numbers and Functions Homework 1: Solutions

MATH10040: Numbers and Functions Homework 1: Solutions MATH10040: Numbers and Functions Homework 1: Solutions 1. Prove that a Z and if 3 divides into a then 3 divides a. Solution: The statement to be proved is equivalent to the statement: For any a N, if 3

More information

With Question/Answer Animations

With Question/Answer Animations Chapter 5 With Question/Answer Animations Copyright McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill Education. Chapter Summary

More information

EECS 1028 M: Discrete Mathematics for Engineers

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 / 16 Sequences and

More information

12 Sequences and Recurrences

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

More information

Chapter Summary. Mathematical Induction Strong Induction Well-Ordering Recursive Definitions Structural Induction Recursive Algorithms

Chapter Summary. Mathematical Induction Strong Induction Well-Ordering Recursive Definitions Structural Induction Recursive Algorithms 1 Chapter Summary Mathematical Induction Strong Induction Well-Ordering Recursive Definitions Structural Induction Recursive Algorithms 2 Section 5.1 3 Section Summary Mathematical Induction Examples of

More information

MATH 324 Summer 2011 Elementary Number Theory. Notes on Mathematical Induction. Recall the following axiom for the set of integers.

MATH 324 Summer 2011 Elementary Number Theory. Notes on Mathematical Induction. Recall the following axiom for the set of integers. MATH 4 Summer 011 Elementary Number Theory Notes on Mathematical Induction Principle of Mathematical Induction Recall the following axiom for the set of integers. Well-Ordering Axiom for the Integers If

More information

3.3 Accumulation Sequences

3.3 Accumulation Sequences 3.3. ACCUMULATION SEQUENCES 25 3.3 Accumulation Sequences Overview. One of the most important mathematical ideas in calculus is that of an accumulation of change for physical quantities. As we have been

More information

Mathematics 228(Q1), Assignment 2 Solutions

Mathematics 228(Q1), Assignment 2 Solutions Mathematics 228(Q1), Assignment 2 Solutions Exercise 1.(10 marks) A natural number n > 1 is said to be square free if d N with d 2 n implies d = 1. Show that n is square free if and only if n = p 1 p k

More information

1 Sequences and Summation

1 Sequences and Summation 1 Sequences and Summation A sequence is a function whose domain is either all the integers between two given integers or all the integers greater than or equal to a given integer. For example, a m, a m+1,...,

More information

Outline. We will cover (over the next few weeks) Induction Strong Induction Constructive Induction Structural Induction

Outline. We will cover (over the next few weeks) Induction Strong Induction Constructive Induction Structural Induction Outline We will cover (over the next few weeks) Induction Strong Induction Constructive Induction Structural Induction Induction P(1) ( n 2)[P(n 1) P(n)] ( n 1)[P(n)] Why Does This Work? I P(1) ( n 2)[P(n

More information

8. Sequences, Series, and Probability 8.1. SEQUENCES AND SERIES

8. Sequences, Series, and Probability 8.1. SEQUENCES AND SERIES 8. Sequences, Series, and Probability 8.1. SEQUENCES AND SERIES What You Should Learn Use sequence notation to write the terms of sequences. Use factorial notation. Use summation notation to write sums.

More information

CSC 344 Algorithms and Complexity. Proof by Mathematical Induction

CSC 344 Algorithms and Complexity. Proof by Mathematical Induction CSC 344 Algorithms and Complexity Lecture #1 Review of Mathematical Induction Proof by Mathematical Induction Many results in mathematics are claimed true for every positive integer. Any of these results

More information

Chapter12. Relations, Functions, and Induction

Chapter12. Relations, Functions, and Induction . Relations. Functions. Seuences.4 Mathematical Induction.5 Recurrence Relations Chapter Review Chapter Relations, Functions, and Induction In this chapter we introduce the concepts of a relation and a

More information

Climbing an Infinite Ladder

Climbing an Infinite Ladder Section 5.1 Section Summary Mathematical Induction Examples of Proof by Mathematical Induction Mistaken Proofs by Mathematical Induction Guidelines for Proofs by Mathematical Induction Climbing an Infinite

More information

Sequences A sequence is a function, where the domain is a set of consecutive positive integers beginning with 1.

Sequences A sequence is a function, where the domain is a set of consecutive positive integers beginning with 1. 1 CA-Fall 2011-Jordan College Algebra, 4 th edition, Beecher/Penna/Bittinger, Pearson/Addison Wesley, 2012 Chapter 8: Sequences, Series, and Combinatorics Section 8.1 Sequences and Series Sequences A sequence

More information

5. Sequences & Recursion

5. Sequences & Recursion 5. Sequences & Recursion Terence Sim 1 / 42 A mathematician, like a painter or poet, is a maker of patterns. Reading Sections 5.1 5.4, 5.6 5.8 of Epp. Section 2.10 of Campbell. Godfrey Harold Hardy, 1877

More information

Announcements. CS243: Discrete Structures. Sequences, Summations, and Cardinality of Infinite Sets. More on Midterm. Midterm.

Announcements. CS243: Discrete Structures. Sequences, Summations, and Cardinality of Infinite Sets. More on Midterm. Midterm. Announcements CS43: Discrete Structures Sequences, Summations, and Cardinality of Infinite Sets Işıl Dillig Homework is graded, scores on Blackboard Graded HW and sample solutions given at end of this

More information

Infinite Series. Copyright Cengage Learning. All rights reserved.

Infinite Series. Copyright Cengage Learning. All rights reserved. Infinite Series Copyright Cengage Learning. All rights reserved. Sequences Copyright Cengage Learning. All rights reserved. Objectives List the terms of a sequence. Determine whether a sequence converges

More information

Fall 2017 Test II review problems

Fall 2017 Test II review problems Fall 2017 Test II review problems Dr. Holmes October 18, 2017 This is a quite miscellaneous grab bag of relevant problems from old tests. Some are certainly repeated. 1. Give the complete addition and

More information

Basic Proof Examples

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

More information

Induction and Recursion

Induction and Recursion . All rights reserved. Authorized only for instructor use in the classroom. No reproduction or further distribution permitted without the prior written consent of McGraw-Hill Education. Induction and Recursion

More information

Climbing an Infinite Ladder

Climbing an Infinite Ladder Section 5.1 Section Summary Mathematical Induction Examples of Proof by Mathematical Induction Mistaken Proofs by Mathematical Induction Guidelines for Proofs by Mathematical Induction Climbing an Infinite

More information

{ 0! = 1 n! = n(n 1)!, n 1. n! =

{ 0! = 1 n! = n(n 1)!, n 1. n! = Summations Question? What is the sum of the first 100 positive integers? Counting Question? In how many ways may the first three horses in a 10 horse race finish? Multiplication Principle: If an event

More information

Lecture Notes: Mathematical/Discrete Structures

Lecture Notes: Mathematical/Discrete Structures Lecture Notes: Mathematical/Discrete Structures Rashid Bin Muhammad, PhD. This booklet includes lecture notes, homework problems, and exam problems from discrete structures course I taught in Fall 2006

More information

Sequences and Series. Copyright Cengage Learning. All rights reserved.

Sequences and Series. Copyright Cengage Learning. All rights reserved. Sequences and Series Copyright Cengage Learning. All rights reserved. 12.1 Sequences and Summation Notation Copyright Cengage Learning. All rights reserved. Objectives Sequences Recursively Defined Sequences

More information

16. . Proceeding similarly, we get a 2 = 52 1 = , a 3 = 53 1 = and a 4 = 54 1 = 125

16. . Proceeding similarly, we get a 2 = 52 1 = , a 3 = 53 1 = and a 4 = 54 1 = 125 . Sequences When we first introduced a function as a special type of relation in Section.3, we did not put any restrictions on the domain of the function. All we said was that the set of x-coordinates

More information

Solutions to Assignment 1

Solutions to Assignment 1 Solutions to Assignment 1 Question 1. [Exercises 1.1, # 6] Use the division algorithm to prove that every odd integer is either of the form 4k + 1 or of the form 4k + 3 for some integer k. For each positive

More information

Discrete Structures - CM0246 Mathematical Induction

Discrete Structures - CM0246 Mathematical Induction Discrete Structures - CM0246 Mathematical Induction Andrés Sicard-Ramírez EAFIT University Semester 2014-2 Motivation Example Conjecture a formula for the sum of the first n positive odd integers. Discrete

More information

Sequences and the Binomial Theorem

Sequences and the Binomial Theorem Chapter 9 Sequences and the Binomial Theorem 9. Sequences When we first introduced a function as a special type of relation in Section.3, we did not put any restrictions on the domain of the function.

More information

Induction and recursion. Chapter 5

Induction and recursion. Chapter 5 Induction and recursion Chapter 5 Chapter Summary Mathematical Induction Strong Induction Well-Ordering Recursive Definitions Structural Induction Recursive Algorithms Mathematical Induction Section 5.1

More information

Recurrence Relations and Recursion: MATH 180

Recurrence Relations and Recursion: MATH 180 Recurrence Relations and Recursion: MATH 180 1: Recursively Defined Sequences Example 1: The sequence a 1,a 2,a 3,... can be defined recursively as follows: (1) For all integers k 2, a k = a k 1 + 1 (2)

More information

Section Summary. Sequences. Recurrence Relations. Summations. Examples: Geometric Progression, Arithmetic Progression. Example: Fibonacci Sequence

Section Summary. Sequences. Recurrence Relations. Summations. Examples: Geometric Progression, Arithmetic Progression. Example: Fibonacci Sequence Section 2.4 1 Section Summary Sequences. Examples: Geometric Progression, Arithmetic Progression Recurrence Relations Example: Fibonacci Sequence Summations 2 Introduction Sequences are ordered lists of

More information

Mathematical Induction

Mathematical Induction Mathematical Induction MAT30 Discrete Mathematics Fall 018 MAT30 (Discrete Math) Mathematical Induction Fall 018 1 / 19 Outline 1 Mathematical Induction Strong Mathematical Induction MAT30 (Discrete Math)

More information

Introduction to Induction (LAMC, 10/14/07)

Introduction to Induction (LAMC, 10/14/07) Introduction to Induction (LAMC, 10/14/07) Olga Radko October 1, 007 1 Definitions The Method of Mathematical Induction (MMI) is usually stated as one of the axioms of the natural numbers (so-called Peano

More information

Propositional Logic, Predicates, and Equivalence

Propositional Logic, Predicates, and Equivalence Chapter 1 Propositional Logic, Predicates, and Equivalence A statement or a proposition is a sentence that is true (T) or false (F) but not both. The symbol denotes not, denotes and, and denotes or. If

More information

SEQUENCES, MATHEMATICAL INDUCTION, AND RECURSION

SEQUENCES, MATHEMATICAL INDUCTION, AND RECURSION CHAPTER 5 SEQUENCES, MATHEMATICAL INDUCTION, AND RECURSION Copyright Cengage Learning. All rights reserved. SECTION 5.4 Strong Mathematical Induction and the Well-Ordering Principle for the Integers Copyright

More information

MAT115A-21 COMPLETE LECTURE NOTES

MAT115A-21 COMPLETE LECTURE NOTES MAT115A-21 COMPLETE LECTURE NOTES NATHANIEL GALLUP 1. Introduction Number theory begins as the study of the natural numbers the integers N = {1, 2, 3,...}, Z = { 3, 2, 1, 0, 1, 2, 3,...}, and sometimes

More information

n f(k) k=1 means to evaluate the function f(k) at k = 1, 2,..., n and add up the results. In other words: n f(k) = f(1) + f(2) f(n). 1 = 2n 2.

n f(k) k=1 means to evaluate the function f(k) at k = 1, 2,..., n and add up the results. In other words: n f(k) = f(1) + f(2) f(n). 1 = 2n 2. Handout on induction and written assignment 1. MA113 Calculus I Spring 2007 Why study mathematical induction? For many students, mathematical induction is an unfamiliar topic. Nonetheless, this is an important

More information

We want to show P (n) is true for all integers

We want to show P (n) is true for all integers Generalized Induction Proof: Let P (n) be the proposition 1 + 2 + 2 2 + + 2 n = 2 n+1 1. We want to show P (n) is true for all integers n 0. Generalized Induction Example: Use generalized induction to

More information

Conjectures and proof. Book page 24-30

Conjectures and proof. Book page 24-30 Conjectures and proof Book page 24-30 What is a conjecture? A conjecture is used to describe a pattern in mathematical terms When a conjecture has been proved, it becomes a theorem There are many types

More information

Section Summary. Definition of a Function.

Section Summary. Definition of a Function. Section 2.3 Section Summary Definition of a Function. Domain, Codomain Image, Preimage Injection, Surjection, Bijection Inverse Function Function Composition Graphing Functions Floor, Ceiling, Factorial

More information

Data Structure Lecture#4: Mathematical Preliminaries U Kang Seoul National University

Data Structure Lecture#4: Mathematical Preliminaries U Kang Seoul National University Data Structure Lecture#4: Mathematical Preliminaries U Kang Seoul National University U Kang 1 In This Lecture Set concepts and notation Logarithms Summations Recurrence Relations Recursion Induction Proofs

More information

MEETING 9 - INDUCTION AND RECURSION

MEETING 9 - INDUCTION AND RECURSION MEETING 9 - INDUCTION AND RECURSION We do some initial Peer Instruction... Predicates Before we get into mathematical induction we will repeat the concept of a predicate. A predicate is a mathematical

More information

C241 Homework Assignment 7

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 +

More information

Advanced Counting Techniques. Chapter 8

Advanced Counting Techniques. Chapter 8 Advanced Counting Techniques Chapter 8 Chapter Summary Applications of Recurrence Relations Solving Linear Recurrence Relations Homogeneous Recurrence Relations Nonhomogeneous Recurrence Relations Divide-and-Conquer

More information

2017 Year 10 General Mathematics Topic 4: Number Patterns and Recursion

2017 Year 10 General Mathematics Topic 4: Number Patterns and Recursion 2017 Year 10 General Mathematics Topic 4: Number Patterns and Recursion This topic includes: the concept of a sequence as a function use of a first- order linear recurrence relation to generate the terms

More information

9.1 SEQUENCES AND SERIES

9.1 SEQUENCES AND SERIES 640 Chapter 9 Sequences, Series, and Probability 9. SEQUENCES AND SERIES What you should learn Use sequence notation to write the terms of sequences. Use factorial notation. Use summation notation to write

More information

Sequences. 1. Number sequences. 2. Arithmetic sequences. Consider the illustrated pattern of circles:

Sequences. 1. Number sequences. 2. Arithmetic sequences. Consider the illustrated pattern of circles: Sequences 1. Number sequences Consider the illustrated pattern of circles: The first layer has just one blue ball. The second layer has three pink balls. The third layer has five black balls. The fourth

More information

MATH10040: Chapter 0 Mathematics, Logic and Reasoning

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

More information

General Mathematics Topic 4: Number Patterns and Recursion

General Mathematics Topic 4: Number Patterns and Recursion General Mathematics Topic 4: Number Patterns and Recursion This topic includes: the concept of a sequence as a function use of a first- order linear recurrence relation to generate the terms of a number

More information

Introduction to Series and Sequences Math 121 Calculus II Spring 2015

Introduction to Series and Sequences Math 121 Calculus II Spring 2015 Introduction to Series and Sequences Math Calculus II Spring 05 The goal. The main purpose of our study of series and sequences is to understand power series. A power series is like a polynomial of infinite

More information

INFINITE SEQUENCES AND SERIES

INFINITE SEQUENCES AND SERIES 11 INFINITE SEQUENCES AND SERIES INFINITE SEQUENCES AND SERIES Infinite sequences and series were introduced briefly in A Preview of Calculus in connection with Zeno s paradoxes and the decimal representation

More information

1 Recursive Algorithms

1 Recursive Algorithms 400 lecture note #8 [ 5.6-5.8] Recurrence Relations 1 Recursive Algorithms A recursive algorithm is an algorithm which invokes itself. A recursive algorithm looks at a problem backward -- the solution

More information

Examples of Finite Sequences (finite terms) Examples of Infinite Sequences (infinite terms)

Examples of Finite Sequences (finite terms) Examples of Infinite Sequences (infinite terms) Math 120 Intermediate Algebra Sec 10.1: Sequences Defn A sequence is a function whose domain is the set of positive integers. The formula for the nth term of a sequence is called the general term. Examples

More information

Data Structure Lecture#4: Mathematical Preliminaries U Kang Seoul National University

Data Structure Lecture#4: Mathematical Preliminaries U Kang Seoul National University Data Structure Lecture#4: Mathematical Preliminaries U Kang Seoul National University U Kang 1 In This Lecture Set Concepts and Notation Relation Logarithm and Summations Recurrence Relations Recursion

More information

Name Advanced Math Functions & Statistics. Non- Graphing Calculator Section A. B. C.

Name Advanced Math Functions & Statistics. Non- Graphing Calculator Section A. B. C. 1. Compare and contrast the following graphs. Non- Graphing Calculator Section A. B. C. 2. For R, S, and T as defined below, which of the following products is undefined? A. RT B. TR C. TS D. ST E. RS

More information

Chapter 8. Sequences, Series, and Probability. Selected Applications

Chapter 8. Sequences, Series, and Probability. Selected Applications Chapter 8 Sequences, Series, and Probability 8. Sequences and Series 8.2 Arithmetic Sequences and Partial Sums 8.3 Geometric Sequences and Series 8.4 Mathematical Induction 8.5 The Binomial Theorem 8.6

More information

Chapter 11 - Sequences and Series

Chapter 11 - Sequences and Series Calculus and Analytic Geometry II Chapter - Sequences and Series. Sequences Definition. A sequence is a list of numbers written in a definite order, We call a n the general term of the sequence. {a, a

More information

Discrete Mathematics. Spring 2017

Discrete Mathematics. Spring 2017 Discrete Mathematics Spring 2017 Previous Lecture Principle of Mathematical Induction Mathematical Induction: Rule of Inference Mathematical Induction: Conjecturing and Proving Mathematical Induction:

More information

The given pattern continues. Write down the nth term of the sequence {an} suggested by the pattern. 3) 4, 10, 16, 22, 28,... 3)

The given pattern continues. Write down the nth term of the sequence {an} suggested by the pattern. 3) 4, 10, 16, 22, 28,... 3) M60(Precalculus) Evaluate the factorial expression. 9! ) 7!! ch practice test ) Write out the first five terms of the sequence. ) {sn} = (-)n - n + n - ) The given pattern continues. Write down the nth

More information

COM S 330 Lecture Notes Week of Feb 9 13

COM S 330 Lecture Notes Week of Feb 9 13 Monday, February 9. Rosen.4 Sequences Reading: Rosen.4. LLM 4.. Ducks 8., 8., Def: A sequence is a function from a (usually infinite) subset of the integers (usually N = {0,,, 3,... } or Z + = {,, 3, 4,...

More information

Induction. Induction. Induction. Induction. Induction. Induction 2/22/2018

Induction. Induction. Induction. Induction. Induction. Induction 2/22/2018 The principle of mathematical induction is a useful tool for proving that a certain predicate is true for all natural numbers. It cannot be used to discover theorems, but only to prove them. If we have

More information

Discrete Mathematics

Discrete Mathematics Discrete Mathematics I- MCA / III- CS & IS LECTURE NOTES (B. E OF VTU) VTU-EDUSAT Programme-17 Dr. V. Lokesha Professor of Mathematics DEPARTMENT OF MATHEMATICS ACHARYA INSTITUTE OF TECNOLOGY Soldevanahalli,

More information

Chapter 4 ARITHMETIC AND GEOMETRIC PROGRESSIONS 2, 5, 8, 11, 14,..., 101

Chapter 4 ARITHMETIC AND GEOMETRIC PROGRESSIONS 2, 5, 8, 11, 14,..., 101 Chapter 4 ARITHMETIC AND GEOMETRIC PROGRESSIONS A finite sequence such as 2, 5, 8, 11, 14,..., 101 in which each succeeding term is obtained by adding a fixed number to the preceding term is called an

More information

Lecture 3 - Tuesday July 5th

Lecture 3 - Tuesday July 5th Lecture 3 - Tuesday July 5th jacques@ucsd.edu Key words: Identities, geometric series, arithmetic series, difference of powers, binomial series Key concepts: Induction, proofs of identities 3. Identities

More information

Sequences and Summations. CS/APMA 202 Rosen section 3.2 Aaron Bloomfield

Sequences and Summations. CS/APMA 202 Rosen section 3.2 Aaron Bloomfield Sequences and Summations CS/APMA 202 Rosen section 3.2 Aaron Bloomfield 1 Definitions Sequence: an ordered list of elements Like a set, but: Elements can be duplicated Elements are ordered 2 Sequences

More information

INDUCTION AND RECURSION. Lecture 7 - Ch. 4

INDUCTION AND RECURSION. Lecture 7 - Ch. 4 INDUCTION AND RECURSION Lecture 7 - Ch. 4 4. Introduction Any mathematical statements assert that a property is true for all positive integers Examples: for every positive integer n: n!

More information

Sequences and Summations ICS 6D. Prof. Sandy Irani

Sequences and Summations ICS 6D. Prof. Sandy Irani Sequences and Summations ICS 6D Prof. Sandy Irani Test Poll What is your favorite flavor of ice cream? A) Vanilla B) Chocolate C) Moose Tracks D) Mint Chocolate Chip E) None of the above Sequences A sequence

More information

The following techniques for methods of proofs are discussed in our text: - Vacuous proof - Trivial proof

The following techniques for methods of proofs are discussed in our text: - Vacuous proof - Trivial proof Ch. 1.6 Introduction to Proofs The following techniques for methods of proofs are discussed in our text - Vacuous proof - Trivial proof - Direct proof - Indirect proof (our book calls this by contraposition)

More information

Chapter 8 Sequences, Series, and Probability

Chapter 8 Sequences, Series, and Probability Chapter 8 Sequences, Series, and Probability Overview 8.1 Sequences and Series 8.2 Arithmetic Sequences and Partial Sums 8.3 Geometric Sequences and Partial Sums 8.5 The Binomial Theorem 8.6 Counting Principles

More information

JUST THE MATHS SLIDES NUMBER 2.1. SERIES 1 (Elementary progressions and series) A.J.Hobson

JUST THE MATHS SLIDES NUMBER 2.1. SERIES 1 (Elementary progressions and series) A.J.Hobson JUST THE MATHS SLIDES NUMBER.1 SERIES 1 (Elementary progressions and series) by A.J.Hobson.1.1 Arithmetic progressions.1. Arithmetic series.1.3 Geometric progressions.1.4 Geometric series.1.5 More general

More information

Mathematical Induction. Section 5.1

Mathematical Induction. Section 5.1 Mathematical Induction Section 5.1 Section Summary Mathematical Induction Examples of Proof by Mathematical Induction Mistaken Proofs by Mathematical Induction Guidelines for Proofs by Mathematical Induction

More information

Complete Induction and the Well- Ordering Principle

Complete Induction and the Well- Ordering Principle Complete Induction and the Well- Ordering Principle Complete Induction as a Rule of Inference In mathematical proofs, complete induction (PCI) is a rule of inference of the form P (a) P (a + 1) P (b) k

More information

Discrete Math, Spring Solutions to Problems V

Discrete Math, Spring Solutions to Problems V Discrete Math, Spring 202 - Solutions to Problems V Suppose we have statements P, P 2, P 3,, one for each natural number In other words, we have the collection or set of statements {P n n N} a Suppose

More information

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

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

More information

1. Given the public RSA encryption key (e, n) = (5, 35), find the corresponding decryption key (d, n).

1. Given the public RSA encryption key (e, n) = (5, 35), find the corresponding decryption key (d, n). MATH 135: Randomized Exam Practice Problems These are the warm-up exercises and recommended problems taken from all the extra practice sets presented in random order. The challenge problems have not been

More information

Exercises for Discrete Maths

Exercises for Discrete Maths Exercises for Discrete Maths Discrete Maths Rosella Gennari http://www.inf.unibz.it/~gennari gennari@inf.unibz.it Computer Science Free University of Bozen-Bolzano Disclaimer. The course exercises are

More information

ARITHMETIC PROGRESSIONS

ARITHMETIC PROGRESSIONS ARITHMETIC PROGRESSIONS 93 ARITHMETIC PROGRESSIONS 5 5.1 Introduction You must have observed that in nature, many things follow a certain pattern, such as the petals of a sunflower, the holes of a honeycomb,

More information

What can you prove by induction?

What can you prove by induction? MEI CONFERENCE 013 What can you prove by induction? Martyn Parker M.J.Parker@keele.ac.uk Contents Contents iii 1 Splitting Coins.................................................. 1 Convex Polygons................................................

More information

Divisibility of Natural Numbers

Divisibility of Natural Numbers 10-19-2009 Divisibility of Natural Numbers We now return to our discussion of the natural numbers. We have built up much of the mathematical foundation for the natural numbers (N = 1, 2, 3,...). We used

More information

PRINCIPLE OF MATHEMATICAL INDUCTION

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

More information

Algorithms: Background

Algorithms: Background Algorithms: Background Amotz Bar-Noy CUNY Amotz Bar-Noy (CUNY) Algorithms: Background 1 / 66 What is a Proof? Definition I: The cogency of evidence that compels acceptance by the mind of a truth or a fact.

More information

Ready To Go On? Skills Intervention 12-1 Introduction to Sequences

Ready To Go On? Skills Intervention 12-1 Introduction to Sequences Find these vocabulary words in Lesson 12-1 and the Multilingual Glossary. Finding Terms of a Sequence by Using a Recursive Formula Find the first five terms of each sequence. A. a n a n1 1, where n 2 and

More information