1+2+3+β¦+n=βk=1nβk=2n(n+1)β
Young Gaussβs trick
Write the sum in order, then in reverse:
S=1+2+3+β¦+n
S=n+(nβ1)+(nβ2)+β¦+1
Add the two lines term by term:
2S=(n+1)+(n+1)+β¦+(n+1)=n(n+1)
So S=2n(n+1)β.
Quick applications
1 + 2 + β¦ + 100 = 2100Γ101β=5050.
Sum of integers from p to n (with pβ€n):
p+(p+1)+β¦+n=2(n+p)(nβp+1)β
Number of terms Γ average:
S=(#Β terms)Γ2first+lastβ
Sum of squares:
βk=1nβk2=6n(n+1)(2n+1)β
Sum of cubes (beautiful!):
βk=1nβk3=(2n(n+1)β)2=(βk=1nβk)2
Induction proof
Base: n=1, S1β=1=1β
2/2. β
Step: if Snβ=n(n+1)/2, then
Sn+1β=Snβ+(n+1)=2n(n+1)β+(n+1)=2(n+1)(n+2)β β
Common mistakes
- Dividing by 3 instead of 2.
- Using (n+1)/2 and forgetting the n.
- Confusing number of terms and n: from 1 to n = n terms; from p to n = nβp+1 terms.
?Γ toi de jouer
1 + 2 + 3 + ... + 50 = ?