- Let $T(0) = 0$ and $T(n) = 1 + T(n/2)$ for $n > 0$. Which one of the following is a solution for $T(n)$ when $n = 2^{m}$.
a. $T(2^{m}) = m + 1$
b. $T(2^{m}) = m$
c. $T(2^{m}) = m - 1$
d. $T(2^{m}) = 2m$
e. $T(2^{m}) = 2^{m}$
- $f$ a recurrence relation $S(k)$ has the characteristic equation $x^{2} - 6x + 9 = (x - 3)^{2}$ then which one of the following is the correct form of the general solution of $S(k)$?
Select one:
a. $a3^{k} + b3^{k}$
b. $a(-6)^{k} + b9^{k}$
c. $(a + bk)(-3)^{k}$
d. $a3^{k}$
e. $(a + bk)3^{k}$
Could help me solve the approach to solving these substitution problems, I know the answers are a and e respectively, but I start I am not able to arrive at those answers . Thanks for any help