Volume P2 · Concrete mathematics
Binomial coefficients
Draft. This chapter is written and checked by the tools of the project, and a person has not reviewed it yet. Read it with care.
Contents
Permutations and factorials
Statement
This section counts the ways to put objects in a row. The count leads to the factorial and to the falling power of Section 3.1. The results are eqs. 1.2.5(1) to 1.2.5(6) of TAOCP. The section ends with bounds on that use only products and inequalities. The sharp estimate of , Stirling's approximation (eq. 1.2.5(7)), is in P5.
Definition P2.6.1 (permutation). A permutation of distinct objects is an arrangement of all of them in a row. Two permutations are equal when they have the same object in each place.
Example P2.6.2. The permutations of the three letters , , are There are six of them. TAOCP lists them as eq. 1.2.5(1).
Example P2.6.3. A permutation of can be written as the list of its entries, for example for . Such a list is the same thing as a one to one map of onto itself: is the entry in place . Here , , and . Both views are used in TAOCP. The second one makes it possible to compose two permutations.
Definition P2.6.4 (k-arrangement). Let . A -arrangement of distinct objects is a row of of them, all different. A permutation is an -arrangement. TAOCP writes for the number of -arrangements.
Example P2.6.5. The -arrangements of , , , are , , , , , , , , , , , . There are of them. The order counts: and are different arrangements.
Example P2.6.6. There is exactly one -arrangement of objects: the empty row. So for each , also for .
Theorem P2.6.7 (the number of k-arrangements). For , This is eq. 1.2.5(2). The product has factors; for it is the empty product .
Lean: Fintype.card_embedding_eq in Mathlib, which counts the one to one maps from a set of size to a set of size as n.descFactorial k.
Proof. Induction on . For both sides are . Let . A -arrangement is a -arrangement followed by one more object. For each of the rows of length , the last object can be any of the objects that are not yet in the row. So , and the induction hypothesis gives the product.
Definition P2.6.8 (factorial). For , the factorial of is For the product is empty, so . These are eqs. 1.2.5(4) and 1.2.5(5).
Example P2.6.9. The first values are They grow fast. The value has digits, and has digits.
Example P2.6.10. The rule is not a special choice. It is the value of the empty product, and it is the only value that keeps the rule true for : . It also agrees with the count of arrangements: there is one way to arrange zero objects.
Corollary P2.6.11 (the number of permutations). There are permutations of distinct objects, and These are eqs. 1.2.5(3) and 1.2.5(6), with the second form of the count.
Lean: Fintype.card_perm, Nat.factorial_succ and Nat.factorial_mul_descFactorial in Mathlib.
Proof. Put in the theorem: . The recurrence is the product with its last factor split off. For the quotient, , since the first factors of from the top are and the rest is .
Theorem P2.6.12 (bounds on n!). For each ,
Lean: Nat.factorial_le_pow (the bound ) in Mathlib; the other three are not yet stated as named theorems.
Proof. See the Proof part.
Proof
Two ways to build all permutations. The proof of the count above builds a permutation from left to right: choose the first entry, then the second, and so on. A second way is useful in later volumes. Take a permutation of , and insert the number into one of the gaps: before the first entry, between two entries, or after the last. Each permutation of arises exactly once: remove from it, and the rest is the permutation of that it came from, while the place of tells which gap was used. So the number of permutations satisfies with , and again. For , the permutation gives , , , and gives , , .
The bounds. Pair the factors of from the two ends. Write Each factor lies between and . For the lower end, For the upper end, the product of two numbers with sum is largest when they are equal: So . Take square roots to get the first pair of bounds.
The second pair is cruder. For the lower bound, has factors , after the factor . For the upper bound, each of the factors is at most .
The upper bound is better than for , and the lower bound is better than for . But neither pair is close to for large . The true size is about , which lies between the two bounds of the first pair. P5 proves it.
Examples
Example P2.6.13. Prizes. A club gives a first, a second and a third prize to three different members out of . An award is a -arrangement of the members, so there are awards. The formula gives the same number.
Example P2.6.14. A deck of cards can be shuffled into orders. That number has digits; it is about . No shuffle that has ever been done is likely to repeat an earlier one. This is the reason why the analysis of sorting in TAOCP Volume 3 averages over the permutations and does not list them.
Example P2.6.15. The bounds for . The theorem gives The two bounds differ by a factor of about , and is about times their geometric mean . The crude pair gives .
Example P2.6.16. Digits of . From the bounds, the number of decimal digits of lies between and . For the range is to , and the true count is .
Example P2.6.17. The adjacent pair. How many permutations of have and next to each other, for ? Glue and into one block. The block and the other numbers form objects, with arrangements. Inside the block the order is or . So the answer is . For it is : , , , .
Exercises
- [10] In how many ways can three different prizes go to people, if nobody gets two prizes? In how many ways if a person may get several prizes?
- [12] How many words of four letters, all different, can be formed from an alphabet of letters?
- [M15] Prove that , and deduce that for .
- [M18] Find the least with and the least with , and prove that the inequalities hold for all larger .
- [M20] Prove that is a multiple of , and that is the product of the first odd numbers.
- [M20] Prove that the number of permutations of in which comes before (in any place) is for .
- [M22] Use the bounds of the theorem to show that , and find the least with .
Lean
Mathlib has the factorial as Nat.factorial, with the notation n !, and the falling power as Nat.descFactorial n k, the product . The facts of this section are Nat.factorial_succ (the recurrence), Nat.factorial_mul_descFactorial (the quotient form, as ), Nat.factorial_le_pow () and Nat.self_le_factorial. The counts are Fintype.card_perm, which says that the permutations of a finite type number , and Fintype.card_embedding_eq, which says that the one to one maps number .
For a real or polynomial argument the falling power is descPochhammer, and the rising power is ascPochhammer. The bridge for natural numbers is descPochhammer_eval_eq_descFactorial. TAOCP's in TAOCP/Notation is built on descPochhammer (Section 6.2).
Notes and history
The counting of arrangements is very old. Rules equal to appear in Indian and Hebrew texts that are many centuries older than modern algebra, and the notes of TAOCP Section 1.2.5 give the details. The sign is due to Christian Kramp, in 1808. TAOCP calls the product the falling factorial power and writes it , the notation of GKP94 that Section 3.1 uses.
The insertion method of the Proof part is the basis of several algorithms in TAOCP that list or generate permutations, in Section 7.2.1.2 of Volume 4A. The bound of exercise 6.1-7 shows that sorting by comparisons needs at least comparisons in the worst case, a number of the order of (Section 5.3.1 of TAOCP).
Combinations and the definition of the binomial coefficient
Statement
Section 6.1 counted rows, where the order of the objects counts. This section counts sets, where the order does not count. The count is the binomial coefficient . TAOCP then extends the symbol to every real upper index and every integer lower index . The results are eqs. 1.2.6(1) to 1.2.6(6) of TAOCP.
Definition P2.6.18 (k-combination). Let be a set with elements and let . A -combination of is a subset of with exactly elements.
Example P2.6.19. The -combinations of are There are . Section 6.1 found -arrangements of the same four letters. Each subset gives the two rows and , so .
Example P2.6.20. For each , the set has one -combination (the empty set) and one -combination ( itself). If , there is no -combination at all.
Theorem P2.6.21 (the number of combinations). Let . A set of elements has exactly -combinations. This is eq. 1.2.6(2). The number is written , read " choose ".
Lean: Finset.card_powersetCard in Mathlib, which gives the number of subsets of size of a finite set as s.card.choose k.
Proof. Count the -arrangements of in two ways. By Section 6.1 there are of them. Each one is a row of different elements, so it determines the set of its elements, a -combination. Conversely, each -combination comes from exactly rows, the permutations of . So , where is the number of -combinations. Divide by .
The quotient is an integer, because it counts something. That is not clear from the formula. The Proof part gives a second reason, by the addition formula of Section 6.3.
Definition P2.6.22 (binomial coefficient). Let be a real number and let be an integer. The binomial coefficient is This is eq. 1.2.6(3). The upper index can be any real (or complex) number. The lower index is always an integer.
Example P2.6.23. The first cases are eq. 1.2.6(4): They hold for every . For the numerator is the empty product and , so also when or when is negative.
Example P2.6.24. Upper indices that are not natural numbers: Such values do not count subsets. They make many identities hold with no side conditions, and they are the coefficients of the binomial series of Section 6.4.
Theorem P2.6.25 (agreement with the count). If and are integers with , the value of the definition is the number of -combinations of an -set. If and , then .
Lean: TAOCP.binom_natCast in TAOCP/Notation (tamnd/taocp-lean main), the bridge binom (n : R) k = n.choose k, with Nat.choose_eq_zero_of_lt in Mathlib.
Proof. For the definition is the formula of the theorem above. For the product has the factor , since .
So for natural and , the value is the number of -combinations, also for , where both are .
Theorem P2.6.26 (factorial form). For integers and , This is eq. 1.2.6(5).
Lean: Nat.choose_eq_factorial_div_factorial and Nat.choose_mul_factorial_mul_factorial in Mathlib.
Proof. By Section 6.1, . Divide both sides by .
Theorem P2.6.27 (symmetry). For every integer and every integer , This is eq. 1.2.6(6).
Lean: Nat.choose_symm (for ) in Mathlib.
Proof. If , then too, and the factorial form gives the same value for both sides. If , then , so both sides are , the left by definition and the right by the theorem of agreement. If , the same holds with the roles of and swapped.
Remark P2.6.28. Symmetry needs . For and the left side is , but the right side is , since the lower index is negative. Symmetry also fails for that is not an integer: then is not an integer, and the right side has no meaning. The Proof part shows a bijective reason for symmetry that also explains why it needs a finite set.
Proof
The bijection behind symmetry. Let be a set of elements. Map each -subset of to its complement . The complement has elements, and taking the complement twice gives back. So the map is a bijection between the -subsets and the -subsets, and the two counts are equal. This proof needs a finite set , so it does not apply to a negative or fractional upper index. The remark of the Statement part shows that the identity is false there.
A second proof of the count. Section 6.3 proves the addition formula from the definition. The same formula holds for the numbers of -subsets of : such a subset either omits , and then it is a -subset of , or it contains , and then the rest is a -subset of . Both families also agree for : and are for and otherwise. So induction on shows for all and all integers . This proof also shows that each is an integer.
The definition is a polynomial in r. For fixed , the value is a polynomial in of degree , with leading coefficient . Its roots are . For example, This fact is the basis of Section 6.4. Two polynomials in that agree at every natural number are equal, so many identities proved by counting for hold for every real .
Examples
Example P2.6.29. Pascal's triangle. Row lists . The rows to are below. Each entry inside a row is the sum of the entry above it and the entry above and to the left (the addition formula of Section 6.3). Each row reads the same from both ends (symmetry).
| 1 | |||||||||||
| 1 | 1 | ||||||||||
| 1 | 2 | 1 | |||||||||
| 1 | 3 | 3 | 1 | ||||||||
| 1 | 4 | 6 | 4 | 1 | |||||||
| 1 | 5 | 10 | 10 | 5 | 1 | ||||||
| 1 | 6 | 15 | 20 | 15 | 6 | 1 | |||||
| 1 | 7 | 21 | 35 | 35 | 21 | 7 | 1 | ||||
| 1 | 8 | 28 | 56 | 70 | 56 | 28 | 8 | 1 | |||
| 1 | 9 | 36 | 84 | 126 | 126 | 84 | 36 | 9 | 1 | ||
| 1 | 10 | 45 | 120 | 210 | 252 | 210 | 120 | 45 | 10 | 1 |
Example P2.6.30. Card hands. A hand of cards from a deck of is a -combination, so there are hands. The order in which the cards arrive does not count. If it did count, there would be rows, which is times as many.
Example P2.6.31. Lattice paths. A path from to that uses unit steps to the right and up has steps, and of them go up. The path is fixed by the choice of which of the steps go up. So there are paths. Symmetry says that this is also , the number of ways to choose the steps to the right.
Example P2.6.32. The value of for negative is by definition, also when is negative. For example , but . Since , symmetry would claim that these two are equal. This is one more case where symmetry fails for a negative upper index.
Exercises
- [10] Compute , , and from the definition.
- [12] How many hands of cards from a deck of have all five cards in the same suit?
- [M18] Let . Prove that for . Use this to show that the entries of row of Pascal's triangle increase up to the middle and then decrease, and find the largest entry.
- [M15] How many lattice paths from to with unit steps right and up pass through the point ?
- [M12] Write as a polynomial in with rational coefficients, and check it at , and .
- [M15] Prove that for an integer and a real if and only if .
- [M22] Prove that the number of -subsets of that contain no two consecutive numbers is . How many -subsets of have this property?
Lean
TAOCP/Notation (tamnd/taocp-lean main) has the book's symbol as TAOCP.binom (r : R) : ℤ → R, for in a field and an integer lower index. It is defined from descPochhammer, the falling power as a polynomial, divided by , and it is for . The basic facts are TAOCP.binom_natCast_right (the definition for , which holds by rfl), TAOCP.binom_of_neg (the value for ) and TAOCP.binom_zero_right (). The bridge to Mathlib is TAOCP.binom_natCast, which says that binom (n : R) k = n.choose k for natural and when has characteristic zero.
Mathlib has two related functions. Nat.choose n k takes natural numbers only, and it is for . Ring.choose r k takes an element of a binomial ring, such as or a field of characteristic zero, and a natural number ; Ring.choose_natCast is its bridge to Nat.choose. Neither function allows a negative lower index. The facts of this section in Mathlib are Finset.card_powersetCard, Nat.choose_eq_factorial_div_factorial, Nat.choose_mul_factorial_mul_factorial, Nat.choose_symm, Nat.choose_symm_add, Nat.choose_eq_zero_of_lt, Nat.choose_zero_right, Nat.choose_self and Nat.choose_two_right.
Notes and history
Pascal's triangle is much older than Pascal. It is in Chinese texts of the thirteenth century and in Persian and Indian works before that. Blaise Pascal wrote a full treatise on its properties in 1654, published in 1665, and the name comes from that treatise. The notation is due to Andreas von Ettingshausen (1826).
The extension to every real and to negative is the convention of TAOCP and of GKP94. Older books often define only for , and they need side conditions in each identity. Section 6.3 shows the gain: the addition formula and several summation formulas hold for every real and every integer . The price is that symmetry, which is the most familiar identity, needs an extra hypothesis.
The basic identities
Statement
This section proves the identities that TAOCP lists as eqs. 1.2.6(7) to 1.2.6(14) and 1.2.6(17) to 1.2.6(20). Most of them hold for every real upper index and every integer lower index . The proofs work with the definition of Section 6.2, and with the rule of Section 3.1. Each theorem states the range of its variables. A reader who applies an identity outside that range can get a false result.
Theorem P2.6.33 (absorption). For every real and every integer , This is eq. 1.2.6(7). The form holds for all integers , also for .
Lean: Nat.add_one_mul_choose_eq in Mathlib, the case of natural numbers in the form .
Proof. If , both sides are . If , then and , so . For the second form and , both sides are .
Corollary P2.6.34 (absorption at the other end). For every real and every integer with , This is eq. 1.2.6(8). The form holds for all integers .
Lean: Nat.choose_mul_succ_eq in Mathlib, in the form for natural numbers.
Proof. If , both sides of the second form are . If , then . Divide by . If , divide by .
Theorem P2.6.35 (addition formula). For every real and every integer , This is eq. 1.2.6(9).
Lean: Nat.choose_succ_succ' (natural numbers) and Ring.choose_succ_succ (a binomial ring, natural ) in Mathlib.
Proof. If , all three terms are . If , the equation is . Let and put . Then and , so
Theorem P2.6.36 (parallel summation). For every real and every integer , This is eq. 1.2.6(10).
Lean: Nat.sum_range_add_choose in Mathlib, for natural , in the form , which is the same identity after symmetry.
Proof. See the Proof part.
Theorem P2.6.37 (upper summation). For all integers and , This is eq. 1.2.6(11).
Lean: Nat.sum_Icc_choose in Mathlib, where the sum starts at ; the terms with are .
Proof. See the Proof part.
Corollary P2.6.38 (sum of squares). For every integer , This is eq. 1.2.6(12). Section 2.2 finds the same sum by other means.
Lean: not yet stated in this form; Mathlib has Finset.sum_range_id_mul_two for the sum of , and the square case follows from Nat.sum_Icc_choose.
Proof. For every integer , , since . Sum over and use upper summation with and .
Theorem P2.6.39 (binomial theorem). For every integer and all and in a commutative ring, This is eq. 1.2.6(13). The sum can run over all integers , since the other terms are . The rule holds for every , also for ; this is eq. 1.2.6(14), and it is needed for or .
Lean: add_pow (commutative semiring) and Commute.add_pow (two elements that commute) in Mathlib.
Proof. See the Proof part.
Corollary P2.6.40 (row sums). For every integer ,
Lean: Nat.sum_range_choose and Int.alternating_sum_range_choose in Mathlib.
Proof. Put in the binomial theorem, and then , . For the second sum is , by eq. 1.2.6(14).
Theorem P2.6.41 (negating the upper index). For every real and every integer , This is eq. 1.2.6(17).
Lean: Ring.choose_neg in Mathlib, in the form for natural .
Proof. If , both sides are . If , change the sign of each of the factors of the falling power: The product on the right has the factors down to , so it is . Divide by .
Corollary P2.6.42 (the form for integers). For every integer and every integer , This is eq. 1.2.6(19).
Lean: not yet stated; it follows from TAOCP.binom and the theorem above with .
Proof. By symmetry, . Apply the negation theorem with : the new upper index is .
Theorem P2.6.43 (alternating partial sums). For every real and every integer , This is eq. 1.2.6(18). The sum is finite, since the terms with are .
Lean: Int.alternating_sum_range_choose_eq_choose in Mathlib, for with natural .
Proof. If , both sides are . For , use induction. For , both sides are . The step from to adds to the left side. On the right, by the addition formula,
Theorem P2.6.44 (trinomial revision). For every real and all integers and , This is eq. 1.2.6(20).
Lean: Nat.choose_mul in Mathlib, for natural numbers in the form .
Proof. See the Proof part.
Proof
Parallel summation. Use induction on . For , both sides are . Assume the identity for . Then by the addition formula with upper index . The identity is true for every real , because the addition formula is. A second way to read it: the sum on the left adds the entries of a diagonal of Pascal's triangle, and the result is the entry just below the last one.
Upper summation. Use induction on . For the left side is , which is for and for , and so is . Assume the identity for . Then A counting proof: a -subset of has a largest element , and the other elements form an -subset of . There are such subsets for each . The hypothesis is needed: for the left side is and the right side is .
Upper summation also follows from parallel summation. Put and sum for ; by symmetry, this is the sum of for .
The binomial theorem. Use induction on . For both sides are , by the rule . Assume the theorem for . Then
In the first sum the index was shifted from to . By the addition formula, the two coefficients of add up to . The sums run over all integers ; only give nonzero terms, so no term occurs. The proof uses . That is why Mathlib has the separate form Commute.add_pow for rings that are not commutative.
A counting proof: expand the product of factors . Each term picks from some of the factors and from the others. The terms with from exactly factors give , and there are ways to choose those factors.
Trinomial revision. If , both sides are , since . If , then , so the right side is . The left side is too: if , then ; if , then . Now let . The factors and give . Also , since the first factors of form and the next factors start at . So For natural there is a counting proof. Both sides count pairs with , , and . The left side chooses first and then inside . The right side chooses first and then the other elements of outside .
Examples
Example P2.6.45. A sum with absorption. Since , Directly: .
Example P2.6.46. Upper summation with and gives . Parallel summation with and gives .
Example P2.6.47. The sum of squares for is , which agrees with .
Example P2.6.48. Negation. With and , the theorem gives . Directly: . With eq. 1.2.6(19), .
Example P2.6.49. Alternating partial sums. With and , the left side is , and the right side is . For with natural the right side is ; this is the second row sum of the corollary.
Example P2.6.50. Trinomial revision with , and : , and . The left side counts the committees of out of people with a chair; the right side chooses the chair first.
Exercises
- [M12] Evaluate by absorption, and check the result against the direct sum.
- [M10] Evaluate in closed form.
- [10] Expand with the binomial theorem.
- [M20] Find integers , , with for all integers , and deduce a closed form of in terms of binomial coefficients.
- [M18] Prove that for every integer . What is the value for ?
- [M12] Evaluate with eq. 1.2.6(18), and check it directly.
- [M22] A group of people chooses a committee, and the committee chooses a subcommittee of members. Prove that for integers , once with trinomial revision and once by counting.
- [M15] Compute from the definition and with the negation theorem.
Lean
The natural number versions of all identities of this section are in Mathlib: Nat.add_one_mul_choose_eq and Nat.choose_mul_succ_eq (absorption), Nat.choose_succ_succ' (addition formula), Nat.sum_range_add_choose (parallel summation), Nat.sum_Icc_choose (upper summation), add_pow and Commute.add_pow (binomial theorem), Nat.sum_range_choose and Int.alternating_sum_range_choose (row sums), Int.alternating_sum_range_choose_eq_choose (alternating partial sums for a natural upper index) and Nat.choose_mul (trinomial revision). For a general upper index, Ring.choose_succ_succ and Ring.choose_neg cover the addition formula and the negation of the upper index, with a natural lower index.
For TAOCP's symbol TAOCP.binom in TAOCP/Notation (tamnd/taocp-lean main), with an integer lower index, the identities of this section are not yet stated. The plan is to prove each one for by the same algebra as above, with descPochhammer and its rule descPochhammer_succ_right, and to dispose of with TAOCP.binom_of_neg.
Notes and history
Upper summation and parallel summation are old: special cases, such as sums of triangular numbers, appear in Greek and Indian arithmetic. Pascal's treatise of 1654 proves several of them by induction, and it is one of the first texts to state induction as a method of proof. The name trinomial revision is from GKP94. The binomial theorem for natural exponents was known in the Islamic world and in China long before Isaac Newton, who extended it to fractional exponents around 1665; Section 6.4 treats that extension.
The table of identities in Section 1.2.6 of TAOCP is meant to be used as a toolbox. GKP94 Section 5.2 gives guidance on which tool to try first. A good rule is to bring the lower index to a simple form with symmetry or negation, to move factors out with absorption, and only then to sum.
Binomial coefficients with real arguments
Statement
Section 6.2 defined for every real . This section explains why that is useful. First, an identity that is proved by counting for natural often holds for all real , by the polynomial argument. Second, the values for negative and half-integer have simple closed forms. Third, the numbers are the coefficients of the power series of , which is eq. 1.2.6(15). The proof of convergence for a general real is in P5. This section proves the case of a negative integer , which needs only the identities of Section 6.3.
Theorem P2.6.51 (polynomial argument). Let and be polynomials with real coefficients. If for infinitely many integers , then , and so for every real .
Lean: Polynomial.eq_of_infinite_eval_eq in Mathlib, and Polynomial.funext for an infinite ring of coefficients.
Proof. The difference has infinitely many roots. A nonzero polynomial of degree has at most roots, since each root splits off a factor and lowers the degree by one. So is the zero polynomial.
The argument applies to an identity in when, for fixed integer indices, both sides are polynomials in . That is true for , for with a fixed , and for finite sums and products of such terms. It is false when appears in a lower index, or in the number of terms of a sum.
Theorem P2.6.52 (negative integer upper index). For every integer and every integer , In particular , and .
Lean: Ring.choose_neg in Mathlib, with Ring.choose_natCast for the bridge to Nat.choose.
Proof. This is the negation theorem of Section 6.3 with : the new upper index is . For , ; for , .
So is a natural number. It counts the multisets of size with elements from a set of (exercise 6.4-7 treats the integer values in general).
Theorem P2.6.53 (half-integer upper index). For every integer ,
Lean: not yet stated; Mathlib has the values of Ring.choose at natural numbers only.
Proof. See the Proof part.
Theorem P2.6.54 (series for a negative integer exponent). For every integer and every real with ,
Lean: Real.one_div_one_sub_rpow_hasFPowerSeriesOnBall_zero in Mathlib, for every real exponent, with coefficients Ring.choose (a + k - 1) k.
Proof. See the Proof part.
Theorem P2.6.55 (binomial series). For every real and every real with , This is eq. 1.2.6(15). If is a natural number, the sum is finite and the identity holds for every ; that case is the binomial theorem of Section 6.3.
Lean: Real.one_add_rpow_hasFPowerSeriesOnBall_zero in Mathlib, which says that binomialSeries ℝ a is the power series of on the ball of radius about .
Proof. For natural it is the binomial theorem with . For a negative integer it is the theorem above. For other real , see P5, which proves that the series converges and that its sum is .
Proof
The half-integer values. For , the numerator of is The product of the odd numbers is , since is the product of the odd numbers up to and the even numbers . Divide by : For with , use absorption at the other end (eq. 1.2.6(8)) with : . Then For the formula gives , so it holds for too.
The series for a negative integer exponent. Put for and , and . For fixed , is a polynomial in of degree , so the series converges for by the ratio test (the ratio of two terms tends to ). Use induction on . For , , and is the geometric series. For the step, the addition formula gives for all . Two convergent series can be subtracted term by term, so Divide by . The second form follows from the first by putting for and using the theorem on a negative integer upper index: .
The polynomial argument at work. Section 6.3 gave a counting proof of trinomial revision for natural only. For fixed integers and , both sides and are polynomials in . They agree at each natural number , so they agree for every real . The same argument turns the counting proof of the addition formula into a proof for every real . It does not apply to symmetry, , since occurs in the lower index on the right. That is why symmetry fails for negative .
Examples
Example P2.6.56. Values at . The theorem gives the table below. The values of alternate in sign, and their sizes decrease slowly, like (P5). The values of decrease faster, like .
Example P2.6.57. The series is the case of the theorem. TAOCP uses it in many average case analyses, for example to sum for a geometric distribution.
Example P2.6.58. The square root. With , the binomial series is For the first six terms give , against .
Example P2.6.59. Central binomial coefficients. Put for in the series for . Since , For the series gives .
Example P2.6.60. A negative integer index. The theorem gives . Directly: .
Exercises
- [M10] Compute and from the definition, and check them against the theorem on a half-integer upper index.
- [M15] Find closed forms of and for integers , and write the first five terms of .
- [M15] Find the first five coefficients of the series of .
- [M20] Estimate with the first four terms of the binomial series for . Show that the error is less than the size of the fifth term.
- [M25] Prove that for every integer , with the binomial series for .
- [M20] Prove that for every integer . These are the Catalan numbers
- [M22] Prove that is an integer for every integer (of any sign) and every integer .
Lean
Mathlib has the binomial series in two forms. The formal form is PowerSeries.binomialSeries A r, the power series with coefficients Ring.choose r k, with PowerSeries.binomialSeries_add, the rule for formal series, and PowerSeries.binomialSeries_nat for natural . The analytic form is binomialSeries 𝔸 a, a series of multilinear maps, with binomialSeries_radius_eq_one (radius for not natural), Real.one_add_rpow_hasFPowerSeriesOnBall_zero (the sum is for real ), and Real.one_div_one_sub_rpow_hasFPowerSeriesOnBall_zero (the series of ). The polynomial argument is Polynomial.eq_of_infinite_eval_eq and Polynomial.funext.
TAOCP's symbol TAOCP.binom in TAOCP/Notation (tamnd/taocp-lean main) is defined through descPochhammer, a polynomial. So the polynomial argument applies to it directly: an identity between polynomials in that holds for natural , where TAOCP.binom_natCast reduces it to Nat.choose, holds for every . The half-integer values and the series of this section are not yet stated for TAOCP.binom.
Notes and history
Isaac Newton found the binomial series for fractional exponents around 1665, by interpolation in tables of coefficients, and he described it in two letters to Leibniz in 1676. He did not prove convergence. Niels Henrik Abel gave the first complete proof for all real and complex exponents in 1826. The polynomial argument is a standard device in TAOCP. The book introduces it in the proof of eq. 1.2.6(8), and it uses it again in many later places to pass from the natural numbers to all real numbers. Section 6.3 proves eq. 1.2.6(8) by direct algebra instead, so it does not need the argument there.
The table below lists the results of Sections 1.2.5 and 1.2.6 of TAOCP that this chapter proves. The results of Section 1.2.6 from eq. 1.2.6(21) on, and eq. 1.2.6(16), are in Chapter 7. Eq. 1.2.5(7) is in P5.
| TAOCP 1.2 | Result of P2 |
|---|---|
| 1.2.5 eqs. 1 and 2 | Definition P2.6.1, Definition P2.6.4, Theorem P2.6.7 |
| 1.2.5 eqs. 3 to 6 | Definition P2.6.8, Corollary P2.6.11 |
| 1.2.6 eqs. 1 and 2 | Definition P2.6.18, Theorem P2.6.21 |
| 1.2.6 eqs. 3 and 4 | Definition P2.6.22, Theorem P2.6.25, Example P2.6.23 |
| 1.2.6 eq. 5 | Theorem P2.6.26 |
| 1.2.6 eq. 6 | Theorem P2.6.27 |
| 1.2.6 eqs. 7 and 8 | Theorem P2.6.33, Corollary P2.6.34 |
| 1.2.6 eq. 9 | Theorem P2.6.35 |
| 1.2.6 eqs. 10 and 11 | Theorem P2.6.36, Theorem P2.6.37 |
| 1.2.6 eq. 12 | Corollary P2.6.38 |
| 1.2.6 eqs. 13 and 14 | Theorem P2.6.39, Corollary P2.6.40 |
| 1.2.6 eq. 15 | Theorem P2.6.54, Theorem P2.6.55 |
| 1.2.6 eqs. 17 and 19 | Theorem P2.6.41, Corollary P2.6.42 |
| 1.2.6 eq. 18 | Theorem P2.6.43 |
| 1.2.6 eq. 20 | Theorem P2.6.44 |
The binomial coefficients are the numbers that TAOCP uses most. They count the ways to choose things from , they are the coefficients of , and they appear in almost every analysis of an algorithm in the later volumes. Section 1.2.6 of TAOCP collects their main identities in a long list. This chapter and the next one prove each identity of that list. This chapter gives the definition and the basic identities. Chapter 7 gives the convolutions, the inversion formulas and the multinomial coefficients.
Section 6.1 counts arrangements and defines the factorial, as Section 1.2.5 does. It proves simple bounds on that need no calculus. Section 6.2 counts combinations, defines for each real and each integer , and proves the factorial form and the symmetry. Section 6.3 proves the identities that TAOCP lists as eqs. 1.2.6(7) to 1.2.6(14) and 1.2.6(17) to 1.2.6(20): absorption, the addition formula, the two summation formulas, the binomial theorem, the negation of the upper index, the alternating partial sums and trinomial revision. Section 6.4 treats an upper index that is not an integer. It explains the polynomial argument, which carries an identity from the integers to all real numbers, and it computes and .
A reader of TAOCP should note one convention early. The book defines for every real and every integer , and the value is when . Many identities hold for all such and with no side conditions, and this saves many separate cases. Other books, and the function Nat.choose of Lean, allow only natural numbers. The chapter keeps the book's convention, and it marks each identity with the range of and where it holds.
The chapter uses the sums of Chapter 1, the falling factorial powers of Chapter 3, and induction. It reads with Sections 5.1 and 5.2 of Concrete Mathematics (GKP94). The analysis of for large , with Stirling's approximation (eq. 1.2.5(7)), and the convergence of the binomial series are in P5. Chapter 8 uses the results of this chapter for the Stirling numbers, and Chapter 11 uses them for the Bernoulli numbers.
The source of this page. Something is wrong? Report it.