The binomial coefficients can be arranged to formPascal's triangle, in which each entry is the sum of the two immediately above.Visualisation of binomial expansion up to the4th power
Inmathematics, thebinomial coefficients are the positiveintegers that occur ascoefficients in thebinomial theorem. Commonly, a binomial coefficient is indexed by a pair of integersn ≥k ≥ 0 and is written It is the coefficient of thexk term in thepolynomial expansion of thebinomialpower(1 +x)n; this coefficient can be computed by the multiplicative formula
which usingfactorial notation can be compactly expressed as
For example, the fourth power of1 +x is
and the binomial coefficient is the coefficient of thex2 term.
The binomial coefficients occur in many areas of mathematics, and especially incombinatorics. In combinatorics the symbol is usually read as "n choosek" because there are ways to choose an (unordered) subset ofk elements from a fixed set ofn elements. For example, there are ways to choose2 elements from{1, 2, 3, 4}, namely{1, 2},{1, 3},{1, 4},{2, 3},{2, 4} and{3, 4}.
The first form of the binomial coefficients can be generalized to for anycomplex numberz and integerk ≥ 0, and many of their properties continue to hold in this more general form.
Alternative notations includeC(n,k),nCk,nCk,Ck n,[3]Cn k, andCn,k, in all of which theC stands forcombinations orchoices; theC notation means the number of ways to choosek out ofn objects. Many calculators use variants of theC notation because they can represent it on a single-line display. In this form the binomial coefficients are easily compared to the numbers ofk-permutations ofn, written asP(n,k), etc.
The first few binomial coefficients on a left-aligned Pascal's triangle
Fornatural numbers (taken to include 0)n andk, the binomial coefficient can be defined as thecoefficient of themonomialXk in the expansion of(1 +X)n. The same coefficient also occurs (ifk ≤n) in thebinomial formula
(valid for any elementsx,y of acommutative ring),which explains the name "binomial coefficient".
Another occurrence of this number is in combinatorics, where it gives the number of ways, disregarding order, thatk objects can be chosen from amongn objects; more formally, the number ofk-element subsets (ork-combinations) of ann-element set. This number can be seen as equal to that of the first definition, independently of any of the formulas below to compute it: if in each of then factors of the power(1 +X)n one temporarily labels the termX with an indexi (running from1 ton), then each subset ofk indices gives after expansion a contributionXk, and the coefficient of that monomial in the result will be the number of such subsets. This shows in particular that is a natural number for any natural numbersn andk. There are many other combinatorial interpretations of binomial coefficients (counting problems for which the answer is given by a binomial coefficient expression), for instance the number of words formed ofnbits (digits 0 or 1) whose sum isk is given by, while the number of ways to write where everyai is a nonnegative integer is given by. Most of these interpretations can be shown to be equivalent to countingk-combinations.
One method uses therecursive, purely additive formula for all integers such thatwith boundary valuesfor all integersn ≥ 0.
The formula follows from considering the set{1, 2, 3, ...,n} and counting separately (a) thek-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 choosek − 1 from the remainingn − 1) and (b) all thek-groupings that don't include "i"; this enumerates all the possiblek-combinations ofn elements. It also follows from tracing the contributions toXk in(1 +X)n−1(1 +X). As there is zeroXn+1 orX−1 in(1 +X)n, one might extend the definition beyond the above boundaries to include when eitherk >n ork < 0. This recursive formula then allows the construction ofPascal's triangle, surrounded by white spaces where the zeros, or the trivial coefficients, would be.
A more efficient method to compute individual binomial coefficients is given by the formulawhere the numerator of the first fraction,, is afalling factorial.This formula is easiest to understand for the combinatorial interpretation of binomial coefficients.The numerator gives the number of ways to select a sequence ofk distinct objects, retaining the order of selection, from a set ofn objects. The denominator counts the number of distinct sequences that define the samek-combination when order is disregarded. This formula can also be stated in a recursive form. Using the "C" notation from above,, where. It is readily derived by evaluating and can intuitively be understood as starting at the leftmost coefficient of the-th row ofPascal's triangle, whose value is always, and recursively computing the next coefficient to its right until the-th one is reached.
Due to the symmetry of thebinomial coefficients with regard tok andn −k, calculation of the above product, as well as the recursive relation, may be optimised by setting its upper limit to the smaller ofk andn −k.
Finally, though computationally unsuitable, there is the compact form, often used in proofs and derivations, which makes repeated use of the familiarfactorial function:wheren! denotes the factorial ofn. 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 thatk is small andn 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)
The multiplicative formula allows the definition of binomial coefficients to be extended[4] by replacingn by an arbitrary numberα (negative, real, complex) or even an element of anycommutative 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 binomial coefficients:
This formula is valid for all complex numbersα andX with |X| < 1. It can also be interpreted as an identity offormal power series inX, where it actually can serve as definition of arbitrary powers ofpower series with constant coefficient equal to 1; the point is that with this definition all identities hold that one expects forexponentiation, notably
Ifα is a nonnegative integern, then all terms withk >n are zero,[5] 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.
1000th row of Pascal's triangle, arranged vertically, with grey-scale representations of decimal digits of the coefficients, right-aligned. The left boundary of the image corresponds roughly to the graph of the logarithm of the binomial coefficients, and illustrates that they form alog-concave sequence.
which can be used to prove bymathematical induction that is a natural number for all integern ≥ 0 and all integerk, a fact that is not immediately obvious fromformula (1). To the left and right of Pascal's triangle, the entries (shown as blanks) are all zero.
Row numbern contains the numbers fork = 0, …,n. It is constructed by first placing 1s in the outermost positions, and then filling each inner position with the sum of the two numbers directly above. This method allows the quick calculation of binomial coefficients without the need for fractions or multiplications. For instance, by looking at row number 5 of the triangle, one can quickly read off that
As such, it can be evaluated at any real or complex numbert to define binomial coefficients with such first arguments. These "generalized binomial coefficients" appear inNewton's generalized binomial theorem.
For eachk, the polynomial can be characterized as the unique degreek polynomialp(t) satisfyingp(0) =p(1) = ⋯ =p(k − 1) = 0 andp(k) = 1.
Over anyfield ofcharacteristic 0 (that is, any field that contains therational numbers), each polynomialp(t) of degree at mostd is uniquely expressible as a linear combination of binomial coefficients, because the binomial coefficients consist of one polynomial of each degree. The coefficientak is thekth difference of the sequencep(0),p(1), ...,p(k). Explicitly,[7]
Each polynomial isinteger-valued: it has an integer value at all integer inputs. (One way to prove this is by induction onk usingPascal's identity.) Therefore, any integer linear combination of binomial coefficient polynomials is integer-valued too. Conversely, (4) shows that any integer-valued polynomial is an integer linear combination of these binomial coefficient polynomials. More generally, for any subringR of a characteristic 0 fieldK, a polynomial inK[t] takes values inR at all integersif and only if it is anR-linear combination of binomial coefficient polynomials.
says that the elements in thenth row of Pascal's triangle always add up to 2 raised to thenth power. This is obtained from the binomial theorem (∗) by settingx = 1 andy = 1. The formula also has a natural combinatorial interpretation: the left side sums the number of subsets of {1, ...,n} of sizesk = 0, 1, ...,n, giving the total number of subsets. (That is, the left side counts thepower set of {1, ...,n}.) However, these subsets can also be generated by successively choosing or excluding each element 1, ...,n; then independent binary choices (bit-strings) allow a total of choices. The left and right sides are two ways to count the same collection of subsets, so they are equal.
and can be found by examination of the coefficient of in the expansion of(1 +x)m(1 +x)n−m = (1 +x)n using equation (2). Whenm = 1, equation (7) reduces to equation (3). In the special casen = 2m,k =m, using (1), the expansion (7) becomes (as seen in Pascal's triangle at right)
Pascal's triangle, rows 0 through 7. Equation8 form = 3 is illustrated in rows 3 and 6 as
forn > 0. This latter result is also a special case of the result from the theory offinite differences that for any polynomialP(x) of degree less thann,[11]
Differentiating (2)k times and settingx = −1 yields this for,when 0 ≤k <n,and the general case follows by taking linear combinations of these.
wherem andd are complex numbers. This follows immediately applying (10) to the polynomial instead of, and observing that still has degree less than or equal ton, and that its coefficient of degreen isdnan.
Theseries is convergent fork ≥ 2. This formula is used in the analysis of theGerman tank problem. It follows from which is proved byinduction onM.
Many identities involving binomial coefficients can be proved bycombinatorial means. For example, for nonnegative integers, the identity
(which reduces to (6) whenq = 1) can be given adouble counting proof, as follows. The left side counts the number of ways of selecting a subset of [n] = {1, 2, ...,n} with at leastq elements, and markingq elements among those selected. The right side counts the same thing, because there are ways of choosing a set ofq elements to mark, and to choose which of the remaining elements of [n] also belong to the subset.
In Pascal's identity
both sides count the number ofk-element subsets of [n]: the two terms on the right side group them into those that contain elementn and those that do not.
The identity (8) also has a combinatorial proof. The identity reads
Suppose you have empty squares arranged in a row and you want to mark (select)n of them. There are ways to do this. On the other hand, you may select yourn squares by selectingk squares from among the firstn and squares from the remainingn squares; anyk from 0 ton will work. This gives
If one denotes byF(i) the sequence ofFibonacci numbers, indexed so thatF(0) =F(1) = 1, then the identityhas the following combinatorial proof.[12] One may show byinduction thatF(n) counts the number of ways that an × 1 strip of squares may be covered by2 × 1 and1 × 1 tiles. On the other hand, if such a tiling uses exactlyk of the2 × 1 tiles, then it usesn − 2k of the1 × 1 tiles, and so usesn −k tiles total. There are ways to order these tiles, and so summing this coefficient over all possible values ofk gives the identity.
The number ofk-combinations for allk,, is the sum of thenth row (counting from 0) of the binomial coefficients. These combinations are enumerated by the 1 digits of the set ofbase 2 numbers counting from 0 to, where each digit position is an item from the set ofn.
Certain trigonometric integrals have values expressible in terms of binomial coefficients: For any
These can be proved by usingEuler's formula to converttrigonometric functions to complex exponentials, expanding using the binomial theorem, and integrating term by term.
Ifn is prime, then for everyk withMore generally, this remains true ifn is any number andk is such that all the numbers between 1 andk are coprime ton.
In 1852,Kummer proved that ifm andn are nonnegative integers andp is aprime number, then the largest power ofp dividing equalspc, wherec is the number of carries whenm andn are added in basep.Equivalently, the exponent of a primep inequals the number of nonnegative integersj such that thefractional part ofk/pj is greater than the fractional part ofn/pj. (For example, is not divisible byp if every digit in the base-p representation ofk is less than or equal to the corresponding digit in the base-p representation ofn.) It can be deduced from this that is divisible byn/gcd(n,k). In particular therefore it follows thatp divides for all positive integersr ands such thats <pr. However this is not true of higher powers ofp: for example 9 does not divide.
Any integer dividesalmost all binomial coefficients.[13] More precisely, fix an integerd and letf(N) denote the number of binomial coefficients with such thatd divides. Then
Since the number of binomial coefficients withn <N isN(N + 1) / 2, this implies that the density of binomial coefficients divisible byd goes to 1.
Binomial coefficients have divisibility properties related to least common multiples of consecutive integers. For example:[14]
divides.
is a multiple of.
Another fact:An integern ≥ 2 is prime if and only ifall the intermediate binomial coefficients
are divisible byn.
Proof:Whenp is prime,p divides
for all0 <k <p
because is a natural number andp divides the numerator but not the denominator.Whenn is composite, letp be the smallest prime factor ofn and letk =n/p. Then0 <p <n and
otherwise the numeratork(n − 1)(n − 2)⋯(n −p + 1) has to be divisible byn =k×p, this can only be the case when(n − 1)(n − 2)⋯(n −p + 1) is divisible byp. Butn is divisible byp, sop does not dividen − 1,n − 2, …,n −p + 1 and becausep is prime, we know thatp does not divide(n − 1)(n − 2)⋯(n −p + 1) and so the numerator cannot be divisible byn.
The following bounds for hold for all values ofn andk such that1 ≤k ≤n:The first inequality follows from the fact thatand each of these terms in this product is. A similar argument can be made to show the second inequality. The final strict inequality is equivalent to, that is clear since the RHS is a term of the exponential series.
From the divisibility properties we can infer thatwhere both equalities can be achieved.[14]
The following bounds are useful in information theory:[15]: 353 where is thebinary entropy function. It can be further tightened tofor all.[16]: 309
Stirling's approximation yields the following approximation, valid when both tend to infinity:Because the inequality forms of Stirling's formula also bound the factorials, slight variants on the above asymptotic approximation give exact bounds.In particular, when is sufficiently large, one has and. More generally, form ≥ 2 andn ≥ 1 (again, by applying Stirling's formula to the factorials in the binomial coefficient),
Ifn is large andk is linear inn, various precise asymptotic estimates exist for the binomial coefficient. For example, if thenwhered =n − 2k.[17]
A simple and rough upper bound for the sum of binomial coefficients can be obtained using thebinomial theorem:More precise bounds are given byvalid for all integers with.[19]
Binomial coefficients can be generalized tomultinomial coefficients defined to be the number:
where
While the binomial coefficients represent the coefficients of(x +y)n, the multinomial coefficientsrepresent the coefficients of the polynomial
The caser = 2 gives binomial coefficients:
The combinatorial interpretation of multinomial coefficients is distribution ofn distinguishable elements overr (distinguishable) containers, each containing exactlyki elements, wherei is the index of the container.
Multinomial coefficients have many properties similar to those of binomial coefficients, for example the recurrence relation:
One can express the product of two binomial coefficients as a linear combination of binomial coefficients:
where the connection coefficients aremultinomial coefficients. In terms of labelled combinatorial objects, the connection coefficients represent the number of ways to assignm +n −k labels to a pair of labelled combinatorial objects—of weightm andn respectively—that have had their firstk labels identified, or glued together to get a new labelled combinatorial object of weightm +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 whatfalling factorials are to ordinary generating series.
The product of all binomial coefficients in thenth row of the Pascal triangle is given by the formula:
Binomial coefficients count subsets of prescribed size from a given set. A related combinatorial problem is to countmultisets 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 calledmultiset coefficients;[20] the number of ways to "multichoose" (i.e., choose with replacement)k items from ann element set is denoted.
To avoid ambiguity and confusion withn's main denotation in this article, letf =n =r + (k − 1) andr =f − (k − 1).
Multiset coefficients may be expressed in terms of binomial coefficients by the ruleOne possible alternative characterization of this identity is as follows:We may define thefalling factorial asand the corresponding rising factorial asso, for example,Then the binomial coefficients may be written aswhile the corresponding multiset coefficient is defined by replacing the falling with the rising factorial:
The binomial coefficient is generalized to two real or complex valued arguments using thegamma function orbeta 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: but forn positive (so negative). The behavior is quite complex, and markedly different in various octants (that is, with respect to thex andy axes and the line), with the behavior for negativex having singularities at negative integer values and a checkerboard of positive and negative regions:
in the octant it is a smoothly interpolated form of the usual binomial, with a ridge ("Pascal's ridge").
in the octant and in the quadrant the function is close to zero.
in the quadrant the function is alternatingly very large positive and negative on the parallelograms with vertices
in the octant the behavior is again alternatingly very large positive and negative, but on a square grid.
in the octant it is close to zero, except for near the singularities.
The definition of the binomial coefficient can be generalized toinfinite cardinals by defining:
whereA is some set withcardinality. One can show that the generalized binomial coefficient is well-defined, in the sense that no matter what set we choose to represent thecardinal number, will remain the same. For finite cardinals, this definition coincides with the standard definition of the binomial coefficient.
Assuming theAxiom of Choice, one can show that for any infinite cardinal.
^See (Graham, Knuth & Patashnik 1994), which also defines for. Alternative generalizations, such as totwo real or complex valued arguments using theGamma function assign nonzero values to for, but this causes most binomial coefficient identities to fail, and thus is not widely used by the majority of definitions. One such choice of nonzero values leads to the aesthetically pleasing "Pascal windmill" in Hilton, Holton and Pedersen,Mathematical reflections: in a room with many mirrors, Springer, 1997, but causes evenPascal's identity to fail (at the origin).
^When is a nonnegative integer, for because the-th factor of the numerator is. Thus, the-th term is azero product for all.
^Boardman, Michael (2004), "The Egg-Drop Numbers",Mathematics Magazine,77 (5):368–372,doi:10.2307/3219201,JSTOR3219201,MR1573776,it is well known that there is no closed form (that is, direct formula) for the partial sum of binomial coefficients.
Knuth, Donald E. (1997).The Art of Computer Programming, Volume 1:Fundamental Algorithms (Third ed.). Addison-Wesley. pp. 52–74.ISBN0-201-89683-4.
Singmaster, David (1974). "Notes on binomial coefficients. III. Any integer divides almost all binomial coefficients".Journal of the London Mathematical Society.8 (3):555–560.doi:10.1112/jlms/s2-8.3.555.