The sum of a AP