![]() | ||
In mathematics, any of the positive integers that occurs as a coefficient in the binomial theorem is a binomial coefficient. Commonly, a binomial coefficient is indexed by a pair of integers n ≥ k ≥ 0 and is written
Contents
- History and notation
- Definition and interpretations
- Computing the value of binomial coefficients
- Recursive formula
- Multiplicative formula
- Factorial formula
- Generalization and connection to the binomial series
- Pascals triangle
- Combinatorics and statistics
- Binomial coefficients as polynomials
- Binomial coefficients as a basis for the space of polynomials
- Integer valued polynomials
- Example
- Identities involving binomial coefficients
- Series involving binomial coefficients
- Partial sums
- Identities with combinatorial proofs
- Sum of coefficients row
- Dixons identity
- Continuous identities
- Ordinary generating functions
- Exponential generating function
- Divisibility properties
- Bounds and asymptotic formulas
- Generalization to multinomials
- Taylor series
- Binomial coefficient with n
- Identity for the product of binomial coefficients
- Partial fraction decomposition
- Newtons binomial series
- Multiset rising binomial coefficient
- Generalization to negative integers
- Two real or complex valued arguments
- Generalization to q series
- Generalization to infinite cardinals
- Binomial coefficient in programming languages
- References
The binomial coefficients occur in many areas of mathematics, especially in the field of combinatorics.
History and notation
Andreas von Ettingshausen introduced the notation
Alternative notations include C(n, k), nCk, nCk, Ckn, Cnk, and Cn,k in all of which the C stands for combinations or choices. Many calculators use variants of the C notation because they can represent it on a single-line display. In this form the binomial coefficients are easily compared to k-permutations of n, written as P(n, k), etc.
Definition and interpretations
For natural numbers (taken to include 0) n and k, the binomial coefficient
(valid for any elements x,y of a commutative ring), which explains the name "binomial coefficient".
Another occurrence of this number is in combinatorics, where it gives the number of ways, disregarding order, that k objects can be chosen from among n objects; more formally, the number of k-element subsets (or k-combinations) of an n-element set. This number can be seen as equal to the one of the first definition, independently of any of the formulas below to compute it: if in each of the n factors of the power (1 + X)n one temporarily labels the term X with an index i (running from 1 to n), then each subset of k indices gives after expansion a contribution Xk, and the coefficient of that monomial in the result will be the number of such subsets. This shows in particular that
Computing the value of binomial coefficients
Several methods exist to compute the value of
Recursive formula
One method uses the recursive, purely additive, formula
with initial/boundary values
The formula follows from considering the set {1,2,3,…,n} and counting separately (a) the k-element groupings that include a particular set element, say “i”, in every group (since “i” is already chosen to fill one spot in every group, we need only choose k − 1 from the remaining n − 1) and (b) all the k-groupings that don’t include “i”; this enumerates all the possible k-combinations of n elements. It also follows from tracing the contributions to Xk in (1 + X)n−1(1 + X). As there is zero Xn+1 or X−1 in (1 + X)n, one might extend the definition beyond the above boundaries to include
Multiplicative formula
A more efficient method to compute individual binomial coefficients is given by the formula
where the numerator of the first fraction
Due to the symmetry of the binomial coefficient with regard to k and n−k, calculation may be optimised by setting the upper limit of the product above to the smaller of k and n−k.
Factorial formula
Finally, though computationally unsuitable, there is the compact form, often used in proofs and derivations, which makes repeated use of the familiar factorial function:
where n! denotes the factorial of n. This formula follows from the multiplicative formula above by multiplying numerator and denominator by (n − k)!; as a consequence it involves many factors common to numerator and denominator. It is less practical for explicit computation (in the case that k is small and n is large) unless common factors are first cancelled (in particular since factorial values grow very rapidly). The formula does exhibit a symmetry that is less evident from the multiplicative formula (though it is from the definitions)
which leads to a more efficient multiplicative computational routine. Using the falling factorial notation,
Generalization and connection to the binomial series
The multiplicative formula allows the definition of binomial coefficients to be extended by replacing n by an arbitrary number α (negative, real, complex) or even an element of any commutative ring in which all positive integers are invertible:
With this definition one has a generalization of the binomial formula (with one of the variables set to 1), which justifies still calling the
This formula is valid for all complex numbers α and X with |X| < 1. It can also be interpreted as an identity of formal power series in X, where it actually can serve as definition of arbitrary powers of series with constant coefficient equal to 1; the point is that with this definition all identities hold that one expects for exponentiation, notably
If α is a nonnegative integer n, then all terms with k > n are zero, and the infinite series becomes a finite sum, thereby recovering the binomial formula. However, for other values of α, including negative integers and rational numbers, the series is really infinite.
Pascal's triangle
Pascal's rule is the important recurrence relation
which can be used to prove by mathematical induction that
Pascal's rule also gives rise to Pascal's triangle:
Row number n contains the numbers
The differences between elements on other diagonals are the elements in the previous diagonal, as a consequence of the recurrence relation (3) above.
Combinatorics and statistics
Binomial coefficients are of importance in combinatorics, because they provide ready formulas for certain frequent counting problems:
Binomial coefficients as polynomials
For any nonnegative integer k, the expression
This presents a polynomial in t with rational coefficients.
As such, it can be evaluated at any real or complex number t to define binomial coefficients with such first arguments. These "generalized binomial coefficients" appear in Newton's generalized binomial theorem.
For each k, the polynomial
Its coefficients are expressible in terms of Stirling numbers of the first kind:
The derivative of
Binomial coefficients as a basis for the space of polynomials
Over any field of characteristic 0 (that is, any field that contains the rational numbers), each polynomial p(t) of degree at most d is uniquely expressible as a linear combination
Integer-valued polynomials
Each polynomial
Example
The integer-valued polynomial 3t(3t + 1)/2 can be rewritten as
Identities involving binomial coefficients
The factorial formula facilitates relating nearby binomial coefficients. For instance, if k is a positive integer and n is arbitrary, then
and, with a little more work,
Moreover, the following may be useful:
For constant n, we have the following recurrence:
Series involving binomial coefficients
The formula
is obtained from (∗) by setting x = 1 and y = 1. This is equivalent to saying that the elements in one row of Pascal's triangle always add up to two raised to an integer power. A combinatorial interpretation of this fact involving double counting is given by counting subsets of size 0, size 1, size 2, and so on up to size n of a set S of n elements. Since we count the number of subsets of size i for 0 ≤ i ≤ n, this sum must be equal to the number of subsets of S, which is known to be 2n. That is, (∗∗) is the statement that the power set of a finite set with n elements has size 2n. More explicitly, consider a bit string with n digits. This bit string can be used to represent 2n numbers. Now consider all of the bit strings with no ones in them. There is just one, or rather n choose 0. Next consider the number of bit strings with just a single one in them. There are n, or rather n choose 1. Continuing this way we can see that the equation above holds.
The formulas
and
The Chu–Vandermonde identity, which holds for any complex-values m and n and any non-negative integer k, is
and can be found by examination of the coefficient of
A similar looking formula, which applies for any integers j, k, and n satisfying 0 ≤ j ≤ k ≤ n, is
and can be found by examination of the coefficient of
using
When j = k, equation (8) gives the Hockey-stick identity
From expansion (7) using n = 2m, k = m, and (1), one finds
Let F(n) denote the n-th Fibonacci number. We obtain a formula about the diagonals of Pascal's triangle,
This can be proved by induction using (3) or by Zeckendorf's representation (Just note that the lhs gives the number of subsets of {F(2),...,F(n)} without consecutive members, which also form all the numbers below F(n + 1)). A combinatorial proof is given below.
Another identity that follows from (8) with j=k-1 is
Partial sums
Although there is no closed formula for partial sums
of binomial coefficients, one can again use (3) and induction to show that for k = 0, ..., n − 1,
with special case
for n > 0. This latter result is also a special case of the result from the theory of finite differences that for any polynomial P(x) of degree less than n,
Differentiating (2) k times and setting x = −1 yields this for
When P(x) is of degree less than or equal to n,
where
More generally for (10),
where m and d are complex numbers. This follows immediately applying (10) to the polynomial Q(x):=P(m + dx) instead of P(x), and observing that Q(x) has still degree less than or equal to n, and that its coefficient of degree n is dnan.
The series
Using (9) one can derive
Series multisection gives the following identity for the sum of binomial coefficients taken with a step s and offset t
Identities with combinatorial proofs
Many identities involving binomial coefficients can be proved by combinatorial means. For example, the following identity for nonnegative integers
can be given a double counting proof as follows. The left side counts the number of ways of selecting a subset of [n] = {1, 2, …, n} with at least q elements, and marking q elements among those selected. The right side counts the same parameter, because there are
In the Pascal's rule
both sides count the number of k-element subsets of [n] with the right hand side first grouping them into those that contain element n and those that do not.
The identity (9) also has a combinatorial proof. The identity reads
Suppose you have
Now apply (5) to get the result.
The identity (9),
has the following combinatorial proof. The number
Sum of coefficients row
The number of k-combinations for all k,
Dixon's identity
or, more generally,
where a, b, and c are non-negative integers.
Continuous identities
Certain trigonometric integrals have values expressible in terms of binomial coefficients:
For
These can be proved by using Euler's formula to convert trigonometric functions to complex exponentials, expanding using the binomial theorem, and integrating term by term.
Ordinary generating functions
For a fixed n, the ordinary generating function of the sequence
For a fixed k, the ordinary generating function of the sequence
The bivariate generating function of the binomial coefficients is:
Another bivariate generating function of the binomial coefficients, which is symmetric, is:
Exponential generating function
A symmetric exponential bivariate generating function of the binomial coefficients is:
Divisibility properties
In 1852, Kummer proved that if m and n are nonnegative integers and p is a prime number, then the largest power of p dividing
A somewhat surprising result by David Singmaster (1974) is that any integer divides almost all binomial coefficients. More precisely, fix an integer d and let f(N) denote the number of binomial coefficients
Since the number of binomial coefficients
Another fact: An integer n ≥ 2 is prime if and only if all the intermediate binomial coefficients
are divisible by n.
Proof: When p is prime, p divides
because
otherwise the numerator k(n − 1)(n − 2)×...×(n − p + 1) has to be divisible by n = k×p, this can only be the case when (n − 1)(n − 2)×...×(n − p + 1) is divisible by p. But n is divisible by p, so p does not divide n − 1, n − 2, ..., n − p + 1 and because p is prime, we know that p does not divide (n − 1)(n − 2)×...×(n − p + 1) and so the numerator cannot be divisible by n.
Bounds and asymptotic formulas
The following bounds for
Stirling's approximation yields the bounds:
and the approximation
For both
where
When
and therefore
If more precision is desired, one can approximate
For
The infinite product formula (cf. Gamma function, alternative definition)
yields the asymptotic formulas
as
This asymptotic behaviour is contained in the approximation
as well. (Here
Further, the asymptotic formula
hold true, whenever
A simple and rough upper bound for the sum of binomial coefficients can be obtained using the binomial theorem:
If n is large and k is linear in n, various precise asymptotic estimates exist for the binomial coefficient
where d = n − 2k.
Generalization to multinomials
Binomial coefficients can be generalized to multinomial coefficients defined to be the number:
where
While the binomial coefficients represent the coefficients of (x+y)n, the multinomial coefficients represent the coefficients of the polynomial
The case r = 2 gives binomial coefficients:
The combinatorial interpretation of multinomial coefficients is distribution of n distinguishable elements over r (distinguishable) containers, each containing exactly ki elements, where i is the index of the container.
Multinomial coefficients have many properties similar to these of binomial coefficients, for example the recurrence relation:
and symmetry:
where
Taylor series
Using Stirling numbers of the first kind the series expansion around any arbitrarily chosen point
Binomial coefficient with n = ½
The definition of the binomial coefficients can be extended to the case where
In particular, the following identity holds for any non-negative integer
This shows up when expanding
Identity for the product of binomial coefficients
One can express the product of binomial coefficients as a linear combination of binomial coefficients:
where the connection coefficients are multinomial coefficients. In terms of labelled combinatorial objects, the connection coefficients represent the number of ways to assign m+n-k labels to a pair of labelled combinatorial objects—of weight m and n respectively—that have had their first k labels identified, or glued together to get a new labelled combinatorial object of weight m+n-k. (That is, to separate the labels into three portions to apply to the glued part, the unglued part of the first object, and the unglued part of the second object.) In this regard, binomial coefficients are to exponential generating series what falling factorials are to ordinary generating series.
Partial fraction decomposition
The partial fraction decomposition of the reciprocal is given by
Newton's binomial series
Newton's binomial series, named after Sir Isaac Newton, is a generalization of the binomial theorem to infinite series:
The identity can be obtained by showing that both sides satisfy the differential equation (1 + z) f'(z) = α f(z).
The radius of convergence of this series is 1. An alternative expression is
where the identity
is applied.
Multiset (rising) binomial coefficient
Binomial coefficients count subsets of prescribed size from a given set. A related combinatorial problem is to count multisets of prescribed size with elements drawn from a given set, that is, to count the number of ways to select a certain number of elements from a given set with the possibility of selecting the same element repeatedly. The resulting numbers are called multiset coefficients; the number of ways to "multichoose" (i.e., choose with replacement) k items from an n element set is denoted
To avoid ambiguity and confusion with n’s main denotation in this article,
let f = n = r + (k – 1) and r = f – (k – 1).
Multiset coefficients may be expressed in terms of binomial coefficients by the rule
One possible alternative characterization of this identity is as follows: We may define the falling factorial as
and the corresponding rising factorial as
so, for example,
Then the binomial coefficients may be written as
while the corresponding multiset coefficient is defined by replacing the falling with the rising factorial:
Generalization to negative integers
For any n,
In particular, binomial coefficients evaluated at negative integers are given by signed multiset coefficients. In the special case
For example, if n = -4 and k = 7, then r = 4 and f = 10:
Two real or complex valued arguments
The binomial coefficient is generalized to two real or complex valued arguments using the gamma function or beta function via
This definition inherits these following additional properties from
moreover,
The resulting function has been little-studied, apparently first being graphed in (Fowler 1996). Notably, many binomial identities fail:
Generalization to q-series
The binomial coefficient has a q-analog generalization known as the Gaussian binomial coefficient.
Generalization to infinite cardinals
The definition of the binomial coefficient can be generalized to infinite cardinals by defining:
where A is some set with cardinality
Assuming the Axiom of Choice, one can show that
Binomial coefficient in programming languages
The notation
Naive implementations of the factorial formula, such as the following snippet in Python:
are very slow and are useless for calculating factorials of very high numbers (in languages such as C or Java they suffer from overflow errors because of this reason). A direct implementation of the multiplicative formula works well:
(In Python, range(k) produces a list from 0 to k–1.)
Pascal's rule provides a recursive definition which can also be implemented in Python, although it is less efficient:
The example mentioned above can be also written in functional style. The following Scheme example uses the recursive definition
Rational arithmetic can be easily avoided using integer division
The following implementation uses all these ideas
When computing
Implementation in the C language:
Another way to compute the binomial coefficient when using large numbers is to recognize that
where