Search the atlas

Binomial coefficients and the binomial theorem

Use factorials and binomial coefficients to count selections, read Pascal’s triangle and expand a binomial power.

Factorials

The factorial of a natural number nn, written n!n!, is the product of the positive integers from 11 to nn.

n!=1⋅2⋅3⋯n.n!=1\cdot2\cdot3\cdots n.

In product notation,

n!=∏k=1nk.n!=\prod_{k=1}^{n}k.

The rules for sum and product notation explain the index and its endpoints, and why a product with no factors equals 11.

Factorials are central to combinatorics. They count orderings, appear in binomial coefficients, normalize discrete probability formulas and provide an example of rapid sequence growth.

The case of zero

By convention,

0!=1.0!=1.

An empty product equals 11 because 11 is the multiplicative identity. The factorial recurrence

n!=n(n−1)!n!=n(n-1)!

must also work for n=1n=1,

1!=1⋅0!,1!=1\cdot0!,

which requires 0!=10!=1. The same convention makes (n0)=1\binom{n}{0}=1 and the Taylor expansion consistent at the initial index.

Recurrence and calculation

Compute factorials successively using

1!=1,2!=2⋅1,3!=3⋅2⋅1.1!=1,\qquad 2!=2\cdot1,\qquad 3!=3\cdot2\cdot1.

For example,

5!=5⋅4⋅3⋅2⋅1=120.5!=5\cdot4\cdot3\cdot2\cdot1=120.

The recurrence

n!=n(n−1)!n!=n(n-1)!

supports proofs by induction and lets us simplify ratios before multiplying. For example,

n!(n−2)!=n(n−1).\dfrac{n!}{(n-2)!} = n(n-1).

The identity requires n≥2n\geq2 so that both factorials exist. Similar cancellations occur throughout combinatorics and probability.

Permutations

Factorials count permutations. To arrange nn distinct objects, choose the object for each position in turn.

n⋅(n−1)⋅(n−2)⋯2⋅1=n!.n\cdot(n-1)\cdot(n-2)\cdots2\cdot1=n!.

There are nn choices for the first position, n−1n-1 for the second, and so on. With 44 distinct objects this gives

4!=24.4!=24.

If objects of the same type are indistinguishable, divide out their internal orderings. With multiplicities n1,n2,…,nrn_1,n_2,\ldots,n_r totalling nn, the number of distinct arrangements is

n!n1!n2!⋯nr!.\dfrac{n!}{n_1!n_2!\cdots n_r!}.

Combinations and binomial coefficients

Factorials enter the binomial coefficient,

(nk)=n!k!(n−k)!.\binom{n}{k} = \dfrac{n!}{k!(n-k)!}.

For integers 0≤k≤n0\leq k\leq n it counts combinations of kk objects from nn when order does not matter. The denominator removes orderings within the kk chosen and n−kn-k unchosen objects.

A convenient form for hand calculation is

(nk)=n(n−1)⋯(n−k+1)k!.\binom{n}{k} = \dfrac{n(n-1)\cdots(n-k+1)}{k!}.

It avoids computing large factorials that would cancel, and distinguishes unordered selections from ordered selections and permutations.

Taylor series

Repeated differentiation of a power produces a falling product. This brings factorials into the Taylor coefficients. An expansion about x0x_0 reads

f(x)=∑k=0∞f(k)(x0)k!(x−x0)k,f(x)= \sum_{k=0}^{\infty} \dfrac{f^{(k)}(x_0)}{k!}(x-x_0)^k,

when the series converges to the function. The factor k!k! compensates for the fact that derivative number kk of (x−x0)k(x-x_0)^k at x0x_0 equals k!k!.

Familiar examples are

ex=∑k=0∞xkk!,sin⁡x=∑k=0∞(−1)kx2k+1(2k+1)!.\begin{aligned} e^x&=\sum_{k=0}^{\infty}\dfrac{x^k}{k!},\\ \sin x&=\sum_{k=0}^{\infty}(-1)^k\dfrac{x^{2k+1}}{(2k+1)!}. \end{aligned}

Factorials thus arise naturally in analysis as well as in counting.

Extension by the gamma function

Elementary factorials are defined on nonnegative integers. The gamma function gives the conventional extension to real and complex values away from its poles.

Γ(n+1)=n!,n∈N0.\Gamma(n+1)=n!, \qquad n\in\mathbb{N}_0.

Notice the shift. For a positive integer nn,

Γ(n)=(n−1)!.\Gamma(n)=(n-1)!.

The function Γ(z+1)\Gamma(z+1) has poles at z=−1,−2,…z=-1,-2,\ldots and gives no finite factorial at negative integers. Agreement with n!n! at the integers alone does not determine an extension. Additional properties characterize gamma. Its noninteger values enter gamma, beta and chi-square distributions, improper integrals and generalized coefficients.

Growth and approximations

Factorials grow rapidly. For every fixed base a>0a>0, asymptotically

an≪n!,a^n\ll n!,

while comparison with nnn^n gives

n!≪nn.n!\ll n^n.

Stirling’s formula gives the quantitative estimate

n!∼2πn(ne)n.n!\sim \sqrt{2\pi n} \left(\dfrac{n}{e}\right)^n.

The value of n!n! soon exceeds the range of fixed-size integer or floating-point types. Often it is more convenient to compute

log⁡(n!)=∑k=1nlog⁡k.\log(n!) = \sum_{k=1}^{n}\log k.

For large or noninteger parameters, use log-gamma, here log⁡Γ(x)\log\Gamma(x) for x>0x>0. It avoids storing huge gamma values in calculations involving likelihoods, combinatorial coefficients and probability distributions.

Common errors

Remember 0!=10!=1. The elementary definition of n!n! applies only to nonnegative integers. Thus (2.5)!(2.5)! needs an extension, whereas Γ(3.5)\Gamma(3.5) is already defined by the gamma function.

Counting all orderings, counting ordered selections and counting unordered subsets require different formulas. Before multiplying large numbers, look for factors that cancel, or work with logarithms.

