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.1-11

Exercise 1.2.11.1-11

not stated yet in Lean solution written

RatingM11
MarkersM (mathematical)
KindK1, prove: show that a stated fact is true from the written solution
SectionSection 1.2.11.1 of Volume 1. Companion chapter: The O-notation

The task

Explain why nn=1+ln⁡nn+O((ln⁡n/n)2)\sqrt[n]n=1+\frac{\ln n}n+O\bigl((\ln n/n)^2\bigr) in Eq. (18).

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 nn=eln⁡n/n\sqrt[n]n=e^{\ln n/n}.

Hint 2

Use Eq. (12) with m=1m=1.

Solution

Show the solution

nn=n1/n=e(ln⁡n)/n\sqrt[n]n=n^{1/n}=e^{(\ln n)/n}. Eq. (12) with m=1m=1 says ez=1+z+O(z2)e^z=1+z+O(z^2) for z→0z\to0, that is, there are rr and MM with ∣ez−1−z∣≤Mz2|e^z-1-z|\le Mz^2 for ∣z∣≤r|z|\le r. Put z=ln⁡n/nz=\ln n/n. Since ln⁡n/n→0\ln n/n\to0 (Exercise 1.2.11.1-8 with m=1m=1), z≤rz\le r holds for all large nn. Then ∣ez−1−z∣≤M(ln⁡n/n)2|e^z-1-z|\le M(\ln n/n)^2, which is (18).

Check

For n=106n=10^6: ln⁡n/n=1.3816×10−5\ln n/n=1.3816\times10^{-5}. The value nn−1=1.38156×10−5\sqrt[n]n-1=1.38156\times10^{-5} differs from ln⁡n/n\ln n/n by 9.5×10−119.5\times10^{-11}, and (ln⁡n/n)2/2=9.54×10−11(\ln n/n)^2/2=9.54\times10^{-11}.

Remarks

Eq. (19) follows by multiplying the sum of the series by nn and taking the logarithm.

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.