Show by induction that the following formulas hold.
$\sum_{i=1}^n n2ⁿ = (n-1)2^{n+1} + 2$
What did a similar problem to this but this one is a little different. I think is because this one has a power n and I'm not sure how to start with this one?
Show by induction that the following formulas hold.
$\sum_{i=1}^n n2ⁿ = (n-1)2^{n+1} + 2$
What did a similar problem to this but this one is a little different. I think is because this one has a power n and I'm not sure how to start with this one?
Starting with the well known identity: $\sum_{i=1}^n ix^{i-1} = \dfrac{d}{dx}\dfrac{x - x^n}{1 - x} = \dfrac{1 - nx^{n-1} + (n-1)x^n}{(1 -x)^2}$. Then substitute $x = 2$ into the equation, and multiply both sides by $2$ again to get the sought identity.
I'm assuming you mean to show that $\sum_{i=1}^n i2^i = (n-1)2^{n+1}+2$.
For your base case, $n=1$, you just need to plug in 1: $\sum_{i=1}^1 i 2^i = 1 \cdot 2^1 = 2$ and $(1-1)2^{1+1} + 2 = 2.$
Then for your inductive step, assume $\sum_{i=1}^n i 2^i = (n-1)2^{n+1}+2$, and you want to show that $\sum_{i=1}^{n+1} i 2^i = n2^{n+2}+2$. Hint: rewrite $$\sum_{i=1}^{n+1} i 2^i = (n+1)2^{n+1} + \sum_{i=1}^n i 2^i = (n+1)2^{n+1} + (n-1)2^{n+1}+2$$ and use some basic algebra to rearrange and get what you want.