As we know that
nth term in an A.P. is given as-
An=A+(n−1)D
Where as A and D be the first term and common difference of the A.P.
Now,
Ap=a(Given)
⇒A+(p−1)D=a.....(1)
Aq=b(Given)
⇒A+(q−1)D=b.....(2)
Subtracting eqn(2) from (1), we have
(A+(p−1)D)−(A+(q−1)D)=a−b
A+(p−1)D−A−(q−1)D=a−b
D(p−1−q+1)=a−b
⇒D=a−bp−q.....(3)
Now adding eqn(1)&(2), we have
(A+(p−1)D)+(A+(q−1)D)=a+b
A+(p−1)D+A+(q−1)D=a+b
2A+(p−1+q−1)D=a+b
2A+(p+q−2)D=a+b
2A+(p+q−1)D−D=a+b
2A+(p+q−1)D=a+b+D
2A+(p+q−1)D=a+b+a−bp−q.....(4)(∵D=a−bp−q)
Now as we know that sum of n terms in an A.P. is given as-
Sn=n2[2A+(n−1)D]
Therefore,
Sp+q=p+q2[2A+(p+q−1)D]
⇒Sp+q=p+q2(a+b+a−bp−q)(∵From (4))
Hence proved.