Recurrence Solution does not satisfy base case

40 Views Asked by At

Can someone tell me what am i doing wrong here ? My base case i.e. T(4)=12

T(n)=2T(n/2)+8n , T(4)=12

=2^(2)*T(n/2^2)+2*8n

=2^(i)*T(n/2^i)+i*8n

so let, n/2^(i) = 4 so, i=lgn-2

=2^(lgn-2)12 + (lgn-2) 8n