So I have the following: $\sum_{n=1}^x (\frac76)^{n-1} *n $
When I plug it into wolfram alpha it gives me the following equation: $6^{1-x}(7^xx-6*7^x+6^{x+1}) $ I have no idea where this came from. I'm guessing it involves taking the derivative to make it a normal geometric series, but I have no idea. Any help would be appreciated.
In general, how would could I find an equation for $\sum_{n=1}^x a^n*p(n) $ where a is a rational number and p is a polynomial?