Partial sums of arithmetic sequences