Sum of the nonnegative integers below 1039
ProvedFiniteTriangular.sum_range_1039algebrafinset
The sum of the integers from through equals , which is the triangular number .
Preamble
import Mathlib open Finset
Formal statement
namespace FiniteTriangular theorem sum_range_1039 : ∑ k ∈ range 1039, k = 539241 := by sorry end FiniteTriangular
Source
The closed form for the sum of an initial segment of the nonnegative integers.