Empty sum explained

In mathematics, an empty sum, or nullary sum,[1] is a summation where the number of terms is zero. The natural way to extend non-empty sums[2] is to let the empty sum be the additive identity.

Let

a1

,

a2

,

a3

, ... be a sequence of numbers, and let

sm=

m
\sum
i=1

ai=a1++am

be the sum of the first m terms of the sequence. This satisfies the recurrence

sm=sm-1+am

provided that we use the following natural convention:

s0=0

.In other words, a "sum"

s1

with only one term evaluates to that one term, while a "sum"

s0

with no terms evaluates to 0.Allowing a "sum" with only 1 or 0 terms reduces the number of cases to be considered in many mathematical formulas. Such "sums" are natural starting points in induction proofs, as well as in algorithms. For these reasons, the "empty sum is zero" extension is standard practice in mathematics and computer programming (assuming the domain has a zero element).For the same reason, the empty product is taken to be the multiplicative identity.

For sums of other objects (such as vectors, matrices, polynomials), the value of an empty summation is taken to be its additive identity.

Examples

Empty linear combinations

In linear algebra, a basis of a vector space V is a linearly independent subset B such that every element of V is a linear combination of B.The empty sum convention allows the zero-dimensional vector space V= to have a basis, namely the empty set.

See also

Notes and References

  1. Book: Harper, Robert. Practical Foundations for Programming Languages. Cambridge University Press. 2016. 9781107029576. 86.
  2. Book: David M. Bloom . Linear Algebra and Geometry . registration . 1979 . 0521293243 . 45.