Applications and checks

Estimating the cost of exhaustive search

Suppose a search examines a million complete orderings per second at constant cost, discarding none in advance. Checking every permutation would take n!/106n!/10^6 seconds.

Distinct operations

Orderings to check

Estimated time

12

479 001 600

About 8 minutes

15

1 307 674 368 000

About 15.14 days

20

2 432 902 008 176 640 000

About 77,094 years

These estimates assume a 365.25-day year and the rate stated above. For an example where constraints and objectives narrow the search, see permutations with precedence constraints and changeover times. The factorial counts all orderings before these restrictions. It need not be the cost of a particular algorithm.

Avoiding overflow in a defect probability

Consider 1000 independent items, each defective with probability p=0.01p=0.01. The binomial distribution gives the probability of exactly ten defects as

P(K=10)=(100010)(0.01)10⋅(0.99)990.\begin{aligned} P(K=10)&=\binom{1000}{10}(0.01)^{10}\\ &\qquad\cdot(0.99)^{990}. \end{aligned}

The probability fits comfortably in floating point, but 1000!1000! has 2568 decimal digits. Computing the factorials separately in double precision overflows. Arbitrary-precision integers and exact cancellation give

(100010)=263409560461970212832400.\binom{1000}{10}=263409560461970212832400.

Alternatively, compute the probability on a logarithmic scale. Put L=log⁡P(K=10)L=\log P(K=10) and use natural logarithms.

L=log⁡Γ(1001)−log⁡Γ(11)−log⁡Γ(991)+10log⁡(0.01)+990log⁡(0.99)≈−2.073537317.\begin{aligned} L={}&\log\Gamma(1001)-\log\Gamma(11)\\ &-\log\Gamma(991)+10\log(0.01)\\ &+990\log(0.99)\\ \approx{}&-2.073537317. \end{aligned}

Exponentiating gives P(K=10)≈0.1257402P(K=10)\approx0.1257402, about 12.57%. Evaluate log-gamma directly. Computing gamma first would retain the overflow problem. For extremely small probabilities, keep the logarithmic answer. For pp near zero, compute log⁡(1−p)\log(1-p) with a stable function such as log1p(-p).

Logarithms extend the useful numerical range, but subtraction of nearly equal log-gamma values can lose accuracy. When kk is small relative to nn, use a short product or a recurrence. Choose a method that suits the domain and precision of the number representation. A signed 64-bit integer can store 20!20! but not 21!21!. A larger integer representation can store the exact result.

See combinatorics, permutations, combinations, binomial coefficients, the gamma function, log-gamma and Stirling’s formula.

Factorials, binomial coefficients and the binomial theorem

Factorials produce falling products, binomial coefficients count choices of kk objects from nn, and the binomial theorem uses those coefficients to expand (a+b)n(a+b)^n.

To form a term in the product of nn factors equal to (a+b)(a+b), choose bb from exactly kk factors. This produces an−kbka^{n-k}b^k in precisely (nk)\binom{n}{k} ways. The counting argument explains the coefficients, exponents and symmetry together.

Prerequisites and scope

Use finite products, nonnegative integer powers, numerical fractions, the multiplication principle and summation notation. Throughout,

n∈N0,k∈{0,1,…,n}.n\in\mathbb N_0, \qquad k\in\{0,1,\ldots,n\}.

Here the binomial exponent is a nonnegative integer. Infinite binomial series for other real or complex exponents, convergence of power series and probability laws are further topics.

1. Factorials and falling products

For n≥1n\ge 1, define

n!=n(n−1)(n−2)⋯2⋅1,n!=n(n-1)(n-2)\cdots2\cdot1,

and put

0!=1.0!=1.

The choice 0!=10!=1 preserves the recurrence

(n+1)!=(n+1)n!(n+1)!=(n+1)n!

and gives the endpoint coefficients (n0)\binom n0 and (nn)\binom nn without exceptions. In factorial ratios, cancel common products before multiplying.

For example,

10!8!=10⋅9⋅8!8!=90.\frac{10!}{8!} = \frac{10\cdot9\cdot8!}{8!} =90.

Computing 10!10! and 8!8! separately introduces larger intermediate values and more opportunities for arithmetic error.

2. Binomial coefficients

The binomial coefficient is

(nk)=n!k!(n−k)!.\binom nk = \frac{n!}{k!(n-k)!}.

It counts kk-element subsets of a set of nn elements. Each element can be chosen once, and order is irrelevant. This gives

(n0)=(nn)=1,(nk)=(nn−k).\binom n0=\binom nn=1, \qquad \binom nk=\binom n{n-k}.

In the symmetry identity, selecting the kk included elements uniquely determines the n−kn-k excluded elements.

For k<0k<0 or k>nk>n, it is convenient to define

(nk)=0.\binom nk=0.

This convention simplifies sums and recurrences. It does not represent an admissible selection at an out-of-range index.

3. Pascal’s identity and triangle

Separate the subsets of size kk according to whether they contain a fixed element. This gives

(nk)=(n−1k−1)+(n−1k),1≤k≤n−1.\binom nk = \binom{n-1}{k-1} + \binom{n-1}{k}, \qquad 1\le k\le n-1.

This is Pascal’s identity. Arrange the coefficients in Pascal’s triangle. Every interior entry is the sum of its two parents, and both ends of each row are 11.

Numbering from n=0n=0, the first rows are

n(n0)(n1)(n2)(n3)(n4)01111212131331414641\begin{array}{c|ccccc} n & \binom n0 & \binom n1 & \binom n2 & \binom n3 & \binom n4\\ \hline 0 & 1\\ 1 & 1&1\\ 2 & 1&2&1\\ 3 & 1&3&3&1\\ 4 & 1&4&6&4&1 \end{array}

Row nn must be symmetric and contain n+1n+1 coefficients. Both properties help check a recursively generated table.

4. Expanding a binomial power

