taocp

This site has no text of the book. Keep your own copy of TAOCP next to it. See what is checked.

Exercise · Volume 1 · 1.2.5-8

Exercise 1.2.5-8

proved in Lean solution written

RatingHM15
MarkersHM (needs higher mathematics)
KindK1, prove: show that a stated fact is true from the written solution
SectionSection 1.2.5 of Volume 1. Companion chapter: Permutations and factorials

The task

Show that the limit in eq. (13) is n!n! when nn is a nonnegative integer.

The exact wording is in your copy of the book.

Hints

Open one hint at a time. Try the exercise again after each.

Hint 1

Write the product (n+1)(n+2)⋯(n+m)(n+1)(n+2)\cdots(n+m) with factorials.

Hint 2

That product is (n+m)!/n!(n+m)!/n!. Compare (n+m)!(n+m)! with m! mnm!\,m^n by the ratio of their sizes.

Solution

Show the solution

Let n≥0n \ge 0 be an integer and let m≥1m \ge 1. The product in the denominator is

(n+1)(n+2)⋯(n+m)=(n+m)!n!.(n+1)(n+2)\cdots(n+m) = \frac{(n+m)!}{n!}.

So the quantity under the limit is

mn m!(n+m)!/n!=n!⋅mn m!(n+m)!.\frac{m^n\, m!}{(n+m)!/n!} = n! \cdot \frac{m^n\, m!}{(n+m)!}.

Now (n+m)!=m! (m+1)(m+2)⋯(m+n)(n+m)! = m! \,(m+1)(m+2)\cdots(m+n), which has nn factors after m!m!. Hence

mn m!(n+m)!=∏j=1nmm+j.\frac{m^n\, m!}{(n+m)!} = \prod_{j=1}^{n} \frac{m}{m+j}.

Each factor m/(m+j)=1/(1+j/m)m/(m+j) = 1/(1 + j/m) tends to 11 as m→∞m \to \infty, and the product has a fixed number nn of factors. So the product tends to 11, and the limit of the whole quantity is n!n!. For n=0n = 0 the product is empty, the quantity equals 0!⋅1=10!\cdot 1 = 1 for all mm, and the limit is 1=0!1 = 0!.

Check

For n=3n = 3 and m=1000m = 1000 the quantity is 6⋅10001001⋅10001002⋅10001003=5.96415…6 \cdot \frac{1000}{1001}\cdot\frac{1000}{1002}\cdot\frac{1000}{1003} = 5.96415\ldots. For m=106m = 10^6 it is 5.999964…5.999964\ldots. Both are below 3!=63! = 6 and the gap shrinks like 36/m36/m: it is 0.03590.0359 for m=1000m = 1000 and 0.0000360.000036 for m=106m = 10^6. The gap agrees with n! n(n+1)2/m=6⋅6/mn!\,\frac{n(n+1)}{2}/m = 6 \cdot 6/m, the first-order term of ∏j(1+j/m)−1\prod_j (1 + j/m)^{-1}.

Remarks

The same limit defines x!x! for noninteger xx in eq. (13). Exercise 1.2.5-22 explains why this is the natural definition.

This solution is checked, and a person has not reviewed it yet. The source.

In Lean

proved The statement and its proof are in Lean. The kernel accepts the proof, and it uses the standard axioms only.

The status is computed from the Lean build. The node of the map.

Something is wrong? Report it.