In an A.P if the first term = a, common difference = d, and if there are n terms.
Then, sum of n terms is given by:
(x – y)2,(x2 + y2), (x + y)2,… to n terms
First term (a) = (x – y)2
Common difference (d) = x2 + y2 – (x – y)2
= x2 + y2 – (x2 + y2 – 2xy)
= x2 + y2 – x2 + y2 + 2xy
= 2xy
Sum of nth terms
= n/2{2(x – y)2 + (n – 1). 2xy}
= n{(x – y)2 + (n – 1)xy}
∴ Sn = n{(x — y)2 + (n — 1). xy)