Use mathematical induction and prove equation, Mathematics

1. Use mathematical induction to prove

2093_mathamatical induction.png

whenever n is a positive integer.

2. Use loop invariant to prove that the program for computing the sum of 1,...,n is correct.

INPUT: Integer n

OUTPUT: The sum of 1,...,n

S(n)

1. i ← 0

2. while n>0

3. do i ← i + n

4. n ← n-1

5. return(i)

Posted Date: 3/28/2013 2:12:20 AM | Location : United States







Related Discussions:- Use mathematical induction and prove equation, Assignment Help, Ask Question on Use mathematical induction and prove equation, Get Answer, Expert's Help, Use mathematical induction and prove equation Discussions

Write discussion on Use mathematical induction and prove equation
Your posts are moderated
Related Questions
#questi0+50x1-60-60x0+10on..

Business Applications In this section let's take a look at some applications of derivatives in the business world.  For the most of the part these are actually applications wh

Reduction formulae Script for Introduction: First let us know what is meant by reduction formula. In simple words,                 A formula which expressess(or re

find the area of this figure in square millimeter measure each segment to the nearest millmeter

|a.x|=1 where x = i-2j+2k then calculate a

Sales price of a compact disc player is $200, each new cd is on sale for $12. kyle purchases a player and some cds for $224. how many cds were purchased?

round to the nearest ten to estimate , 422+296



A national study found that treating people appropriately for high blood pressure decreased their overall mortality rate by 20%. Treating people adequately for hypertension has bee