Math 475, Problem Set #8: Answers

Similar documents
Solving Recurrence Relations 1. Guess and Math Induction Example: Find the solution for a n = 2a n 1 + 1, a 0 = 0 We can try finding each a n : a 0 =

Some Review Problems for Exam 2: Solutions

Exam 2 Solutions. x 1 x. x 4 The generating function for the problem is the fourth power of this, (1 x). 4

Warm-up Simple methods Linear recurrences. Solving recurrences. Misha Lavrov. ARML Practice 2/2/2014

Mathematical Induction

Math 2142 Homework 5 Part 1 Solutions

Learning Objectives

Problem Solving in Math (Math 43900) Fall 2013

Section 4.2: Mathematical Induction 1

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

Math 2602 Finite and Linear Math Fall 14. Homework 8: Core solutions

Fall 2017 Test II review problems

Seunghee Ye Ma 8: Week 2 Oct 6

Math 324 Summer 2012 Elementary Number Theory Notes on Mathematical Induction

Sequences and infinite series

Recurrence Relations and Recursion: MATH 180

5.2 Infinite Series Brian E. Veitch

What if the characteristic equation has a double root?

Methods for solving recurrences

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.

Recursion. Slides by Christopher M. Bourke Instructor: Berthe Y. Choueiry. Fall 2007

5. Sequences & Recursion

Induction 1 = 1(1+1) = 2(2+1) = 3(3+1) 2

Proof Techniques (Review of Math 271)

Math101, Sections 2 and 3, Spring 2008 Review Sheet for Exam #2:

MATH 243E Test #3 Solutions

Algebra Review. Finding Zeros (Roots) of Quadratics, Cubics, and Quartics. Kasten, Algebra 2. Algebra Review

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

How much does the cow weigh?

means is a subset of. So we say A B for sets A and B if x A we have x B holds. BY CONTRAST, a S means that a is a member of S.

Algorithm Analysis Recurrence Relation. Chung-Ang University, Jaesung Lee

Linear Recurrence Relations

Solutions to Math 41 First Exam October 18, 2012

Sequences and the Binomial Theorem

Math 192r, Problem Set #3: Solutions

12 Sequences and Recurrences

Lecture 10: Powers of Matrices, Difference Equations

Recurrence Relations

CS1800: Sequences & Sums. Professor Kevin Gold

F 2k 1 = F 2n. for all positive integers n.

Confidence intervals

AQA Level 2 Further mathematics Further algebra. Section 4: Proof and sequences

MATHEMATICAL INDUCTION

Chapter 11 - Sequences and Series

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

Sums and Products. a i = a 1. i=1. a i = a i a n. n 1

4 Linear Recurrence Relations & the Fibonacci Sequence

Introduction to Basic Proof Techniques Mathew A. Johnson

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

Example. How to Guess What to Prove

1 Examples of Weak Induction

1 Sequences and Summation

4.4 Uniform Convergence of Sequences of Functions and the Derivative

One important way that you can classify differential equations is as linear or nonlinear.

Generalization of Fibonacci sequence

Some Review Problems for Exam 3: Solutions

The trick is to multiply the numerator and denominator of the big fraction by the least common denominator of every little fraction.

Notes on generating functions in automata theory

EXAM 2 REVIEW DAVID SEAL

Second-Order Linear ODEs (Textbook, Chap 2)

Differential Equations

Introduction to Series and Sequences Math 121 Calculus II Spring 2015

Theorem (Special Case of Ramsey s Theorem) R(k, l) is finite. Furthermore, it satisfies,

General Comments on Proofs by Mathematical Induction

PHY 101L - Experiments in Mechanics

Notes for Recitation 14

MATH 115, SUMMER 2012 LECTURE 12

Defn: A linear recurrence relation has constant coefficients if the a i s are constant. Ch 14: 1, 4, 5, 10, 13, 18, 22, 24, 25 and

cse547, math547 DISCRETE MATHEMATICS Professor Anita Wasilewska

Confidence Intervals and Hypothesis Tests

Recursion: Introduction and Correctness

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.

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

After linear functions, the next simplest functions are polynomials. Examples are

Polynomial Form. Factored Form. Perfect Squares

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

Astronomy 102 Math Review

Math 111, Introduction to the Calculus, Fall 2011 Midterm I Practice Exam 1 Solutions

One sided tests. An example of a two sided alternative is what we ve been using for our two sample tests:

Algebra Exam. Solutions and Grading Guide

n(n + 1). 2 . If n = 3, then 1+2+3=6= 3(3+1) . If n = 2, then = 3 = 2(2+1)

Lesson 3-2: Solving Linear Systems Algebraically

MI 4 Mathematical Induction Name. Mathematical Induction

Discrete Math, Spring Solutions to Problems V

Lecture 2: Change of Basis

Solutions to Tutorial 4 (Week 5)

Secondary Math 2H Unit 3 Notes: Factoring and Solving Quadratics

CS1800: Strong Induction. Professor Kevin Gold

Sequences and Series, Induction. Review

Quiz 3 Reminder and Midterm Results

