MathClario
← Back to High school
High schoolπŸ”€Algebra●●○○○· 3 min
βž•

1 + 2 + 3 + ... + n = n(n+1)/2: Gauss's formula

Young Gauss found it at age 8 by folding the series on itself. One of the most elegant results in math.

The formula

1+2+3+…+n=βˆ‘k=1nk=n(n+1)21 + 2 + 3 + \ldots + n = \sum_{k=1}^{n} k = \dfrac{n(n+1)}{2}

Young Gauss’s trick

Write the sum in order, then in reverse:

S=1+2+3+…+nS = 1 + 2 + 3 + \ldots + n S=n+(nβˆ’1)+(nβˆ’2)+…+1S = n + (n-1) + (n-2) + \ldots + 1

Add the two lines term by term:

2S=(n+1)+(n+1)+…+(n+1)=n(n+1)2S = (n+1) + (n+1) + \ldots + (n+1) = n(n+1)

So S=n(n+1)2S = \dfrac{n(n+1)}{2}.

Quick applications

1 + 2 + … + 100 = 100Γ—1012=5050\dfrac{100 \times 101}{2} = 5050.

Sum of integers from pp to nn (with p≀np \leq n): p+(p+1)+…+n=(n+p)(nβˆ’p+1)2p + (p+1) + \ldots + n = \dfrac{(n+p)(n-p+1)}{2}

Number of terms Γ— average: S=(#Β terms)Γ—first+last2S = (\text{\# terms}) \times \dfrac{\text{first} + \text{last}}{2}

Sum of squares: βˆ‘k=1nk2=n(n+1)(2n+1)6\sum_{k=1}^{n} k^2 = \dfrac{n(n+1)(2n+1)}{6}

Sum of cubes (beautiful!): βˆ‘k=1nk3=(n(n+1)2)2=(βˆ‘k=1nk)2\sum_{k=1}^{n} k^3 = \left( \dfrac{n(n+1)}{2} \right)^2 = \left( \sum_{k=1}^{n} k \right)^2

Induction proof

Base: n=1n=1, S1=1=1β‹…2/2S_1 = 1 = 1 \cdot 2 / 2. βœ“

Step: if Sn=n(n+1)/2S_n = n(n+1)/2, then Sn+1=Sn+(n+1)=n(n+1)2+(n+1)=(n+1)(n+2)2S_{n+1} = S_n + (n+1) = \dfrac{n(n+1)}{2} + (n+1) = \dfrac{(n+1)(n+2)}{2} βœ“

Common mistakes

  1. Dividing by 3 instead of 2.
  2. Using (n+1)/2(n+1)/2 and forgetting the nn.
  3. Confusing number of terms and nn: from 11 to nn = nn terms; from pp to nn = nβˆ’p+1n - p + 1 terms.
?Γ€ toi de jouer

1 + 2 + 3 + ... + 50 = ?

Mini-quiz

Question 1 / 3

1 + 2 + 3 + ... + 20 = ?

#sum#integers#Gauss#induction#grade 12

You might also like