For each n∈N0n\in\mathbb N_0 the following is a polynomial identity in aa and bb.

(a+b)n=∑k=0n(nk)an−kbk.(a+b)^n = \sum_{k=0}^{n} \binom nk a^{n-k}b^k.

When n=0n=0, both sides denote the constant polynomial 11 under the empty-product convention. This formal identity does not prescribe a context-free value for the numerical expression 000^0.

The term with index kk is

Tk+1=(nk)an−kbk.T_{k+1} = \binom nk a^{n-k}b^k.

Its position is k+1k+1 because the summation starts at k=0k=0. For the term in position rr, the required index is k=r−1k=r-1. Using k=rk=r would be off by one.

Three quick checks are available.

  • Before like terms are combined there are n+1n+1 terms.
  • In each term the exponents of aa and bb sum to nn.
  • The binomial coefficients are symmetric about the centre.

5. Signs, coefficients and resulting exponents

If the second summand is negative, include the sign inside its power.

(a−b)n=∑k=0n(−1)k(nk)an−kbk.(a-b)^n = \sum_{k=0}^{n} (-1)^k\binom nk a^{n-k}b^k.

The signs alternate because (−b)k=(−1)kbk(-b)^k=(-1)^kb^k. The binomial coefficient itself is unchanged.

Substitute each entire summand, including its numerical coefficient and any power it contains. For example,

(2x2−3y)4=∑k=04(−1)k(4k)(2x2)4−k(3y)k.(2x^2-3y)^4 = \sum_{k=0}^{4} (-1)^k\binom4k(2x^2)^{4-k}(3y)^k.

At index kk, the exponent of xx is 2(4−k)2(4-k), rather than 4−k4-k. The numerical coefficient also includes 24−k3k2^{4-k}3^k.

6. Finding a specified term

To find the coefficient of a particular power, write the general term and equate the resulting exponent to the target. Check that the solution for the index is an integer in [0,n][0,n].

For example, in (x2+2/x)6(x^2+2/x)^6, with x≠0x\ne0, the general term is

Tk+1=(6k)(x2)6−k(2x)k=(6k)2kx12−3k.T_{k+1} = \binom6k(x^2)^{6-k}\left(\frac2x\right)^k = \binom6k2^k x^{12-3k}.

A constant term requires 12−3k=012-3k=0. Thus k=4k=4, and the term is

(64)24=15⋅16=240.\binom642^4=15\cdot16=240.

The original restriction x≠0x\ne0 still applies. This finite expansion contains negative powers of xx and is not an ordinary polynomial.

A noninteger index or one outside {0,…,6}\{0,\ldots,6\} means that the requested power is absent.

7. Identities from special values

Setting a=b=1a=b=1 in the expansion gives

∑k=0n(nk)=2n.\sum_{k=0}^{n}\binom nk=2^n.

Setting a=1a=1 and b=−1b=-1, for n≥1n\ge1, gives

∑k=0n(−1)k(nk)=0.\sum_{k=0}^{n}(-1)^k\binom nk=0.

These substitutions prove identities because they start from the binomial theorem. One numerical check on a proposed expansion, by itself, cannot verify all coefficients.

A method for expansions and coefficients

When asked for an expansion or coefficient,

  1. Identify aa, bb and the integer exponent nn.
  2. Write the general term with k=0,…,nk=0,\ldots,n.
  3. Include any minus sign in the second summand.
  4. Compute the resulting exponents.
  5. For a single term, solve the equation for the requested exponent.
  6. Check that the index is admissible and identify its position.
  7. Check the term count, symmetry and a simple substitution.

Common errors

  • Confusing n!n! with nnn^n or multiplying the factors all the way to zero.
  • Forgetting that 0!=10!=1.
  • Using (nk)\binom nk with kk outside the usual range without specifying a convention.
  • Calling an expression “term kk” when its summation index is kk without saying whether counting starts at zero or one.
  • Leaving the minus sign outside (−b)k(-b)^k.
  • Finding a constant term by inspecting only one contribution to the exponent.
  • Extending the finite identity to noninteger exponents without the infinite series and its convergence conditions.

Related material

Revisit factorials, binomial coefficients, the binomial theorem and Pascal’s triangle, or practise with the worked binomial problems.

Pascal’s triangle

Pascal’s triangle, also called Tartaglia’s triangle, arranges binomial coefficients in rows. Each row gives the coefficients of a binomial power and counts combinations with each possible number of selected objects.

It displays identities from combinatorics, connects algebra with probability, and gives coefficients for binomial filters, discrete recurrences, polynomial expansions and numerical algorithms.

Construction

Begin with a single 11. Each later row starts and ends with 11. Add the two entries immediately above each interior position.

Tn,k=Tn−1,k−1+Tn−1,k,Tn,0=Tn,n=1.T_{n,k}=T_{n-1,k-1}+T_{n-1,k}, \qquad T_{n,0}=T_{n,n}=1.

The usual indexing starts at n=0n=0, so row nn has n+1n+1 entries indexed from k=0k=0 through k=nk=n.

n=0:          1
n=1:        1   1
n=2:      1   2   1
n=3:    1   3   3   1
n=4:  1   4   6   4   1
n=5:1   5  10  10   5   1

The entry at position (n,k)(n,k) is

Tn,k=(nk)=n!k!(n−k)!,0≤k≤n.T_{n,k} = \binom{n}{k} = \dfrac{n!}{k!(n-k)!}, \qquad 0\leq k\leq n.

Its addition rule is Pascal’s identity.

(nk)=(n−1k−1)+(n−1k).\binom{n}{k} = \binom{n-1}{k-1} + \binom{n-1}{k}.

To choose kk elements from nn objects, separate the choices that include a designated object from those that omit it. In the first case choose another k−1k-1 from the remaining n−1n-1. In the second, choose all kk from the remaining n−1n-1.

Algebraic interpretation

Pascal’s triangle gives the coefficients in the binomial theorem.

