What is the result of this sum, for big values of n?

48 Views Asked by At

The sum is the following: $$\sum_{i=0}^{n-1} \left[i\frac{2^i}{2^n-1}\right]$$

I know that the result of this sum, for big values of $n$, should be $n-2$, but I am not aware of the procedure used to get to this solution.

1

There are 1 best solutions below

0
On BEST ANSWER

Hint

You have

$$S_n(x) = \sum_{i=0}^{n-1} x^i = \frac{1-x^n}{1-x}$$

Hence

$$\sum_{i=0}^{n-1} i x^i = x S_n^\prime(x)$$

and finally

$$\sum_{i=0}^{n-1} i*\frac{2^i}{2^n-1} = \frac{2}{2^n-1}S_n^\prime(2)$$