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.2-21

Exercise 1.2.2-21

proved in Lean solution written

Rating15
KindK3, find a value: compute a number, a set or a closed form from the written solution
SectionSection 1.2.2 of Volume 1. Companion chapter: Numbers, powers and logarithms

The task

Write log⁡blog⁡bx\log_b \log_b x using only ln⁡ln⁡x\ln \ln x, ln⁡ln⁡b\ln \ln b and ln⁡b\ln b.

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

First write the inner logarithm with natural logarithms.

Hint 2

Apply the change of base again to the outer logarithm, and use the rule for a quotient.

Solution

Show the solution

Let b>1b > 1 and x>1x > 1, so that ln⁡b>0\ln b > 0 and ln⁡x>0\ln x > 0 and all the logarithms exist. By Eq. (14), log⁡bx=ln⁡x/ln⁡b\log_b x = \ln x / \ln b, which is positive. Apply (14) again: log⁡b(log⁡bx)=ln⁡(ln⁡x/ln⁡b)/ln⁡b\log_b(\log_b x) = \ln(\ln x / \ln b) / \ln b. By Exercise 1.2.2-15, ln⁡(ln⁡x/ln⁡b)=ln⁡ln⁡x−ln⁡ln⁡b\ln(\ln x / \ln b) = \ln \ln x - \ln \ln b. Hence log⁡blog⁡bx=ln⁡ln⁡x−ln⁡ln⁡bln⁡b.\log_b \log_b x = \frac{\ln \ln x - \ln \ln b}{\ln b}.

Check

Take b=2b = 2 and x=16x = 16. Then log⁡216=4\log_2 16 = 4 and log⁡24=2\log_2 4 = 2. The formula gives (ln⁡2.7725−ln⁡0.69315)/0.69315=(1.01978+0.36651)/0.69315=2.0000(\ln 2.7725 - \ln 0.69315)/0.69315 = (1.01978 + 0.36651)/0.69315 = 2.0000.

Remarks

Iterated logarithms of this kind appear in the analysis of algorithms, for example in the running time of some sieves.

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.