(a+b)n=∑k=0n(nk)an−kbk.(a+b)^n = \sum_{k=0}^{n} \binom{n}{k}a^{n-k}b^k.

For instance, row n=4n=4 is 1,4,6,4,11,4,6,4,1 and gives

(a+b)4=a4+4a3b+6a2b2+4ab3+b4.(a+b)^4 = a^4+4a^3b+6a^2b^2+4ab^3+b^4.

This triangular array provides coefficients directly for calculations in algebra, analysis and probability, without multiplying out the entire product

(a+b)n=(a+b)(a+b)⋯(a+b)⏟n factors.(a+b)^n = \underbrace{(a+b)(a+b)\cdots(a+b)}_{n\ \text{factors}}.

A term an−kbka^{n-k}b^k is obtained by choosing kk factors from which to take bb. There are (nk)\binom{n}{k} such choices.

Main identities

The symmetry of each row follows from

(nk)=(nn−k).\binom{n}{k} = \binom{n}{n-k}.

Choosing kk elements is equivalent to leaving n−kn-k out. This pairs the entries on opposite sides of the centre.

The row sum is

∑k=0n(nk)=2n.\sum_{k=0}^{n}\binom{n}{k}=2^n.

Sum and product notation explains how to read and manipulate such finite sums.

Put a=1a=1 and b=1b=1 in the binomial theorem. The sum counts all subsets of a set of nn elements, each of which can be included or omitted.

The alternating sum is

∑k=0n(−1)k(nk)=0,n≥1,\sum_{k=0}^{n}(-1)^k\binom{n}{k}=0, \qquad n\geq1,

by evaluating (1−1)n(1-1)^n. This cancellation also occurs in finite differences and discrete transforms.

The hockey-stick identity sums a diagonal.

∑i=rn(ir)=(n+1r+1).\sum_{i=r}^{n}\binom{i}{r} = \binom{n+1}{r+1}.

It replaces a cumulative sum of coefficients by a single binomial coefficient.

The first diagonals contain the constant sequence 11, the natural numbers and the triangular numbers. Sums along shallow diagonals give Fibonacci numbers, linking the triangle to recursive sequences.

Probability and the binomial distribution

In nn independent Bernoulli trials, the number of outcome sequences with exactly kk successes is

(nk).\binom{n}{k}.

The same coefficients appear in the binomial distribution.

P(X=k)=(nk)pk(1−p)n−k.P(X=k) = \binom{n}{k}p^k(1-p)^{n-k}.

For p=12p=\dfrac{1}{2} all elementary outcomes are equally likely, so the probability of kk successes is the corresponding normalized entry.

P(X=k)=(nk)2n.P(X=k) = \dfrac{\binom{n}{k}}{2^n}.

This is classical probability. A triangle entry counts the outcomes with a given number of successes, and 2n2^n counts all outcomes.

Applications and checks

A triangle entry can count combinations, contribute to a probability after weighting, or serve as a numerical kernel coefficient after normalization. The same integer has different uses. Check sums, units and interpretation in each application.

In a binomial filter, dividing the row by 2n2^n gives unity gain at zero frequency. Repeated convolution with [1,1][1,1] generates successive rows and allows inexpensive separable smoothing. The kernel approximates a Gaussian rather than equalling it. Check order, cutoff frequency, delay and boundary handling for the application.

Alternating coefficients build higher-order finite differences but can amplify noise and rounding. Shrinking the step indefinitely can worsen cancellation even as truncation error falls. Check the formula on polynomials of known degree and inspect its frequency response.

In reliability and Bernoulli models a coefficient counts configurations, while probability also depends on pp. For large nn, fixed-size factorials or coefficients may overflow. Use recurrences, logarithms or specialized functions as appropriate. A table can remain superficially symmetric despite integer overflow.

Check the indexing, symmetry, row sum and recurrence. Document the normalization, precision and interpretation so readers can compare the symbolic derivation, implementation and observations. If the order, step, probability or required precision changes, repeat the relevant numerical checks.

Common errors

With indexing from n=0n=0, row nn contains n+1n+1 entries. Some texts call the row containing a single 11 the first row. State the convention.

The entries 1,4,6,4,11,4,6,4,1 are counts. Normalizing the row sum gives binomial probabilities in the symmetric case p=12p=\dfrac{1}{2}. For p≠12p\neq\dfrac{1}{2} include the weights pk(1−p)n−kp^k(1-p)^{n-k}.

Beyond binomial expansions, the triangle also appears in sums, filters, recurrences and discrete operators. Recognizing the recurrence helps identify the same coefficients across applications.

Pascal’s triangle and Tartaglia’s triangle are names for the same construction. The latter is common in Italian texts, while English literature and software usually use Pascal’s name.

Binomial coefficients, combinations, the binomial theorem, the binomial distribution and combinatorics.

Worked binomial problems

The factorial, binomial coefficients and binomial theorem connect the three stages of these problems. Use factorial products to count choices, and use the counts to expand (a+b)n(a+b)^n. In nn copies of (a+b)(a+b) the term an−kbka^{n-k}b^k occurs once for each choice of kk factors from which to take bb.

Assume n∈N0n\in\mathbb N_0 and, for an actual selection or term, k∈{0,…,n}k\in\{0,\ldots,n\}. These exercises concern finite expansions. Noninteger binomial series, probability distributions, derivatives and broader combinatorics are separate applications.

Progression and method

The 24 problems include eight introductory, ten intermediate and six more demanding ones. They cover seven skills: factorial domains and cancellation, binomial coefficients, Pascal’s identity, full expansions, finding individual terms, evaluating sums, and solving or checking parameter-dependent expansions.

For a complete expansion identify the two summands and use

(a+b)n=∑k=0n(nk)an−kbk.(a+b)^n = \sum_{k=0}^{n} \binom nk a^{n-k}b^k.

For only one term, write

Tk+1=(nk)an−kbk,T_{k+1} = \binom nk a^{n-k}b^k,

