How do I solve the following recurrence?
$$T(n) = 2T(n-2) + 4$$
I've looked online and there are only examples for how to do it without the constant at the end, and I've tried leaving it in to get a characteristic equation of $r^2 = 6$ but that didn't work either.
Also, how would I solve something like the following,
$$T(n) = T(n / 2) + c$$
where $c$ is some arbitrary constant? Note that the second one is easy to solve by inspection, but i wanted to know if there is a systematic way.