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
WHICH LIFE PROBLEMS CAN BE SOLVED USING THE KNOWLEDGE OF DIFFERNTIAL EQUATIONS?

What is a close figure in plane?

Define a Hamilton path. Determine if the following graph has a Hamilton circuit. Ans: A path is known as a Hamiltonian path if it consists of every vertex of the graph e

Evaluate given integrals.                ∫3/(5 y + 4)   dy Solution Let's notice as well that if we take the denominator & differentiate it we get only a constant and th



students dont retain the topic, hoe to make it easier?

what is the difference between North America''s part of the total population and Africa''s part

We have seen that if y is a function of x, then for each given value of x, we can determine uniquely the value of y as per the functional relationship. For some f

a hollow cone is cut by a plane parallel to the base and the upper portion is removed. if the volume of the frustum obtained is 26/27 of volume of the cone. find at what height abo