Equate the resulting exponent to the target, then check that kk is an integer between 00 and nn. Its position is k+1k+1, since the first term corresponds to k=0k=0.

Every selection here is discrete. The formulas and tables give exact identities for checking the expansions.

Exercise 1. Factorial at zero

Calculate 0!0!, 1!1! and 5!5!.

Aim. Include the initial value that makes the factorial recurrence consistent.

Solution

By convention,

0!=1.0!=1.

The recurrence (n+1)!=(n+1)n!(n+1)!=(n+1)n! gives

1!=1⋅0!=1.1!=1\cdot0!=1.

Finally,

5!=5⋅4⋅3⋅2⋅1=120.5!=5\cdot4\cdot3\cdot2\cdot1=120.

Check. The values satisfy 1!=1⋅0!1!=1\cdot0! and 5!=5⋅4!=5⋅24=1205!=5\cdot4! =5\cdot24=120.

Exercise 2. A ratio of factorials

Calculate

12!9!.\dfrac{12!}{9!}.

Aim. Cancel shared factors before multiplying large numbers.

Solution

Expand only the larger factorial until reaching 9!9!.

12!9!=12⋅11⋅10⋅9!9!=12⋅11⋅10=1320.\begin{aligned}\dfrac{12!}{9!}&=\dfrac{12\cdot11\cdot10\cdot9!}{9!}\\&=12\cdot11\cdot10=1320.\end{aligned}

Check. Multiplying 13201320 by 9!9! gives 12⋅11⋅10⋅9!=12!12\cdot11\cdot10\cdot9!=12!.

Exercise 3. A falling product and an ordered selection

Calculate 8⋅7⋅6⋅58\cdot7\cdot6\cdot5 and express it both as a factorial ratio and in terms of a binomial coefficient.

Aim. Recognize the same product in factorial and binomial notation.

Solution

The product has four descending factors.

8⋅7⋅6⋅5=8!4!=1680.8\cdot7\cdot6\cdot5 = \dfrac{8!}{4!} =1680.

Since

(84)=8!4! 4!=70,\binom84 = \dfrac{8!}{4!\,4!} =70,

we also have

8!4!=4!(84)=24⋅70=1680.\dfrac{8!}{4!} = 4!\binom84 =24\cdot70 =1680.

Check. The factor 4!4! orders the four objects in each unordered choice counted by (84)\binom84. Either expression equals 16801680.

Exercise 4. An equation with consecutive factorials

Find n∈N0n\in\mathbb N_0 given that

(n+2)!n!=72.\dfrac{(n+2)!}{n!}=72.

Aim. Reduce a factorial ratio to an elementary equation while respecting the discrete domain.

Method. Cancel n!n!, solve the equation and keep only solutions in N0\mathbb N_0.

Solution

For each n∈N0n\in\mathbb N_0,

(n+2)!n!=(n+2)(n+1).\dfrac{(n+2)!}{n!} =(n+2)(n+1).

and hence

(n+2)(n+1)=72,n2+3n−70=0,(n−7)(n+10)=0.\begin{aligned} (n+2)(n+1)&=72,\\ n^2+3n-70&=0,\\ (n-7)(n+10)&=0. \end{aligned}

The algebraic solutions are n=7n=7 and n=−10n=-10, but the second is outside N0\mathbb N_0. Thus

n=7.n=7.

Check. At n=7n=7,

9!7!=9⋅8=72.\dfrac{9!}{7!} = 9\cdot8 =72.

Exercise 5. Computing a binomial coefficient

Calculate (93)\binom93 without evaluating all three factorials.

Aim. Cancel common factors in the binomial coefficient formula.

Solution

Keep only the necessary falling product in the numerator.

(93)=9!3! 6!=9⋅8⋅73⋅2⋅1=84.\binom93 = \dfrac{9!}{3!\,6!} = \dfrac{9\cdot8\cdot7}{3\cdot2\cdot1} =84.

Check. The result is a positive integer and by symmetry equals (96)=84\binom96=84.

Exercise 6. Using symmetry

Find (1210)\binom{12}{10} using the shorter product.

Aim. Use symmetry to reduce the number of factors.

Solution

Choosing ten included elements is equivalent to choosing the two excluded ones.

(1210)=(122)=12⋅112=66.\binom{12}{10} = \binom{12}{2} = \dfrac{12\cdot11}{2} =66.

Check. The symmetry (nk)=(nn−k)\binom nk=\binom n{n-k} sends k=10k=10 to 12−10=212-10=2.

Exercise 7. Recovering a triangle entry

Find (94)\binom94 using only the preceding row of Pascal’s triangle.

Aim. Apply Pascal’s identity to two adjacent entries.

Method. Split selections according to whether they include a fixed element.

Solution

Pascal’s identity gives

(94)=(83)+(84).\binom94 = \binom83+\binom84.

The two summands are

(83)=56,(84)=70.\binom83=56, \qquad \binom84=70.

Hence

(94)=56+70=126.\binom94=56+70=126.

Check. Direct calculation gives

(94)=9⋅8⋅7⋅64⋅3⋅2⋅1=126.\binom94 = \dfrac{9\cdot8\cdot7\cdot6}{4\cdot3\cdot2\cdot1} =126.

Exercise 8. Out-of-range indices

Evaluate (6−1)\binom6{-1}, (67)\binom67 and (62)\binom62 using the convention (nk)=0\binom nk=0 for k<0k<0 or k>nk>n.

Aim. Distinguish an admissible index from a convention that simplifies formulas.

Method. First test the interval 0≤k≤n0\le k\le n. Apply the factorial formula only to admissible indices.

Solution

The indices −1-1 and 77 lie outside {0,…,6}\{0,\ldots,6\}. The convention gives

(6−1)=0,(67)=0.\binom6{-1}=0, \qquad \binom67=0.

The index 22 is admissible, so

(62)=6⋅52=15.\binom62 = \dfrac{6\cdot5}{2} =15.