Calculus II. Calculus II tends to be a very difficult course for many students. There are many reasons for this.

Solving Equations. Another fact is that 3 x 4 = 12. This means that 4 x 3 = = 3 and 12 3 = will give us the missing number...

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

1 Recurrence relations, continued continued

2. Duality and tensor products. In class, we saw how to define a natural map V1 V2 (V 1 V 2 ) satisfying

Honors Advanced Mathematics Determinants page 1

6.042/18.062J Mathematics for Computer Science. Induction I

MEETING 9 - INDUCTION AND RECURSION

ASSIGNMENT 12 PROBLEM 4

1 Direct Proofs Technique Outlines Example Implication Proofs Technique Outlines Examples...

Transcription:

Math 475, Problem Set #8: Answers A. Brualdi, problem, parts (a), (b), and (d). (a): As n goes from to 6, the sum (call it h n ) takes on the values,, 8, 2, 55, and 44; we recognize these as Fibonacci numbers, so we conjecture that h n = f 2n. To prove this by induction, we first note (base case) that for n =, h = f = = f 2 = f 2n, and that for larger n, if we assume (induction hypothesis) that h n = f 2n, then h n+ = h n + f 2n+ = f 2n + f 2n+ = f 2n+2 = f 2(n+), as desired. (b): As n goes from 0 to 6, the sum (call it h n ) takes on the values 0,, 4, 2,, 88, and 22; we recognize these as less than Fibonacci numbers, so we conjecture that h n = f 2n+. To prove this by induction, we first note (base case) that for n = 0, h 0 = f 0 = 0 = = f, and that for larger n, if we assume (induction hypothesis) that h n = f 2n+, then h n+ = h n +f 2(n+) = f 2n+ +f 2n+2) = f 2n+, as desired. (d): As n goes from 0 to 6, the sum (call it h n ) takes on the values 0,, 2, 6, 5, 40, and 04; we recognize these as products of consecutive Fibonacci numbers, so we conjecture that h n = f n f n+. To prove this by induction, we first note (base case) that for n = 0, h 0 = f 2 0 = 0 = (0)() = f 0 f, and that for larger n, if we assume (induction hypothesis) that h n = f n f n+, then h n+ = h n + (f n+ ) 2 = f n f n+ + (f n+ ) 2 = f n+ (f n + f n+ ) = f n+ f n+2, as desired. B. Brualdi, problem 9. First solution: We imitate the example from the chapter, on page 22. Let n 2. If the first square is blue, or the first square is white, then the coloring can be completed in h n ways. If the first square is red, then the second square must be colored blue or white, and after that the coloring can be completed in h n 2 ways. Hence h n = h n + h n + 2h n 2 = 2h n + 2h n 2. The characteristic equation is x 2 2x 2, and the characteristic roots are (2 ± 4 + 8)/2 = ±, so the general formula for h n is of the form c ( + ) n + c 2 ( ) n. To solve for c and c 2, we use the initial conditions h 0 = and h = : = c + c 2,

= c ( + ) + c 2 ( ). This system of linear equations has the solution c = 2 +, c2 = 2. So h n = ( 2 + )( + ) n + ( 2 )( ) n. Second solution: We will show that this is the same problem as the Example on page 22 of the text, in a colorful disguise! Given a lengthn string of a s, b s, and c s in which no two a s appear consecutively, we can create a correspond coloring of the -by-n chessboard in which (reading from left to right) each a corresponds to a red square, each b corresponds to a white square, and each c corresponds to a blue square. The result is a coloring in which no two squares that are colored red are adjacent. Furthermore, given any such coloring, we can represent each red square by an a, each white square by a b, and each blue square by a c; the result is a string of a s, b s, and c s in which no two a s appear consecutively. Thus we have established a one-to-one correspondence between the words of length n discussed on page 22 and the colorings discussed in problem 7. It follows that the two sets are of the same size. That is, the number of permitted colorings of the -by-n chessboard equals the number of permitted words of length n, which (see the middle of page 224) is equal to 2+ 2 ( + ) n + 2+ 2 ( ) n. C. Solve the recurrence relation h n = nh n + n, (n ) with the initial value h 0 = 0. It is not enough to guess the pattern; you must prove it using induction. As n goes from 0 to 6, h n takes on the values 0, 0,, 5, 2, 9, and 79; we recognize these as less than the factorial numbers, so we conjecture that h n = n!. To prove this by induction, we first note (base case) that for n = 0, h 0 = 0 = = 0!, and that for larger n, if we assume (induction hypothesis) that h n = n!, then h n+ = (n+)h n +n = (n+)(n! )+n = (n+)n! (n+)+n = (n+)!, as desired. Note that the recurrence is a linear recurrence but that it does not have constant coefficients; hence the methods of sections 7.2 and beyond do 2

