How do I find the partial sum of an arithmetic sequence?