MathorynMathematical Formula Database

Sequences & Series

Sum of an Arithmetic Series

The sum of the first nn terms of an arithmetic sequence is the number of terms times the average of the first and last terms (Gauss's pairing trick). Use it to total evenly increasing amounts, such as stacked objects or regular deposits.

Sn=n (a1+an)2=n2(2a1+(n−1)d)S_n=\frac{n\,(a_1+a_n)}{2}=\frac{n}{2}\big(2a_1+(n-1)d\big)
LaTeXS_n=\frac{n\,(a_1+a_n)}{2}=\frac{n}{2}\big(2a_1+(n-1)d\big)

Variables

SnS_n
sum of n terms
a1a_1
first term
ana_n
last term
dd
common difference

Example

Sum 1+2+⋯+1001+2+\cdots+100.

  1. S100=100⋅(1+100)2S_{100}=\frac{100\cdot(1+100)}{2}.

Answer: 50505050.

Related formulas