Arithmetic Series Sum

Sum the first n terms of an arithmetic sequence: Sₙ = n/2 · (a₁ + aₙ).