I am trying to figure out how to solve this summation:
$$\sum_{k=0}^{\log_{2}n}\frac{n}{2^k}$$.
(k and n are positive real integers)
I recognize that this is a geometric series if we do this:
$$\sum_{k=0}^{\log_{2}n}n\cdot 2^{-k}$$
Im confused on where to solve it because of the $\log_{2}n$.
$$S=n\sum_{k=0}^{-1+\log_2 n} 2^{-k} = \frac{2^{-(\log_2 n)}-1}{1/2-1} = n \frac{1/n-1}{-1/2}=2(n-1).$$ and $$S=n\sum_{k=0}^{\log_2 n} 2^{-k} = n \frac{2^{-(\log_2 n)-1}-1}{1/2-1} = n \frac{1/(2n)-1}{-1/2}=2n-1.$$ So $\log_2 n$ not being an integer, we may assert that $$2n-2 <S_n <2n-1.$$ I guess nothing better than this could be done.