Question
NEED ASAP WILL RATE RIGHT AWAY
1,nEN s) (0 27.For thefollowing recurrence relation: T(1)2,T(n) 2(n1)z1,n a. Find the first 6 terms. b. Find the closed form solution.
0 0
Add a comment Improve this question Transcribed image text
Answer #1

The first six terms are:

T(1)= 2

T(2) = 2*T(1)-1= 3

T(3) = 2*T(2) - 1 = 5

T(4) = 2*T(3)-1 = 9

T(5) = 2*T(4)-1= 17

T(6) = 2*T(5)-1 = 33

So, the first six terms are 2,3,5,9,17,33.

b. Closed form solution:

T(n)= 2*T(n-1) - 1

= 2*(2*T(n-2)-1)-1

= 2*(2*(2*T(n-3)-1)-1)-1

= 23T(n-3) -22- 2 - 20

= 23T(n-3) - (23-1)

= 2n-1T(n-(n-1)) - (2n-1-1)

= 2n-1T(1) - (2n-1-1)

= 2n-1*2- 2n-1 +1

= 2n- 2n-1 +1?

So, closed form solution is T(n)= 2n- 2n-1 +1?

Add a comment
Know the answer?
Add Answer to:
NEED ASAP WILL RATE RIGHT AWAY 1,nEN s) (0 27.For thefollowing recurrence relation: T(1)2,T(n) 2(n1)z1,n a....
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