\( \definecolor{colordef}{RGB}{249,49,84} \definecolor{colorprop}{RGB}{18,102,241} \)
Prove by mathematical induction that for all \(n \in \mathbb{Z}^+\), \(1+2+\dots+n = \frac{n(n+1)}{2}\).