The question: solve by recurrence relation using forward substitution and verify by mathematical induction.
$$ \begin{align} &T(n) = 3T(n/3) \quad \text{for $n>1$, $n$ a power of $3$} \\ &T(1) = 2 \\ &T(3) = 3T(1) = 3 * 2 = 6 \\ &T(9) = 3T(3) = 3 * 6 = 18 \\ &T(27) = 3T(9) = 3 * 18 = 54 \\ &T(n) = 2n \\ \end{align} $$
Induction Base: $T(1) = 2 * 1 = 2$
Anyone know if I'm on the right lines, just need a push in the right direction as I am unable to prove:
$$ T(n+1) = 2n+1 $$