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.6-57

Exercise 1.2.6-57

stated in Lean solution written

RatingM22
MarkersM (mathematical)
KindK1, prove: show that a stated fact is true from the written solution
SectionSection 1.2.6 of Volume 1. Companion chapter: Binomial coefficients

The task

Find the coefficient ama_m in ln⁡n!=a1n+a2n(n−1)+a3n(n−1)(n−2)+⋯\ln n! = a_1n + a_2n(n-1) + a_3n(n-1)(n-2) + \cdots.

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

Put f(n)=ln⁡n!f(n) = \ln n!. Look at the differences f(n+1)−f(n)f(n+1) - f(n).

Hint 2

A polynomial in falling powers is read off by repeated differences at 00: Δjnm‾=mj‾nm−j‾\Delta^j n^{\underline{m}} = m^{\underline{j}}n^{\underline{m-j}}.

Hint 3

Write Δmf(0)\Delta^m f(0) as an alternating sum with eq. 1.2.6(34) in mind.

Solution

Show the solution

Let f(n)=ln⁡n!f(n) = \ln n! and Δf(n)=f(n+1)−f(n)\Delta f(n) = f(n+1) - f(n). Fix j≥1j \ge 1. For n≤jn \le j the terms with m>jm > j of ∑mamnm‾\sum_m a_mn^{\underline{m}} are zero, so f(i)=∑m=1jamim‾f(i) = \sum_{m=1}^{j}a_mi^{\underline{m}} for 0≤i≤j0 \le i \le j. The jjth difference at 00 uses only these values: Δjf(0)=∑i=0j(−1)j−i(ji)f(i)=∑m=1jam∑i=0j(−1)j−i(ji) im‾.\Delta^jf(0) = \sum_{i=0}^{j}(-1)^{j-i}\binom{j}{i}f(i) = \sum_{m=1}^{j}a_m\sum_{i=0}^{j}(-1)^{j-i}\binom{j}{i}\,i^{\underline{m}}. Now im‾i^{\underline{m}} is a polynomial in ii of degree mm with leading coefficient 11. By eq. 1.2.6(34) the inner sum is 00 for m<jm < j and j!j! for m=jm = j. So Δjf(0)=j! aj\Delta^jf(0) = j!\,a_j, that is aj=Δjf(0)/j!a_j = \Delta^jf(0)/j!.

Next compute the difference. Since Δf(i)=ln⁡(i+1)\Delta f(i) = \ln(i+1), we have Δmf(0)=Δm−1(Δf)(0)=∑i=0m−1(−1)m−1−i(m−1i)ln⁡(i+1)\Delta^mf(0) = \Delta^{m-1}(\Delta f)(0) = \sum_{i=0}^{m-1}(-1)^{m-1-i}\binom{m-1}{i}\ln(i+1). Put k=i+1k = i + 1: Δmf(0)=∑k=1m(−1)m−k(m−1k−1)ln⁡k.\Delta^mf(0) = \sum_{k=1}^{m}(-1)^{m-k}\binom{m-1}{k-1}\ln k. The term k=1k = 1 is 00. Also (−1)m−k=(−1)m(−1)k(-1)^{m-k} = (-1)^m(-1)^k. Hence am=(−1)mm!∑k=2m(−1)k(m−1k−1)ln⁡k.a_m = \frac{(-1)^m}{m!}\sum_{k=2}^{m}(-1)^k\binom{m-1}{k-1}\ln k.

Check

a1=0a_1 = 0 (the sum is empty). a2=12ln⁡2a_2 = \frac12\ln 2, and a3=−16(2ln⁡2−ln⁡3)a_3 = -\frac16(2\ln 2 - \ln 3). Then ln⁡2!=2a1+2a2=ln⁡2\ln 2! = 2a_1 + 2a_2 = \ln 2, and ln⁡3!=3a1+6a2+6a3=3ln⁡2−2ln⁡2+ln⁡3=ln⁡2+ln⁡3\ln 3! = 3a_1 + 6a_2 + 6a_3 = 3\ln 2 - 2\ln 2 + \ln 3 = \ln 2 + \ln 3. A program check gives the right ln⁡n!\ln n! for n≤8n \le 8.

Remarks

This is Newton's forward-difference series for ln⁡n!\ln n! at the point 00. Eq. 1.2.5(12) of the book states the series in the form used here.

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

In Lean

stated The statement is in Lean and it builds. The proof is not in Lean yet.

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

Something is wrong? Report it.