

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
This document is an exercise sheet. You can find 2 exercises on how to prove the algorithm. In this part, you can exercise about iterative algorithm.
Typology: Exercises
1 / 2
This page cannot be seen from the preview
Don't miss anything!


ANSWER No. 1 Recall on mathematical induction : Claim for all n โ N, 1 + 2 + โฆ + n = ๐(๐+ 1 ) 2 When using induction to prove that some statement concerning the positive integer is true, the following terminology is used :
1 (or another initial value)
1 ( 1 + 1 ) 2 (True) Induction hypothesis : Assume, for an arbitrary positive integer n, that 1 + 2 + โฆ + n = ๐(๐+ 1 ) 2 Induction step : We need to prove that 1 + 2 + โฆ + n + (n + 1) = (๐+ 1 )(๐+ 2 ) 2 To that end , = ๐(๐+ 1 ) 2 + (n + 1) = ๐^2 +๐ 2 + (n + 1) = ๐^2 + 3 ๐+ 2 2 = (๐ง+๐)(๐+๐) ๐ (proved) ANSWER No. 2 Claim for all n โ N, Induction base : for n = 1 (1 + x)^1 > 1 + 1.x (True) Induction hypothesis : Assume, for an arbitrary positive integer n, that (1 + x)n+1^ > 1 + (n + 1)x Induction step : We need to prove that (1 + x)n+1^ > 1 + (n + 1)x (1 + x)n+1^ > (1 + x)n^ (1 + x)^1 (1 + x)n+1^ > (1 + x) (1 + nx) (1 + x)n+1^ > 1 + (n + 1)x + nx^2 nx^2 must be > 0, then it can be excluded (1 + x)n+1^ > 1 + (n + 1)x (proved)