Let S be the sum of the series
Given series can be written as sum of two series whose sum is denoted by S1,S2
S1=x+x2+x3+............xn
Clearly it is G.P. with common ratio =x
S1=x(xn−1)x−1
S2=a+2a+3a+4a............na
This series is an A.P with common diff. =a
S2=n2×(a+na)
S=S1+S2
⇒S=x(xn−1)x−1+na+n2a2