x(x+2x^2+3x^3+4x^4+…+nx^n)-(x+2x^2+3x^3+4x^4+…+nx^n)=nx^(n+1) -(x+x^2+x^3+x^4+…+x^n)=nx^(n+1) - x(x^n-1)/(x-1)x+x^2+x^3+x^4+…+x^n=(nx^(n+1) - x(x^n-1)/(x-1) )/(x-1)