A sum is the result of an addition. For example, adding 1, 2, 3, and 4 gives the sum 10, written
(1)
|
The numbers being summed are called addends, or sometimes summands. The summation operation can also be indicated using a capital sigma with upper and lower limits written above and below, and the index indicated below. For example, the above sum could be written
(2)
|
The sum of a list of numbers is implemented as Total[list].
A sum
(3)
|
in which each term is given by some fixed rule (i.e., is a well-defined sequence) is called a (finite) series, and if the number of terms is infinite, the sum is called an infinite series (or often just a "series"). A sum of the form
(4)
|
is called a geometric series.
Conditions for convergence of a series can be determined in the Wolfram Language using SumConvergence[a, n].
The general finite power sum
(5)
|
can be given by the expression
(6)
|
which is equivalent to Faulhaber's formula, where the notation means the quantity in question is raised to the appropriate power and all terms of the form are replaced with the corresponding Bernoulli numbers .
An amusing identity due to J. Ziegenbein (pers. comm., June 19, 2002) follows from the identity
(7)
|
which can be written
(8)
|
Therefore, , for example, can be written in the equivalent forms
(9)
| |||
(10)
| |||
(11)
| |||
(12)
|
and so on.
Nicomachus's theorem gives as curious expression for the power sum .
Special sums include
(13)
|
and
(14)
|
To minimize the sum of a set of squares of numbers about a given number
(15)
| |||
(16)
|
take the derivative.
(17)
|
Solving for gives
(18)
|
so is minimized when is set to the mean.