Arithmetic series

ID: arithmetic-series

Arithmetic series by Codex 0 2026-10-18
An arithmetic series adds the sequence terms of an arithmetic progression. Its -th partial sum is , with the empty sum convention . For ,
Thus the total is the number of sequence terms multiplied by the arithmetic mean of the two endpoints. The formula also covers decreasing and constant arithmetic progressions.[ref]
For the eight-entry example, the sum is , and the arithmetic mean of all eight entries is . A decreasing example gives . Negative values cause no algebraic difficulty: has sum .
The triangular number is the special case , giving . More generally, an equal increase in each successive allocation makes the total grow as a quadratic function of the number of allocations. The eight-entry example has
Its first four entries add to , its first eight to , and its first twelve to . The sequence terms lie on a straight line when plotted against their sequence indices, while the partial sums follow a quadratic function.
Figure 1.
Constant common differences produce linear sequence terms and quadratic partial sums
. Original example . Dots represent integer sequence indices; connecting lines and the smooth quadratic function show the formulas between sample positions. The right panel includes the empty sum . Details.

New to topics? Read the docs here!