I have the recurrence relation as follows:
$T(n) = 3T(n-1) - 15$
$T(1) = 8$
In looking for the closed form, I decided to expand try it out a few times.
$T(1) = 8$
$T(2) = 3T(1) - 15 == 3(8) - 15 = 9$
$T(3) = 3T(2) - 15 == 3(9) - 15 = 12$
$T(4) = 3T(3) - 15 == 3(12) - 15 = 21$
$T(5) = 3T(4) - 15 == 3(21) - 15 = 48$
At this point in time, I start to see if I notice any patterns that I might be able to pick apart. The only pattern I notice is in the $3(8),3(9),3(12),3(21)$ part of the equation.
T=2 The difference between 8 and 9 is $1 = 3^0$
T=3 The difference between 9 and 12 is $3 = 3^1$
T=4 The difference between 12 and 31 is $9 = 3^2$
T=5 The difference between 21 and 48 is $27 = 3^3$
Now that I've found a pattern, I struggle to relate it to a closed form expression. Using this knowledge, what would be my next step?
$T(n) = 3T(n-1) - 15$, so also $T(n-1) = 3T(n-2) - 15$, thus $$T(n) = 3(3T(n-2) - 15) - 15=3^2T(n-2)-(1+3)\cdot 15$$
Again: $T(n-2) = 3T(n-3) - 15$, so $$T(n) = 3^2(3T(n-3) - 15)-(1+3)\cdot 15=3^3T(n-3)-(1+3+3^2)\cdot 15$$
Go on like this (possibly use induction) to obtain $$T(n) = 3^kT(n-k)-15\sum_{i=0}^{k-1}3^i$$
This stops as soon as $k=n-1$, so $$T(n) = 3^{n-1}T(1)-15\sum_{i=0}^{n-2}3^i=8\cdot 3^{n-1}-15\frac{1-3^{n-1}}{1-3}=\frac{1}{6}(3^n+45)$$