Sum of n terms of an A.P.