Let $L(n) = n + 2 L\left(\frac{n}{2}\right), \, L(1) = 1,$
and $U(n) = 9n + 2U\left(\frac{n}{2}\right), \, U(1) = 9.$
Prove by induction that $U(n) = 9L(n)$ where $n = 2^k$.
I attempted to prove this question but I did not get the correct end result to prove it.
Can someone please help me with this induction proof? Help would greatly be appreciated.
Thank you.
Assume $U(n)=9L(n)$, you already have the base case established. This also means it holds for all $k<n$, namely $\frac{n+1}{2}<n$. Then,
$U(n+1) = 9(n+1) + 2U(\frac{n+1}{2}) = 9n + 9 + 9*2L(\frac{n+1}{2})$.
But,
$L(n+1) = (n+1) + 2L(\frac{n+1}{2}) $
$\Rightarrow 2L(\frac{n+1}{2}) = L(n+1)-n-1$.
Then, since $\frac{n+1}{2}<n$, we have
$U(n+1) = 9n + 9 + 9(L(n+1)-n-1) = 9L(n+1)$,
as desired.