Applying the factorial formula to (6−1)\binom6{-1} would produce (−1)!(-1)!, which is undefined here.

Check. The two zeros indicate that there are no such selections. The value 1515 counts unordered pairs from six elements.

Exercise 9. The fourth power of a binomial

Expand (a+b)4(a+b)^4.

Aim. Match the coefficients to the powers in all five terms.

Solution

Row n=4n=4 is 1,4,6,4,11,4,6,4,1. Therefore,

(a+b)4=a4+4a3b+6a2b2+4ab3+b4.\begin{aligned}(a+b)^4&=a^4+4a^3b+6a^2b^2\\&\quad+4ab^3+b^4.\end{aligned}

Check. There are 4+1=54+1=5 terms. In each, the exponents of aa and bb sum to 44, and the coefficients are symmetric.

Exercise 10. A numerical factor inside a summand

Expand (2x+1)4(2x+1)^4.

Aim. Raise the coefficient 22 to the same power as xx.

Method. Substitute the complete expressions a=2xa=2x and b=1b=1 into the fourth-power formula.

Solution

This gives

(2x+1)4=∑k=04(4k)(2x)4−k.(2x+1)^4 = \sum_{k=0}^{4} \binom4k(2x)^{4-k}.

Evaluating the five terms yields

(2x+1)4=16x4+32x3+24x2+8x+1.\begin{aligned}(2x+1)^4&=16x^4+32x^3+24x^2\\&\quad+8x+1.\end{aligned}

Check. At x=1x=1, the sum of coefficients is 16+32+24+8+1=8116+32+24+8+1=81, which agrees with 343^4.

Exercise 11. Alternating signs

Expand (2x−3)5(2x-3)^5.

Aim. Track numerical coefficients and the sign of the second summand together.

Method. Use a=2xa=2x and b=−3b=-3, keeping the sign inside the power (−3)k(-3)^k.

Solution

The general term is

Tk+1=(5k)(2x)5−k(−3)k.T_{k+1} = \binom5k(2x)^{5-k}(-3)^k.

The complete expansion is

(2x−3)5=32x5−240x4+720x3−1080x2+810x−243.\begin{aligned} (2x-3)^5 ={}&32x^5-240x^4+720x^3\\ &-1080x^2+810x-243. \end{aligned}

Check. At x=1x=1 the result is 32−240+720−1080+810−243=−132-240+720-1080+810-243=-1, as for (2−3)5=−1(2-3)^5=-1.

Exercise 12. Position and summation index

Find the fourth term in the expansion of (3x+y)6(3x+y)^6.

Aim. Distinguish position in a list from the summation index kk.

Method. For the term in position rr set k=r−1k=r-1 in the general term.

Solution

The fourth term corresponds to k=3k=3.

T4=(63)(3x)6−3y3=20⋅27x3y3=540x3y3.\begin{aligned} T_4 &= \binom63(3x)^{6-3}y^3\\ &= 20\cdot27x^3y^3\\ &= 540x^3y^3. \end{aligned}

Check. The outer exponents 33 and 33 sum to 66. The term T4T_4 uses k=3k=3 rather than k=4k=4.

Exercise 13. A single coefficient

Find the coefficient of x5x^5 in (x+2)7(x+2)^7.

Aim. Compute the required term directly.

Solution

In the term

(7k)x7−k2k\binom7k x^{7-k}2^k

we need 7−k=57-k=5, hence k=2k=2. The coefficient is

(72)22=21⋅4=84.\binom72 2^2 = 21\cdot4 =84.

Check. The index k=2k=2 is an integer in {0,…,7}\{0,\ldots,7\}. The term is 84x584x^5.

Exercise 14. The resulting exponent

Find the coefficient of x6x^6 in (x2−2)5(x^2-2)^5.

Aim. Translate the power of the summand x2x^2 into the final exponent of xx.

Method. Write the general term and require 2(5−k)=62(5-k)=6.

Solution

The general term is

Tk+1=(5k)(x2)5−k(−2)k=(5k)(−2)kx2(5−k).\begin{aligned}T_{k+1}&=\binom5k(x^2)^{5-k}(-2)^k\\&=\binom5k(-2)^kx^{2(5-k)}.\end{aligned}

The exponent condition gives

2(5−k)=6,k=2.2(5-k)=6, \qquad k=2.

The coefficient is

(52)(−2)2=10⋅4=40.\binom52(-2)^2 = 10\cdot4 =40.

Check. The term is 40x640x^6. Its sign is positive because the exponent on the second summand is even.

Exercise 15. The constant term

Find the constant term in

(x2+2x)6,x≠0.\left(x^2+\dfrac{2}{x}\right)^6, \qquad x\ne0.

Aim. Find the index for which the net exponent of xx is zero.

Method. Combine both contributions into a single power of xx and set the exponent to zero.

Solution

The general term is

Tk+1=(6k)(x2)6−k(2x)k=(6k)2kx12−3k.\begin{aligned} T_{k+1} &= \binom6k(x^2)^{6-k} \left(\dfrac{2}{x}\right)^k\\ &= \binom6k2^k x^{12-3k}. \end{aligned}

For a constant term we need

12−3k=0,k=4.12-3k=0, \qquad k=4.

Its value is

(64)24=15⋅16=240.\binom642^4 = 15\cdot16 =240.

Check. The index 44 is admissible and the exponent is 12−3⋅4=012-3\cdot4=0. The initial restriction x≠0x\ne0 still applies.

Exercise 16. A missing power

Find the coefficient of x5x^5 in

(x2+1x)6,x≠0.\left(x^2+\dfrac{1}{x}\right)^6, \qquad x\ne0.

Aim. Detect when a power does not occur in the expansion.

Method. Solve for the index and test whether it is an admissible integer.

Solution

The exponent of xx in the term of index kk is

2(6−k)−k=12−3k.2(6-k)-k=12-3k.

Obtaining x5x^5 would require

12−3k=5,k=73.12-3k=5, \qquad k=\dfrac{7}{3}.

