1 + 2 + 3 + 4 + ⋯

A graph depicting the series with layered boxes and a parabola that dips just below the y-axis
The first four partial sums of the series 1 + 2 + 3 + 4 + ⋯. The parabola is their smoothed asymptote; its y-intercept is −1/12.

The infinite series whose terms are the positive integers 1 + 2 + 3 + 4 + ⋯ is a divergent series. The nth partial sum of the series is the triangular number

which increases without bound as n goes to infinity. Because the sequence of partial sums fails to converge to a finite limit, the series does not have a sum.

While the series itself diverges to infinity, in certain mathematical contexts it can be assigned a finite value. In particular, the methods of zeta function regularization and Ramanujan summation assign the series a value of ⁠−+1/12⁠, which is expressed by the famous formula

where the left-hand side has to be interpreted as being the value obtained by using one of the aforementioned methods and not as the sum of an infinite series in its usual meaning. These methods have applications in other fields such as complex analysis, quantum field theory, and string theory.

In a monograph on moonshine theory, University of Alberta mathematician Terry Gannon calls this equation "one of the most remarkable formulae in science".