The correct option is
B p+q2(a+b+a−bp−q)Let the first term of the A.P be '
c' and its common difference be '
d'.
So its pth term is c+(p−1)d=a ...(1)
and its qth term is c+(q−1)d=b ...(2)
Now, add equation (1) and (2); we get
⇒2c+(p+q−2)d=a+b
⇒2c+(p+q−1)d−d=a+b
⇒2c+(p+q−1)d=a+b+d ...(3)
Now, subtracting (1) from (2); we get
⇒(p−q)d=a−b
⇒d=(a−b)(p−q) ...(4)
Now, the sum of (p+q) terms is
S(p+q)=(p+q)2[2c+(p+q−1)d] ...(5)
Substitute equation (3) and (4) in (5); we get
S(p+q)=(p+q)2[a+b+d]
S(p+q)=(p+q)2[a+b+(a−b)(p−q)]