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

what is 10 times 10 pls

Determine the centralizer and the order of the conjugacy: 1)      Determine the centralizer and the order of the conjugacy class of the matrix [1, 1; 0, 1] in Gl­ 2 (F 3 ).

Basic indefinite integrals The first integral which we'll look at is the integral of a power of x.                                ∫x n dx = (x n +1 / n + 1)+ c,          n

A Cleaning solution has 40% vinegar. Find the amount of vinegar in 32 ounces of the solution>

how to divide an arc in three equal parts

A car was machine washes every car in 5 minutes accurately. It has been calculated that customers will arrive as per to a Poisson distribution at an average of 8 per hour. Calculat

What is Angle Pairs? Two angles are adjacent angles if they have the same vertex and share one side. Vertical angles are a pair of nonadjacent angles formed by two intersecting

my daughter brought home home work im not sure how to do it the fractions has to be labled from least to greatest

tell me about the software of compound intrest?