Arithmetic Series Sum
Sₙ = n/2 × (2a + (n−1)d)Calculates the sum of the first n terms of an arithmetic sequence.
Where:
Sₙ= Sum of the first n termsa= First term of the sequenced= Common difference between consecutive termsn= Number of terms to sum