Since kk is not an integer, no term contains x5x^5, so the coefficient is

0.0.

Check. The possible exponents are 12,9,6,3,0,−3,−612,9,6,3,0,-3,-6. The requested value 55 is missing.

Exercise 17. Sum of coefficients

Find the sum of the coefficients of (3x−2)5(3x-2)^5.

Aim. Evaluate the polynomial without expanding it.

Solution

The sum of the coefficients of a polynomial in xx equals its value at x=1x=1.

(3⋅1−2)5=15=1.(3\cdot1-2)^5 = 1^5 =1.

Check. Coefficients in this expansion alternate in sign. The result is their signed sum.

Exercise 18. Alternating sum of coefficients

Let

P(x)=(2x+3)4=∑j=04cjxj.P(x)=(2x+3)^4 = \sum_{j=0}^{4}c_jx^j.

Find

∑j=04(−1)jcj.\sum_{j=0}^{4}(-1)^jc_j.

Aim. Relate the alternating sum to the value P(−1)P(-1).

Method. Substitute x=−1x=-1 in the unexpanded polynomial.

Solution

By definition,

P(−1)=∑j=04cj(−1)j.P(-1) = \sum_{j=0}^{4}c_j(-1)^j.

The factored form gives

P(−1)=(2(−1)+3)4=1.P(-1) = \bigl(2(-1)+3\bigr)^4 =1.

Hence

∑j=04(−1)jcj=1.\sum_{j=0}^{4}(-1)^jc_j=1.

Check. The coefficients in ascending order of power are 81,216,216,96,1681,216,216,96,16. Their alternating sum is 81−216+216−96+16=181-216+216-96+16=1.

Exercise 19. One or two maximum coefficients

Find the largest coefficients in rows n=10n=10 and n=11n=11 of Pascal’s triangle, and explain why they occur at the centre.

Aim. Locate the maxima without comparing every entry.

Assumptions. The coefficients (nk)\binom nk for k=0,…,nk=0,\ldots,n are positive. Compare consecutive entries by their ratio.

Method. Determine when (nk+1)/(nk)\binom n{k+1}/\binom nk is greater than, equal to or less than 11, then evaluate the central entries.

Solution

0≤k<n0\le k<n:

(nk+1)(nk)=n−kk+1.\dfrac{\binom n{k+1}}{\binom nk} = \dfrac{n-k}{k+1}.

The row increases while n−k>k+1n-k>k+1, has an adjacent equal pair if n−k=k+1n-k=k+1, and then decreases.

For n=10n=10 there is a unique maximum at k=5k=5.

(105)=252.\binom{10}{5}=252.

For n=11n=11 the ratio equals 11 between k=5k=5 and k=6k=6, giving two maxima.

(115)=(116)=462.\binom{11}{5} = \binom{11}{6} =462.

Check. The neighbouring entries (104)=210\binom{10}{4}=210 and (114)=(117)=330\binom{11}{4}=\binom{11}{7}=330 are strictly smaller than the respective maxima.

Exercise 20. A parameter-dependent coefficient

For λ∈R\lambda\in\mathbb R, find the values of λ\lambda making the coefficient of x8x^8 in (x2+λx)6(x^2+\lambda x)^6 equal to 240240.

Aim. Convert a coefficient condition into an equation for a parameter.

Assumptions. The exponent 66 makes the expansion finite. The real parameter λ\lambda may eliminate terms but does not change the admissible indices.

Method. Find the index producing x8x^8, express its coefficient in terms of λ\lambda and solve the real equation.

Solution

The general term is

Tk+1=(6k)(x2)6−k(λx)k=(6k)λkx12−k.\begin{aligned} T_{k+1} &= \binom6k(x^2)^{6-k}(\lambda x)^k\\ &= \binom6k\lambda^k x^{12-k}. \end{aligned}

To get x8x^8 we need 12−k=812-k=8, hence k=4k=4. Its coefficient is

(64)λ4=15λ4.\binom64\lambda^4 =15\lambda^4.

The required condition becomes

15λ4=240,λ4=16.15\lambda^4=240, \qquad \lambda^4=16.

The real solutions are

λ=−2orλ=2.\lambda=-2 \qquad\text{or}\qquad \lambda=2.

Check. Both values give λ4=16\lambda^4=16 and 15λ4=24015\lambda^4=240. There are no other real solutions because λ4−16=(λ2−4)(λ2+4)\lambda^4-16=(\lambda^2-4)(\lambda^2+4) and λ2+4>0\lambda^2+4>0.

Exercise 21. When does a constant term occur?

For m∈N>0m\in\mathbb N_{>0}, determine when

Bm(x)=(x3+1x2)m,x≠0,B_m(x) = \left(x^3+\dfrac{1}{x^2}\right)^m, \qquad x\ne0,

contains a constant term. Calculate the first nontrivial case.

Aim. Derive a divisibility condition on the exponent mm.

Assumptions. The indices k=0,…,mk=0,\ldots,m are integers. A constant term requires one of the resulting exponents of xx to be exactly zero.

Method. Solve the exponent equation in terms of mm using the fact that 33 and 55 are coprime.

Solution

The general term contains the power

x3(m−k)x−2k=x3m−5k.x^{3(m-k)}x^{-2k} = x^{3m-5k}.

A constant term requires

3m−5k=0,k=3m5.3m-5k=0, \qquad k=\dfrac{3m}{5}.

Since gcd⁡(3,5)=1\gcd(3,5)=1, the index is an integer precisely when 55 divides mm. Write m=5qm=5q with q∈N>0q\in\mathbb N_{>0}. Then k=3qk=3q satisfies 0≤3q≤5q0\le3q\le5q.

The first case is m=5m=5, k=3k=3, and its constant term is

(53)=10.\binom53=10.

Check. For m=5qm=5q the exponent is 3(5q)−5(3q)=03(5q)-5(3q)=0. If 55 does not divide mm, no integer index gives exponent zero.

Exercise 22. Two proofs of Pascal’s identity

