mathlib3 documentation

mathlib-archive / wiedijk_100_theorems.inverse_triangle_sum

Sum of the Reciprocals of the Triangular Numbers #

THIS FILE IS SYNCHRONIZED WITH MATHLIB4. Any changes to this file require a corresponding PR to mathlib4.

This file proves Theorem 42 from the 100 Theorems List.

We interpret “triangular numbers” as naturals of the form $\frac{k(k+1)}{2}$ for natural k. We prove that the sum of the reciprocals of the first n triangular numbers is $2 - \frac2n$.

Tags #

discrete_sum

theorem theorem_100.inverse_triangle_sum (n : ) :
(finset.range n).sum (λ (k : ), 2 / (k * (k + 1))) = ite (n = 0) 0 (2 - 2 / n)

Sum of the Reciprocals of the Triangular Numbers