Just so no one thinks I am trying to get one over on anyone, this is a homework question. I have solved all the other problems, but I don't know where to begin with this one. I am not asking for an answer, just a direction or hint (that I can understand).
Prove by induction that if $T(n) = 1 + T(⌊/2⌋), T(0) = 0$, and $2^{r-1} \leq < 2^ , r ≥ 1$ then $T(n) = r$ (Hint: use induction on r.)
How does T(0) = 0? If I plug n=0 in, would the function not return 1? The floor of T(0/2) is still going to be 0, so calling T(⌊/2⌋) would return 1 still, no? I am clearly missing something.
Additionally, the hint says to use induction on r, but how does that help me with T(n)?
Thanks for any insight provided.