We have: first term =a, second term =b⇒d= common difference =b−a
It is given that the middle term is c. This means that there are an odd number of terms in the AP. Let there be (2n+1) terms in the AP. Then, (n+1)th term is the middle term. ∴ middle term =c ⇒a+nd=c ⇒a+n(b−a)=c ⇒n=b−ac−a ∴ Sum =22n+1[2a+(2n+1−1)d] =(2n+1)(a+nd) ={2(b−ac−a)+1}[a+(b−ac−a)(b−a)] =b−a2c(c−a)+c