Wikipedia says it's
$$\sum_{k=1}^n kz^k = z\frac{1-(n+1)z^n+nz^{n+1}+1}{(1-z)^2}$$
When I tried it on my own I only got as far as:
$$\sum_{i=0}^n ia^i = \frac{n(a^{n+1}-1)}{a-1}-a^n\sum_{i=0}^n(\frac{i}{a^i})$$
But then I realised that the second term is in fact $\sum_{i=0}^n (\frac{1}{a})^ii$ which is only the original problem with $z = \frac{1}{a}$ so I'm a bit stuck.
I should point out that this is a first year undergraduate maths course for engineering. That being said, I'd appreciate if you could point out what course might teach me how to solve this (or a good book).