Example — Sum of the first nn naturals

We prove that, for every n1n\ge 1, P(n) ⁣:1+2++n=n(n+1)2.P(n)\colon\quad 1+2+\cdots+n = \frac{n(n+1)}{2}. Base (n=1n=1): 1=1221=\dfrac{1\cdot 2}{2}. True.

Step: suppose P(k)P(k) is true, that is 1++k=k(k+1)21+\cdots+k=\dfrac{k(k+1)}{2}. Then 1++k+(k+1)=k(k+1)2+(k+1)=(k+1)k+22=(k+1)(k+2)2,1+\cdots+k+(k+1) = \frac{k(k+1)}{2}+(k+1) = (k+1)\frac{k+2}{2} = \frac{(k+1)(k+2)}{2}, which is exactly P(k+1)P(k+1). By induction, the formula holds for every n1n\ge 1. ∎

Topics: Set theory
Concepts: Principle of induction
Methods: Induction
Skills: Proving