I have a recurrence relation:
T(n)=4 for n<=2
T(n)=3T(n/3)+5 for n>2
So I began solving it,
T(n/3)=3T(n/9)+5
then
T(n)=3(3T(n/9)+5)+5
= 3^k T(n/3^k)+5k
letting k=log_3_n
= 3^log_3_n T(n/3^log_3_n)+5log_3_n
= nT(1)+5log_3_n
= 4n+5log_3_n
Is this the correct answer? I am confused on the part where there is +5k. Is that part correct?
Yes, that is correct. I don't see any problems with your answer.