Sums a series of integers.