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 — Use Sp=0 to find d. Let d be the common difference (here p>1, as the answer has p−1 in the denominator). Since 2p=0, the bracket must be zero.
2p[2a+(p−1)d]2a+(p−1)dd=0=0=−p−12a
Step 2 — Write the sum of the next q terms. The next q terms are terms p+1 to p+q. Their sum is the sum of the first p+q terms minus the sum of the first p terms, and Sp=0.
Required sum=Sp+q−Sp
Required sum=Sp+q
Step 3 — Work out Sp+q. We put d=−p−12a in the sum formula and write the bracket over p−1.
Sp+q=2p+q[2a−(p+q−1)p−12a]=2p+q⋅p−12a(p−1)−2a(p+q−1)=2p+q⋅p−1−2aq=p−1−a(p+q)q
Check: For a=6 and p=5, d is −3; the A.P. is 6,3,0,−3,−6,−9,…, the first 5 terms add to 0, and the next 7 terms add to −126, which matches 4−6×12×7.
Therefore, the sum of the next q terms is p−1−a(p+q)q. Hence proved.