DOC PREVIEW
UCF COT 3100 - COT 3100 Recitation on induction

This preview shows page 1 out of 3 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 3 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 3 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

COT3100 Summer’2001Recitation on induction (Solutions)07/12/20011. Use mathematical induction to prove that 3 divides n3 +2n whenever n is a nonnegative integer. , We are going to prove by induction on n 0, that n3 +2n is divisible by 3.Basis. n =0. 03+0=0 is divisible by 3, so the proposition holds for n=0.IH. Assume that the proposition is true for n = k, where k is some integer, k  0. In other words we assume that k3 +2k is divisible by 3, i.e. k3 +2k = 3p, p is an integer.IS . We need to prove that (k+1)3+2(k+1) is divisible by 3. (k+1)3+2(k+1) = k3+3k2+3k+1+2k+2= = (k3 +2k) +3(k2+k+1) = 3p +3 (k2+k+1) by IH Since both terms have factor 3, the sum is divisible by 3. So, induction step is proved.By Induction Principle the proposition is true for any n.2. Use induction to prove that 3+35+352+… +35n = 3(5n+11)/4We are going to prove by induction on n 0 that the equality is true.Basis. n =0. LHS =3, RHS=3(50+11)/4=3. So, LHS=RHS.IH. Assume that the proposition is true for n=k, where k is some integer k0. In other words we assume that for some k0 3+35+352+… +35k = 3(5k+11)/4IS. We need to prove that 3+35+352+… +35k + 35(k+1) = 3(5(k+1)+11)/43+35+352+… +35k + 35(k+1) = 3(5k+11)/4 + 35(k+1) (by IH)= 3(5k+11)/4 + 345(k+1)/4 =3(5 5k+11)/4 = 3(5(k+1)+11)/4 (algebra)So, IS is proved and by Induction principle the formula is proved for any n 0.3. Prove that for any n >1nn121...914112We are going to prove it by induction on n  2.Basis. n =2, LHS=1+1/4=5/4, RHS=2(1/2)=3/2, LHS<RHS.IH. Assume that the inequality holds for n=k, where k is some integer k  2, i.e. we assume that for some k  2 kk121...914112IS. We need to prove that )1(12)1(11...9141122kkkLHS= 222)1(112)1(11...91411kkkk, by IH.To prove inductive step it is sufficient to show that 112)1(1122kkkWe can note that 2)1(1)1(1111kkkkk, since k<k +1.By rearranging the terms we can get what we need, 111)1(12kkkIn this way the inductive step is proved. By induction principle the inequality is true for any n >1.4. Harmonic numbers Hk , k =1, 2, 3, …are defined bykHk1...31211 .Use mathematical induction to prove that 212nHnBasis. n =1, LHS=23211221HH, RHS =23211  and the proposition 2323 is true. IH. Assume that for n =k, where k is some integer k 1, the inequality is true, i.e.212kHkIS. We need to prove that 21112kHk. By the given definition of harmonic function we have 121221...12121...12121...312111kkkkkkkHHBy IH we have 1221...121211kkkHkTo prove inductive step it is sufficient to show that 2121...1211kk.In the left hand side we have the sum of kkkk2)12(2221terms and each term12122121kkkks, so that the total sum is 2121221...12111 kkkk. We proved inductive step, and by induction principle the inequality is true for all integer n 1.5. Prove by induction that for any integers a and b (ab) | (anbn), where n is a positive integer, n 1. We are going to prove by induction on n1, that for any integers a and b, (anbn) is divisible by (ab). By the definition of divisibility it is sufficient to prove that for any n 1, for any a and b there exists an integer m such that (anbn)=m(ab). Basis. n=1, (ab) = 1(ab).IH. Assume that proposition is true for n=k, where k is some integer, k1. In other words, we assume that for some k1 and any a and b there exists an integer m such that (akbk)=m(ab).IS. We need to prove that the proposition holds for n=k+1, i.e. for any a, b there exists some integer s, such that (ak+1bk+1)=s(ab)To reduce k+1 case to the case n=k, we consider the following identity: ak+1bk+1= a(akbk)+a bkbk+1= a(akbk)+bk (ab)By IH we have for these a and b some integer m such that (akbk)=m(ab), so:a(akbk)+bk (ab) =a m(ab) + bk (ab)So, ak+1bk+1= (ab) (a m+ bk)= (ab) s, where s= a m+ bk.We proved IS, and by Induction Principle the proposition is true for any n 1.6. A sequence of numbers an is defined recursively as follows: a0=0;an+1=2an+1, for n0 Prove that an=2n1.Proof by induction on n0, that the recursively defined sequence satisfies the closed formula an=2n1.Basis. n=0, a0=0, that agrees with the formula a0= 201=11=0.IH. Assume that for n =k, k is an integer k0, that the formula is correct, i. e. ak=2k1.IS. We need to prove the formula for n =k+1, i.e . that ak+1=2k+11.ak+1=2ak+1 (by recursive definition) = 2(2k1)+1 (by IH) =


View Full Document

UCF COT 3100 - COT 3100 Recitation on induction

Documents in this Course
Lab 1

Lab 1

11 pages

Functions

Functions

10 pages

Load more
Download COT 3100 Recitation on induction
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view COT 3100 Recitation on induction and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view COT 3100 Recitation on induction 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?