not apply. That is why we had to resort to the method of section 7.: guessing the answer, and then proving it by induction. If you guessed the right answer, but gave a specious justification saying things like the characteristic polynomial is x 2 n, you will get f ewer points than if you guessed the right answer and simply said I don t know how to prove this. (Note: even if you can t guess the answer to a problem like this, you can still get partial credit for saying things that show some knowledge or insight, such as The coefficient of h n on the right-hand side isn t a constant, so the methods we learned in section 7. and in class don t apply. However, if you write the characteristic polynomial is x 2 nx + n, then you ve misunderstood an important point. This linear recurrence doesn t have a characteristic polynomial. A characteristic polynomial must have constant coefficients; that is, it must be an equation in x alone. We can t have n s floating around.) D. Brualdi, problem 4. (Use the method given in the book.) The characteristic equation x x 2 9x + 9 = 0 has roots,, and, so the formula for h n is of the form h n = c + c 2 n + c ( ) n. To solve for c, c 2, and c, we use the initial conditions: 0 = h 0 = c + c 2 + c, = h = c + c 2 c, 2 = h 2 = c + 9c 2 + 9c. If we subtract the first equation from each of the other two, we get = 2c 2 4c, 2 = 8c 2 + 8c. If we subtract 4 times the first new equation from the second new equation, we get 2 = 24c. So c = /2. Plugging this back into either of the equations that involve only c 2 and c, we can solve for c 2, obtaining c 2 = /. Plugging these two values back into the first equation, we get c = /4. Hence

h n = ( /4) + (/) n (/2)( ) n. It s extremely easy to make mistakes in these calculations, so it s wise to check this by plugging in small values of n. E. Brualdi, problem 5. (Use the method given in the book.) The characteristic equation x 2 8x + 6 = 0 has 4 as a double root, so the formula for h n is of the form h n = c 4 n + c 2 n4 n. To solve for c and c 2, we use the initial conditions: = h 0 = c 0 = h = 4c + 4c 2. The first equation gives c =, and plugging this into the second equation gives c 2 =. Hence h n = 4 n + n4 n. F. Brualdi, problem 26. (Use the method given in the book.) First, let me show the method you re not supposed to use (namely, the method I demonstrated in class), because in this problem I asked you to use Brualdi s method. The characteristic equation of the homogeneous recurrence is x 2 6x + 9 = 0. The sequence of nonhomogeneous correction terms b n = 2n, satisfies the homogeneous recurrence b n 2b n + b n 2 = 0; the characteristic equation of this recurrence is x 2 2x +. Therefore, by the theorem discussed in class, the sequence h n has characteristic equation (x 2 6x + 9)(x 2 2x + ) = 0, which has as a double root and as a double root. Therefore the formula for h n is of the form h n = c + c 2 n + c n + c 4 n n. To solve for c, c 2, c, and c 4, we need h 0, h, h 2, and h. The first two are given to us by the initial conditions, we determine the other two by the recurrence: h 2 = 6h 9h 0 + 4 = 6(0) 9() + 4 = 5, h = 6h 2 9h + 6 = 6( 5) 9(0) + 6 = 24. Now we can set up a system of linear equations in the unknown coefficients c, c 2, c, c 4 : = h 0 = c + c, 0 = h = c + c 2 + c + c 4, 5 = h 2 = c + 2c 2 + 9c + 8c 4, 24 = h = c + c 2 + 27c + 8c 4. 4

Solving, we get c =, c 2 2 =, c 2 =, c 2 4 =. So h 6 n = + n 2 2 2 n 6 nn. Secondly, let s do a hybrid solution to the problem, where our ability to guess a particular solution is informed by our understanding of the method discussed in class: Since the characteristic polynomial of the homogeneous recurrence is x 2 6x+9 = (x ) 2, the general solution to the homogeneous recurrence is of the form c n +c 2 n n. Since we know (from the preceding solution) that there is a formula for h n as a linear combination of the sequences n, n n, n, and n n, we guess that we can build a particular solution to the non-homogeneous recurrence by using the first two sequences as building blocks (since the last two are already appearing in the general solution to the homogeneous second-order recurrence). So, we guess that we can find a particular solution h n to the original non-homogeneous recurrence, with h n a linear combination of n and n n, that is, with h n a linear function of n. Write h n = a + bn. Plugging this into the recurrence h n 6h n + 9h n 2 = 2n, we get (a+bn) 6(a+b(n ))+9(a+b(n 2)) = 2n or (4a 2b)+(4b)n = 2n. Since this must be true for all n, we have 4a 2b = 0 and 4b = 2, so that b = /2 and a = /2. So the general solution to the original nonhomogeneous recurrence is given by h n = + n + c 2 2 n + c 2 n n. Now we can set up a system of linear equations in the unknown coefficients c, c 2 : = h 0 = /2 + 0 + c + 0, 0 = h = /2 + /2 + c + c 2. Solving, we get c = 2, c 2 = 6. So h n = 2 + 2 n 2 n 6 nn. Thirdly, here is the solution I m sure Brualdi had in mind (and which I wanted you to rediscover in this assignment). Observe that the nonhomogeneous part of the equation, +2n, is very similar to the nonhomogeneous part of the equation given in the Example on page 20, 4n. Since the trick in that problem was to guess that there is a particular solution of the form h n = rn + s, we should try the same thing here, writing h n = a + bn. Now proceed as in the previous paragraph. 5