For n≥2n\ge2 and 1≤k≤n−11\le k\le n-1, prove

(nk)=(n−1k−1)+(n−1k).\binom nk = \binom{n-1}{k-1} + \binom{n-1}{k}.

Aim. Connect the algebraic proof to a partition of the selections.

Assumptions. Choose kk elements out of nn and distinguish one element ee. Subsets containing ee and subsets omitting ee form two disjoint classes covering every choice.

Method. Prove the identity using factorials, then count the two classes separately.

Solution

Algebraically,

(n−1k−1)+(n−1k)=(n−1)!(k−1)!(n−k)!+(n−1)!k!(n−1−k)!=k(n−1)!+(n−k)(n−1)!k!(n−k)!=n!k!(n−k)!=(nk).\begin{gathered} \binom{n-1}{k-1} + \binom{n-1}{k}\\ = \dfrac{(n-1)!}{(k-1)!(n-k)!} + \dfrac{(n-1)!}{k!(n-1-k)!}\\ = \dfrac{k(n-1)!+(n-k)(n-1)!}{k!(n-k)!}\\ = \dfrac{n!}{k!(n-k)!}\\ = \binom nk. \end{gathered}

Subsets containing ee require k−1k-1 further elements from the remaining n−1n-1 and number (n−1k−1)\binom{n-1}{k-1}. Subsets omitting ee require all kk elements from those remaining and number (n−1k)\binom{n-1}{k}. Summing counts every subset once.

Check. For n=9n=9 and k=4k=4,

(83)+(84)=56+70=126=(94).\binom83+\binom84 =56+70 =126 =\binom94.

Exercise 23. Why two pointwise checks are insufficient

A student proposes

Q(x)=32x5−80x4+80x3−39x2+10x−2\begin{aligned}Q(x)&=32x^5-80x^4+80x^3\\&\quad-39x^2+10x-2\end{aligned}

as the expansion of (2x−1)5(2x-1)^5. The evaluations Q(1)=1Q(1)=1 and Q(−1)=−243Q(-1)=-243 agree with the binomial. Is the expansion correct?

Aim. Distinguish necessary checks from a proof of a polynomial identity.

Assumptions. Two polynomials of degree at most 55 can agree at two points without being identical. Compare coefficients or test at least six distinct points for this degree bound.

Method. Calculate the suspect coefficients from the general term and compare QQ with the exact expansion.

Solution

In the general term

Tk+1=(5k)(2x)5−k(−1)k,T_{k+1} = \binom5k(2x)^{5-k}(-1)^k,

the power x2x^2 requires 5−k=25-k=2, so k=3k=3. Its coefficient should be

(53)22(−1)3=−40,\binom53 2^2(-1)^3=-40,

rather than −39-39. The constant term must likewise be (−1)5=−1(-1)^5=-1 rather than −2-2.

The correct expansion is

(2x−1)5=32x5−80x4+80x3−40x2+10x−1.\begin{aligned}(2x-1)^5&=32x^5-80x^4+80x^3\\&\quad-40x^2+10x-1.\end{aligned}

In fact, the difference is

Q(x)−(2x−1)5=x2−1,Q(x)-(2x-1)^5=x^2-1,

which vanishes at x=1x=1 and x=−1x=-1.

Check. Both original pointwise checks passed, but at x=0x=0 we obtain Q(0)=−2Q(0)=-2 whereas (2⋅0−1)5=−1(2\cdot0-1)^5=-1.

Exercise 24. Reconstructing a fourth power

A real polynomial has the form R(x)=(ax+b)4R(x)=(ax+b)^4. Its coefficient of x4x^4 is 1616, its coefficient of x3x^3 is −96-96, and its constant term is 8181. Determine R(x)R(x).

Aim. Recover the two summands from three coefficients and expand the resulting polynomial.

Assumptions. The parameters a,ba,b are real. The pairs (a,b)(a,b) and (−a,−b)(-a,-b) produce the same fourth power, allowing two representations of one polynomial.

Method. Use the leading and constant coefficients to find ∣a∣|a| and ∣b∣|b|, then use the coefficient of x3x^3 to determine the relative sign.

Solution

The three coefficients give

a4=16,4a3b=−96,b4=81.a^4=16, \qquad 4a^3b=-96, \qquad b^4=81.

The outer two equations give

∣a∣=2,∣b∣=3.|a|=2, \qquad |b|=3.

The condition a3b=−24a^3b=-24 requires opposite signs. The two pairs (2,−3)(2,-3) and (−2,3)(-2,3) differ by a common factor −1-1 and yield the same fourth power. Thus

R(x)=(2x−3)4.R(x)=(2x-3)^4.

Expanding gives

R(x)=16x4−96x3+216x2−216x+81.\begin{aligned}R(x)&=16x^4-96x^3+216x^2\\&\quad-216x+81.\end{aligned}

Check. The coefficient of x4x^4 is 1616, the coefficient of x3x^3 is −96-96, and the constant is 8181. Also, R(1)=1=(2−3)4R(1)=1=(2-3)^4.

Guide to the exercises

The main calculation and its check depend on what the question asks.

Question

Main step

Check

Factorial ratio

Cancel common products

Domain in N0\mathbb N_0

Binomial coefficient

Reduce before multiplying

Index between 00 and nn

Complete expansion

Substitute both summands

n+1n+1 terms and consistent degrees

Specified term

Solve the exponent equation

Admissible integer index

Sum of coefficients

Evaluate at x=1x=1 or x=−1x=-1

A single test does not prove an identity

Parameter or proposed solution

Separate existence from value

Boundary cases and counterexamples

For individual definitions see factorials, binomial coefficients, the binomial theorem and Pascal’s triangle. The worked examples bring the definitions, hypotheses and methods together.

Sources

NIST gives the definition of a factorial and the binomial probability formula. The Digital Library of Mathematical Functions gives the factorial identity for the gamma function and Stirling’s asymptotic expansions.

Back to contents