# How to derive this summation formula? [closed]

$$\sum_{i=0}^{n-1} ia^i = \frac{a-na^n+(n-1)a^{n+1}}{(1-a)^2}$$

What is the thought process behind obtaining this formula?

## closed as off-topic by Did, Daniel W. Farlow, Aaron Maroja, ncmathsadist, apnortonFeb 10 '15 at 21:31

This question appears to be off-topic. The users who voted to close gave this specific reason:

• "This question is missing context or other details: Please improve the question by providing additional context, which ideally includes your thoughts on the problem and any attempts you have made to solve it. This information helps others identify where you have difficulties and helps them write answers appropriate to your experience level." – Did, Daniel W. Farlow, ncmathsadist
If this question can be reworded to fit the rules in the help center, please edit the question.

• Welcome to the MSE, what have you tried? You could start by this answer. – Aaron Maroja Feb 10 '15 at 20:06
• I tried looking at it to no avail, the answer you've shown just shows another formula derived using this formula. – user214516 Feb 10 '15 at 20:14
• Try to write down what you have tried! Have you tried induction? – Aaron Maroja Feb 10 '15 at 20:15
• I don't want to prove this, I want to understand how someone figured it out. – user214516 Feb 10 '15 at 20:17
• The probably wrote down the cases for $n = 1,2,3,4,...$ and hypothesized an answer. – Simon S Feb 10 '15 at 20:28

Well, here is my thought process. I let $S = \sum_{i = 0}^{n-1}ia^i$. Multiplying both sides by $a$, I get $aS = \sum_{i = 0}^{n-1}ia^{i+1}$. I want to express the sum on the right as a linear expression in $S$, for then I'll have a linear equation in $S$ for which I can solve. To this end, I write $$\sum_{i = 0}^{n-1}ia^{i+1} = \sum_{i = 0}^{n-1} [(i + 1)a^{i+1} - a^{i+1}] = \sum_{i = 0}^{n-1} (i + 1)a^{i+1} - \sum_{i = 0}^{n-1} a^{i+1}.$$ I notice that the expression $\sum_{i = 0}^{n-1} (i+1)a^{i+1}$ contains all the terms of $S$ plus one more term, $na^n$. So $\sum_{i = 0}^{n-1} (i + 1)a^{i+1} = S + na^n$. I know that the sum $\sum_{i = 0}^{n-1} a^{i+1}$ is a geometric sum with common ratio $a$ and first term $a$, so I have $$\sum_{i = 0}^{n-1} a^{i+1} = a\frac{a^n-1}{a-1} = \frac{a^{n+1}-a}{a-1}.$$ Collecting my results, I have $$aS = S + na^n - \frac{a^{n+1}-a}{a-1}.$$ That is, $$aS = S + \frac{na^n(a - 1) - a^{n+1} + a}{a - 1}.$$ The numerator on the second term on the right-hand side can be written out
$$na^{n+1} - na^n - a^{n+1} + a = (n-1)a^{n+1} - na^n + a.$$ Therefore,
• @user214516: You can also prove the identity using derivatives and the function $f(x)= \sum_{i=1}^{n-1} x^i$. The identity is then an evaluation in $x=a$. The solution is more short than this one! I hope you can obtain the result by yourself using that. ;-) – rafaeldf Feb 10 '15 at 21:48