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
Hyperbolic Paraboloid- Three Dimensional Space The equation which is given here is the equation of a hyperbolic paraboloid. x 2 / a 2 - y 2 / b 2 = z/c Here is a dia

maths projects for class 11

If p=10 when q=2,find p when q=5

hi i would like to ask you what is the answer for [-9]=[=5] grade 7

What is the slope of the line tangent to f(x)=3-2 ln(2x^2+4) at the point (4, f(4))

reflection about index number in a creative way

Describe what is meant by each of the following NVH terms and explain their importance in vehicle refinement: (a)  Vibration absorber (b)  Fast Fourier Transform (c)  Whit

Here we learn: 1) Discussed what counting means, and stressed that it is not the ability to recite number names. 2) Talked about the need for a child to understand several pr

1.)3 3/8 divided by 4 7/8 plus 3 2.)4 1/2 minus 3/4 divided by 2 3/8

Write down two more reasons why children consider 'division' difficult. Regarding the first reason given above, one of fie few division related experiences that the child perhaps d