This equation below must solved by converting it from a non-homogenous equation into a homogenous one and then use the characteristic equation.
T(1)= 5
T(n)= 2T(n−1)+3n+1,n>1
In the text and pictures that follow, I show how I solved and verified using the telescoping equation and summations. I need to reach the same answer using converting it from a non-homogenous equation into a homogenous one and then use the characteristic equation, but I am not sure what is the best way to approach this?
Part 1:
T(1) = S(n)
( (2T(n-1)) / 2^n ) = ( T(n-1) / 2^(n-1) ) = S(n-1)
( T(n) / 2^n ) = s(1) = (s / 2)