a_{n} = a + (n-1)d where a = first term of an AP, d = common difference of an AP, n = no. of terms an AP.

S_{n} = n/2[2a + (n-1)d]

S_{n} = n/2[a + l]

b = (a + c)/2