The sum of an arithmetic progression can be determined using the following formulae:
S = n/2[a + l], where n is the number of terms, a is the first term and l is the last term.
S = n/2[2a + (n – 1) d], where d is the common difference.