Write the nth term of an A.P. the sum of whose n terms is Sn.

First term = a

Sum up to first term = a


Last term (nth term) = an


Sum up to n terms = Sn


Second last term = an–1


Sum up to (n–1) th term = sn–1


Therefore, an = Sn–Sn–1


7