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.11.2-7

Exercise 1.2.11.2-7

not stated yet in Lean solution written

RatingHM32
MarkersHM (needs higher mathematics)
KindK4, find an estimate: give an asymptotic form or a bound from the written solution
SectionSection 1.2.11.2 of Volume 1. Companion chapter: Euler's summation formula

The task

Find the asymptotic form of 112233⋯nn1^12^23^3\cdots n^n.

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

Take the logarithm and apply Euler's formula to f(x)=xln⁡xf(x)=x\ln x.

Hint 2

Keep the terms with B1B_1 and B2B_2, and show that the remainder has a limit.

Solution

Show the solution

Let Ln=∑k=1nkln⁡kL_n=\sum_{k=1}^nk\ln k. For f(x)=xln⁡xf(x)=x\ln x: f′=ln⁡x+1f'=\ln x+1, f′′=1xf''=\frac1x, f′′′=−1x2f'''=-\frac1{x^2}, and ∫1nxln⁡x dx=n22ln⁡n−n24+14\int_1^nx\ln x\,dx=\frac{n^2}2\ln n-\frac{n^2}4+\frac14. Euler's formula (10) with m=2m=2:

∑1≤k<nkln⁡k=n22ln⁡n−n24+14−12nln⁡n+112ln⁡n+R2n,\sum_{1\le k<n}k\ln k=\frac{n^2}2\ln n-\frac{n^2}4+\frac14-\frac12n\ln n+\frac1{12}\ln n+R_{2n},

because f(1)=0f(1)=0 and f′(n)−f′(1)=ln⁡nf'(n)-f'(1)=\ln n. Here R2n=−12∫1nB2({x})dxxR_{2n}=-\frac12\int_1^nB_2(\{x\})\frac{dx}x. Since B2=13B3′B_2=\frac13B_3' and B3=14B4′B_3=\frac14B_4', two integrations by parts (the boundary terms vanish at integers, because B3(0)=B3(1)=0B_3(0)=B_3(1)=0) show that ∫1∞B2({x})dxx\int_1^\infty B_2(\{x\})\frac{dx}x converges and that its tail beyond nn is O(n−2)O(n^{-2}). So R2n=R2∞+O(n−2)R_{2n}=R_{2\infty}+O(n^{-2}). Adding f(n)=nln⁡nf(n)=n\ln n:

Ln=(n22+n2+112)ln⁡n−n24+ln⁡A+O(n−2),L_n=\Bigl(\frac{n^2}2+\frac n2+\frac1{12}\Bigr)\ln n-\frac{n^2}4+\ln A+O(n^{-2}),

where ln⁡A=14+R2∞\ln A=\frac14+R_{2\infty} is a constant. Therefore

1122⋯nn=A nn2/2+n/2+1/12e−n2/4(1+O(n−2)).1^12^2\cdots n^n=A\,n^{n^2/2+n/2+1/12}e^{-n^2/4}\bigl(1+O(n^{-2})\bigr).

Taking m=4m=4 in (10) adds the terms B424(f′′′(n)−f′′′(1))=1720n2+const\frac{B_4}{24}\bigl(f'''(n)-f'''(1)\bigr)=\frac{1}{720n^2}+\text{const}, so the factor is 1+1720n2+O(n−4)1+\frac1{720n^2}+O(n^{-4}).

The constant is A=1.2824271291…A=1.2824271291\ldots (the Glaisher-Kinkelin constant, equal to e1/12−ζ′(−1)e^{1/12-\zeta'(-1)}). Euler's formula alone gives the existence of AA and not its closed form. The value is quoted from the literature and checked here only by the numerical computation in the Check. The closed form is not derived in this solution.

Check

Python gives ln⁡∏kk−(n22+n2+112)ln⁡n+n24−ln⁡A=1.3869×10−5, 1.38887×10−7, 1.38889×10−9\ln\prod k^k-(\frac{n^2}2+\frac n2+\frac1{12})\ln n+\frac{n^2}4-\ln A=1.3869\times10^{-5},\ 1.38887\times10^{-7},\ 1.38889\times10^{-9} for n=10,100,1000n=10,100,1000, which agree with 1720n2=1.3889×10−5, 1.3889×10−7, 1.3889×10−9\frac1{720n^2}=1.3889\times10^{-5},\ 1.3889\times10^{-7},\ 1.3889\times10^{-9} to the order n−4n^{-4}.

Remarks

The constant AA relates to the zeta function by ln⁡A=112−ζ′(−1)\ln A=\frac1{12}-\zeta'(-1). For the sum ∑k2ln⁡k\sum k^2\ln k or ∑ln⁡k!\sum\ln k! the same method gives similar constants.

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

In Lean

not stated yet The exercise is not stated in Lean yet.

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

Something is wrong? Report it.