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-22

Exercise 1.2.5-22

proved in Lean solution written

RatingHM20
MarkersHM (needs higher mathematics), recommended
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

Guess how (n+x)!/n!(n+x)!/n! behaves as n→∞n \to \infty. Test the guess for integer xx. Say what the guess implies for x!x! with xx not an 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

Euler's argument: (n+12)!/n!(n + \frac12)!/n! times (n+1)!/(n+12)!(n + 1)!/(n + \frac12)! is n+1n + 1. So the ratio (n+x)!/n!(n+x)!/n! should grow like nxn^x. Put this as a limit.

Hint 2

For integer xx, expand (n+x)!/n!(n+x)!/n! as a product of xx factors. For the other xx, assume a function FF with F(y+1)=(y+1)F(y)F(y+1) = (y+1)F(y) and the limit property, and write F(n+x)F(n+x) in terms of F(x)F(x).

Hint 3

Compare the result with eq. (13).

Solution

Show the solution

Hypothesis. For each fixed real xx, (n+x)!n! nx→1\dfrac{(n+x)!}{n!\,n^x} \to 1 as n→∞n \to \infty. That is, (n+x)!/n!∼nx(n+x)!/n! \sim n^x.

(a) The hypothesis is true with (n+x)!=Γ(n+x+1)(n+x)! = \Gamma(n+x+1), for each real xx. The proof uses that Γ\Gamma has the integral form of exercise 20 and the recurrence Γ(y+1)=y Γ(y)\Gamma(y+1) = y\,\Gamma(y) for y>0y > 0.

Step 1: log-convexity. For y1,y2>0y_1, y_2 > 0 and 0<λ<10 < \lambda < 1, Hölder's inequality with exponents 1/λ1/\lambda and 1/(1−λ)1/(1-\lambda) gives

Γ(λy1+(1−λ)y2)=∫0∞(e−tty1−1)λ(e−tty2−1)1−λdt≤Γ(y1)λ Γ(y2)1−λ.\Gamma(\lambda y_1 + (1-\lambda)y_2) = \int_0^\infty \left(e^{-t}t^{y_1-1}\right)^{\lambda}\left(e^{-t}t^{y_2-1}\right)^{1-\lambda}dt \le \Gamma(y_1)^{\lambda}\,\Gamma(y_2)^{1-\lambda}.

Step 2: 0<θ<10 < \theta < 1. The point n+θn + \theta is (1−θ)n+θ(n+1)(1-\theta)n + \theta(n+1), so Γ(n+θ)≤Γ(n)1−θΓ(n+1)θ=Γ(n) nθ\Gamma(n+\theta) \le \Gamma(n)^{1-\theta}\Gamma(n+1)^{\theta} = \Gamma(n)\,n^{\theta}. The point n+1n + 1 is θ(n+θ)+(1−θ)(n+1+θ)\theta(n+\theta) + (1-\theta)(n+1+\theta), so Γ(n+1)≤Γ(n+θ)θΓ(n+1+θ)1−θ=Γ(n+θ) (n+θ)1−θ\Gamma(n+1) \le \Gamma(n+\theta)^{\theta}\Gamma(n+1+\theta)^{1-\theta} = \Gamma(n+\theta)\,(n+\theta)^{1-\theta}. Together, with Γ(n+1)=n Γ(n)\Gamma(n+1) = n\,\Gamma(n),

(nn+θ)1−θ≤Γ(n+θ)Γ(n) nθ≤1.\left(\frac{n}{n+\theta}\right)^{1-\theta} \le \frac{\Gamma(n+\theta)}{\Gamma(n)\,n^{\theta}} \le 1.

The left side tends to 11. So Γ(n+θ)/(Γ(n) nθ)→1\Gamma(n+\theta)/(\Gamma(n)\,n^\theta) \to 1. The case θ=0\theta = 0 is trivial.

Step 3: all real yy. Let rn(y)=Γ(n+y)/(Γ(n) ny)r_n(y) = \Gamma(n+y)/(\Gamma(n)\,n^y). By the recurrence, rn(y+1)=n+yn rn(y)r_n(y+1) = \frac{n+y}{n}\,r_n(y) and rn(y−1)=nn+y−1 rn(y)r_n(y-1) = \frac{n}{n+y-1}\,r_n(y) for large nn. The factors tend to 11. So if rn(y)→1r_n(y) \to 1 then rn(y±1)→1r_n(y \pm 1) \to 1. With Step 2 this gives rn(y)→1r_n(y) \to 1 for each real yy.

Step 4. Γ(n+x+1)Γ(n+1) nx=rn(x+1)\dfrac{\Gamma(n+x+1)}{\Gamma(n+1)\,n^x} = r_n(x+1), because Γ(n+1)=n Γ(n)\Gamma(n+1) = n\,\Gamma(n). So the ratio tends to 11.

(b) Integer x≥0x \ge 0. Then (n+x)!n! nx=∏i=1xn+in=∏i=1x(1+in)→1\dfrac{(n+x)!}{n!\,n^x} = \prod_{i=1}^{x}\dfrac{n+i}{n} = \prod_{i=1}^{x}\left(1 + \frac{i}{n}\right) \to 1. The hypothesis holds.

(c) What it says about x!x!. Let FF be a function with F(0)=1F(0) = 1 and F(y+1)=(y+1)F(y)F(y+1) = (y+1)F(y), and let xx not be a negative integer. Then F(n)=n!F(n) = n! and F(n+x)=F(x) (x+1)(x+2)⋯(x+n)F(n+x) = F(x)\,(x+1)(x+2)\cdots(x+n), by the recurrence. If the hypothesis holds for FF at xx, then

F(x) (x+1)⋯(x+n)n! nx→1,soF(x)=lim⁡n→∞n! nx(x+1)(x+2)⋯(x+n).F(x)\,\frac{(x+1)\cdots(x+n)}{n!\,n^x} \to 1, \qquad\text{so}\qquad F(x) = \lim_{n \to \infty}\frac{n!\,n^x}{(x+1)(x+2)\cdots(x+n)}.

This is eq. (13). So the hypothesis fixes x!x! for every noninteger xx, and it leads to Euler's definition.

Check

Python gives Γ(n+x+1)/(Γ(n+1) nx)\Gamma(n+x+1)/(\Gamma(n+1)\,n^x) for x=12x = \frac12: 1.036961.03696 at n=10n = 10, 1.0003751.000375 at n=1000n = 1000, and 1.000000371.00000037 at n=106n = 10^6. For x=−52x = -\frac52 the values at the same nn are 1.223011.22301, 1.0018781.001878 and 1.00000191.0000019. For x=73x = \frac73 they are 1.428331.42833, 1.0038931.003893 and 1.00000391.0000039. For x=2x = 2 the product is (1+1n)(1+2n)(1 + \frac1n)(1 + \frac2n), for example 1.321.32 at n=10n = 10.

Remarks

The error in (a) is of order 1/n1/n: the ratio is 1+x(x+1)2n+O(n−2)1 + \frac{x(x+1)}{2n} + O(n^{-2}), which matches the values above for x=12x = \frac12, where x(x+1)2=0.375\frac{x(x+1)}{2} = 0.375. Exercise 1.2.5-20 supplies the integral that the proof of (a) uses.

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. Lean states the parts one by one.

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

Something is wrong? Report it.