MathLabs
TheoremProved

Sum of the first $n$ terms of an arithmetic sequence

Statement

For an arithmetic sequence with first term u1u_1, common difference dd, and nn-th term unu_n, the sum of the first nn terms is Sn=n(u1+un)2=nu1+n(n−1)2dS_n = \dfrac{n(u_1+u_n)}{2} = n u_1 + \dfrac{n(n-1)}{2}d.

Why is it true?

Pairing the first term with the last, the second with the second-to-last, and so on always gives the same pair-sum u1+unu_1+u_n, because moving one step forward from the start costs exactly dd and moving one step backward from the end gains back exactly dd — so the two changes cancel. This is the trick a schoolboy Gauss reportedly used to add 1+2+⋯+1001+2+\cdots+100 in seconds.

Proof sketch

Write the sum forwards and then backwards, term by term: Sn=un+un−1+⋯+u1S_n = u_n + u_{n-1} + \cdots + u_1 is exactly the same sum, only listed in reverse order, so writing it directly beneath the forward sum Sn=u1+u2+⋯+unS_n=u_1+u_2+\cdots+u_n and adding the two equations column by column is legitimate.

Look at the kk-th column of that addition: it is uk+un+1−ku_k+u_{n+1-k}. Since uk=u1+(k−1)du_k=u_1+(k-1)d and un+1−k=u1+(n−k)du_{n+1-k}=u_1+(n-k)d, adding them gives uk+un+1−k=2u1+(n−1)d=u1+unu_k+u_{n+1-k}=2u_1+(n-1)d=u_1+u_n. So every one of the nn columns produces the exact same value u1+unu_1+u_n, regardless of kk — this is precisely the cancellation described above.

Summing all nn columns therefore gives 2Sn=n(u1+un)2S_n = n(u_1+u_n), because the left side is Sn+SnS_n+S_n and the right side is nn copies of the constant u1+unu_1+u_n.

Dividing both sides by 22 gives Sn=n(u1+un)2S_n=\dfrac{n(u_1+u_n)}{2}. Substituting un=u1+(n−1)du_n=u_1+(n-1)d into this expression and expanding gives the second form Sn=nu1+n(n−1)2dS_n=nu_1+\dfrac{n(n-1)}{2}d, which is useful when unu_n is not yet known. This argument never divided by anything that could be 00 and never assumed nn is even (the pairing is purely algebraic column-addition, not a physical pairing-up of elements), so it holds for every n≥1n\geq 1.

Topics that use this theorem

Step-by-step proofs

No step-by-step proof yet for this theorem.

References

  1. Khan Academy (2023). Arithmetic sequences
  2. Jay Abramson et al. (OpenStax) (2021). Algebra and Trigonometry