- #1
jokiemay
- 18
- 0
Hi all, I've been struggling with a large piece of coursework. been quite stressed latley and now I am struggling while aproaching my deadline. i need help answering this question.
Use mathematical induction to show that
S(n) = 3 × 2 n-1 -2
is the solution for the recurrence relation:
T(n) = 2T(n – 1) + 2 for n > 1 and T(1) = 1
Ive answered so far
Base T(1)=1
LS : T2 = 12 = 1 RS: 1T = 1(1) = 1
So n > 1 is True
Induction T(n) = 2T(n-1) + 2 for all n > 1
T(n) = 2T(n – 1) + 3
= 2T (n -1) + 3
= 2(2T(n − 2) + 1) + 1
=2( n + 4) 2n-1 -2
= 6n -3
S(n) = 3 × 2 n-1 -2
Im really confused - can you guys help out
Use mathematical induction to show that
S(n) = 3 × 2 n-1 -2
is the solution for the recurrence relation:
T(n) = 2T(n – 1) + 2 for n > 1 and T(1) = 1
Ive answered so far
Base T(1)=1
LS : T2 = 12 = 1 RS: 1T = 1(1) = 1
So n > 1 is True
Induction T(n) = 2T(n-1) + 2 for all n > 1
T(n) = 2T(n – 1) + 3
= 2T (n -1) + 3
= 2(2T(n − 2) + 1) + 1
=2( n + 4) 2n-1 -2
= 6n -3
S(n) = 3 × 2 n-1 -2
Im really confused - can you guys help out
Last edited by a moderator: