

Let A1 ,A2 ,A3 ,...........An are the arithmetic mean between a and b
then a, A1 ,A2 ,A3 ,...........An , b is in AP
This AP contains n+2 terms.
Let d is the common difference of this AP
Then b= (n+2)th term
=> b = a+(n+1)*d
=> b-a = (n+1)*d
=> d = (b-a)/(n+1)
