Question

Solve the recurrence relation using iterative method subject to the basis step [13 points] s(1)=1 s(n)=s(n-1)+(2n-1),for...

Solve the recurrence relation using iterative method subject to the basis step [13 points] s(1)=1 s(n)=s(n-1)+(2n-1),for n≥2 Then, verify the solution by using mathematical induction [7 points]

0 0
Add a comment Improve this question Transcribed image text
Answer #1

`Hey,

Note: Brother in case of any queries, just comment in box I would be very happy to assist all your queries

Given s(n)=s(n-1)+(2n-1)

So,

s(n)=(s(n-2)+(2n-3))+2n-1

So,

s(n)=s(n-3)+(2n-5)+(2n-3)+(2n-1)

..

..

..

..

s(n)=s(n-(n-1))+(2n)*(n-1)-(1+3+5....n-1 terms)

So,

s(n)=1+2n*(n-1)-((n-1)/2)*(2+(n-2)*2)=n^2

So,

s(n)=n^2

Base case: n=1

So,

s(1)=1

which is trrue

Now consider for kth term as true

s(k)=k^2

So, for

s(k+1)=s(k)+2k+1=k^2+2k+1=(k+1)^2

Which is true

So, we can say that it is true for all n

Proof by induction

Kindly revert for any queries

Thanks.

Add a comment
Know the answer?
Add Answer to:
Solve the recurrence relation using iterative method subject to the basis step [13 points] s(1)=1 s(n)=s(n-1)+(2n-1),for...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT