Solution:
Concept: For an A.P. with first term a, common difference d and n terms, the nth term is Tn=a+(n−1)d, and the sum of the first n terms is
Sn=2n[2a+(n−1)d]
If the last term l is known, the same sum can be written as
Sn=2n(a+l)
Step 1 — Write the two sums as equations. Let a be the first term and d the common difference, with p=q. Multiplying each sum formula by p2 or q2:
2a+(p−1)d=p2q⋯(1)
2a+(q−1)d=q2p⋯(2)
Step 2 — Subtract (2) from (1) to find d. The 2a’s cancel. We use the common denominator pq and factorise q2−p2.
(p−q)d(p−q)d(p−q)dd=p2q−q2p=pq2(q2−p2)=pq−2(p−q)(p+q)=−pq2(p+q)
Step 3 — Write the required sum. For p+q terms the bracket is 2a+(p+q−1)d, which we split as [2a+(p−1)d]+qd so that (1) can be used.
Sp+q=2p+q[2a+(p−1)d+qd]=2p+q[p2q−p2(p+q)]=2p+q⋅p−2p=−(p+q)
Therefore, the sum of (p+q) terms is −(p+q). Hence proved.