If pth term of an AP is a and its qth term is b, then what is the sum of the first (p+q) terms of the AP?
Let A and D be the first term and the common difference of the A.P, then
Tp=a=A+(p−1)D ...... (i)
Tq=b=A+(q−1)D ...... (ii)
By (i) - (ii), we have Tp−Tq=a−b=(p−q)D.......(iii)
⇒D=a−bp−q
Using this in (i) gives
A=a−(p−1)(a−bp−q)
Since, Sn=n2[2a+(n−1)d]
Now, the sum of the first (p+q) terms is Sp+q=(p+q2)(2A+(p+q−1)D)
=(p+q2)(2(a−(p−1)(a−bp−q))+(p+q−1)(a−bp−q))
=p+q2[2a−(a−bp−q)(2p−2−p−q+1)]
=p+q2(2a−a−bp−q[p−q−1])
⇒Sp+q=p+q2[a+(a−a−bp−q(p−q))+a−bp−q]......(iv)
From equation(iii), a−b=(p−q)D, where D=a−bp−q
⇒a−(p−q)a−bp−q=b
Substitute above equation in equation(iv), we get
Sp+q=(p+q2)(a+b+a−bp−q)