I need hints on solving this summation.
Problem
$\sum_{i=1}^n i \cdot 2^{i-1} = \ldots$
Thanks in advance.
I need hints on solving this summation.
Problem
$\sum_{i=1}^n i \cdot 2^{i-1} = \ldots$
Thanks in advance.
Using a geometric series we define a polynomial by $$f(x)=\sum_{i=0}^nx^i=\frac{1-x^n}{1-x}$$ is the sum of the first n terms of a geometric progression. This is a standard result about geometric progression - if you are unfamiliar I believe others have added notes to guide you.
Now, our function $f$ is indeed differentiable as it is a finite polynomial.
So $$\begin{align*} \sum_{i=1}^nix^{i-1}&=\frac d{dx}\left(\sum^n_{i=0}x^i\right) \\&=\frac d{dx}\left(\frac{1-x^n}{1-x}\right) \end{align*}$$
paying close attention to the sum index. Can you take it from here?
$\sum_{i=1}^n ix^{i-1} = \dfrac{nx^{n-1} (x - 1) - x^n + 1}{(x-1)^2} $.
Then, I substitute $x = 2$, and I get
$n\cdot 2^{n-1} - 2^n + 1$.
What is wrong with my work?
– Muhamad Abdul Rosid Sep 23 '17 at 05:40Let $S= \sum_{i=1}^{n} i.2^{i-1} = 1(1) + 2(2) + 3(4) + 4(8) + ... + n(2^{n-1}) $
$\quad\qquad\qquad 2S = \sum_{i=1}^{n} i.2^{i} = 1(2) + 2(4) + 3(8) + ... + (n-1)(2^{n-1}) + n(2^n)$
Therefore, $2S-S = -(1+2+4+8+... + 2^{n-1}) + n(2^n) = - (2^n-1) + n(2^n)=2^n(n-1) +1$
$\sum_{i=1}^{n}i\times x^{i-1} = (\sum_{i=1}^{n}x^{i})' = (\frac{x^{n+1}-x}{x-1})' = \frac{\big((n+1)x^{n} - 1\big)(x-1) - (x^{n+1}-x)}{(x-1)^{2}} $
Let $x=2$. Then, $\sum_{i=1}^{n}i\times 2^{i-1} = \big((n+1)2^{n} - 1\big) - (2^{n+1}-2)$