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

Exercise 1.2.7-7

stated in Lean solution written

RatingM21
MarkersM (mathematical)
KindK1, prove: show that a stated fact is true from the written solution
SectionSection 1.2.7 of Volume 1. Companion chapter: Harmonic numbers

The task

Let T(m,n)=Hm+Hn−HmnT(m, n) = H_m + H_n - H_{mn}. Show that TT does not increase when mm or nn increases, and find its minimum and maximum for m,n>0m, n > 0.

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

Study T(m+1,n)−T(m,n)T(m+1, n) - T(m, n). It has the term 1m+1\frac{1}{m+1} and nn terms of the form 1mn+i\frac{1}{mn + i}.

Hint 2

To find the extreme values, let one argument grow with the other fixed, and use the monotony together with eq. (3) and exercise 4.

Solution

Show the solution

Monotony. For m,n≥1m, n \ge 1,

T(m+1,n)−T(m,n)=1m+1−(H(m+1)n−Hmn)=1m+1−∑i=1n1mn+i.T(m+1, n) - T(m, n) = \frac{1}{m+1} - \left(H_{(m+1)n} - H_{mn}\right) = \frac{1}{m+1} - \sum_{i=1}^{n}\frac{1}{mn + i}.

Each of the nn terms of the sum is at least 1mn+n\frac{1}{mn + n}, so the sum is at least nn(m+1)=1m+1\frac{n}{n(m+1)} = \frac{1}{m+1}. Therefore T(m+1,n)≤T(m,n)T(m+1, n) \le T(m, n). The function TT is symmetric in mm and nn, so T(m,n+1)≤T(m,n)T(m, n+1) \le T(m, n) as well.

Maximum. T(1,1)=1+1−1=1T(1, 1) = 1 + 1 - 1 = 1. By the monotony, T(m,n)≤T(1,n)≤T(1,1)=1T(m, n) \le T(1, n) \le T(1, 1) = 1, so the maximum is 11. The same holds on all pairs with m=1m = 1 or n=1n = 1, since T(1,n)=1+Hn−Hn=1T(1, n) = 1 + H_n - H_n = 1.

Minimum. Fix mm. The values T(m,n)T(m, n) do not increase in nn, so they are at least the limit as n→∞n \to \infty. By eq. (3), Hn−Hmn→ln⁡n−ln⁡(mn)=−ln⁡mH_n - H_{mn} \to \ln n - \ln(mn) = -\ln m. So T(m,n)≥Hm−ln⁡mT(m, n) \ge H_m - \ln m for all nn. By exercise 4, Hm−ln⁡m>γH_m - \ln m > \gamma. Thus T(m,n)>γT(m, n) > \gamma for all m,nm, n. On the other side, Hm−ln⁡m→γH_m - \ln m \to \gamma as m→∞m \to \infty, and T(m,n)T(m, n) tends to Hm−ln⁡mH_m - \ln m as n→∞n \to \infty. So γ\gamma is the greatest lower bound of TT. No pair (m,n)(m, n) gives the value γ\gamma, so TT has no minimum, and its infimum is γ=0.5772…\gamma = 0.5772\ldots.

Check

For m,n∈{1,2,3}m, n \in \{1, 2, 3\}, python gives the table of T(m,n)T(m, n) with rows 1,1,11, 1, 1; 1,1112,53601, \frac{11}{12}, \frac{53}{60}; 1,5360,211125201, \frac{53}{60}, \frac{2111}{2520}. Rows and columns do not increase. Python also tests all pairs with m,n≤19m, n \le 19 for the two monotony inequalities. For example T(5,80)=0.67888T(5, 80) = 0.67888, which is above H5−ln⁡5=0.67390H_5 - \ln 5 = 0.67390 and above γ\gamma, and T(20,20)=0.62555T(20, 20) = 0.62555.

Remarks

Along the diagonal, T(n,n)=2Hn−Hn2T(n, n) = 2H_n - H_{n^2} tends to γ\gamma as n→∞n \to \infty, by eq. (3).

This solution is checked, 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. 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.