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

Exercise 1.2.7-25

proved in Lean solution written

RatingM21
MarkersM (mathematical)
KindK3, find a value: compute a number, a set or a closed form from the written solution
SectionSection 1.2.7 of Volume 1. Companion chapter: Harmonic numbers

The task

Find Hn(0,v)H_n^{(0,v)} and Hn(u,0)H_n^{(u,0)}, and prove that Hn(u,v)+Hn(v,u)=Hn(u)Hn(v)+Hn(u+v)H_n^{(u,v)} + H_n^{(v,u)} = H_n^{(u)}H_n^{(v)} + H_n^{(u+v)}.

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

For the special cases, count how many times each term occurs in the double sum.

Hint 2

For the identity, expand the product Hn(u)Hn(v)H_n^{(u)}H_n^{(v)} as a sum over all pairs (j,k)(j, k) with 1≤j,k≤n1 \le j, k \le n, and split the pairs into j≤kj \le k, j≥kj \ge k and j=kj = k.

Solution

Show the solution

Here Hn(u,v)=∑1≤j≤k≤nj−uk−vH_n^{(u,v)} = \sum_{1 \le j \le k \le n}j^{-u}k^{-v} for integers uu, vv, and Hn(r)=∑k=1nk−rH_n^{(r)} = \sum_{k=1}^{n}k^{-r}.

Case u=0u = 0. The inner sum over jj with 1≤j≤k1 \le j \le k has kk terms equal to 11, so Hn(0,v)=∑k=1nk⋅k−v=Hn(v−1)H_n^{(0,v)} = \sum_{k=1}^{n}k\cdot k^{-v} = H_n^{(v-1)}.

Case v=0v = 0. For a fixed jj the index kk takes n+1−jn + 1 - j values from jj to nn, so Hn(u,0)=∑j=1n(n+1−j) j−u=(n+1)Hn(u)−Hn(u−1)H_n^{(u,0)} = \sum_{j=1}^{n}(n+1-j)\,j^{-u} = (n+1)H_n^{(u)} - H_n^{(u-1)}.

Identity. The product is Hn(u)Hn(v)=∑1≤j,k≤nj−uk−vH_n^{(u)}H_n^{(v)} = \sum_{1 \le j, k \le n}j^{-u}k^{-v}. Split the pairs into the pairs with j≤kj \le k and the pairs with j≥kj \ge k. The pairs with j=kj = k are in both parts, so

Hn(u)Hn(v)=∑j≤kj−uk−v+∑j≥kj−uk−v−∑j=kj−u−v.H_n^{(u)}H_n^{(v)} = \sum_{j \le k}j^{-u}k^{-v} + \sum_{j \ge k}j^{-u}k^{-v} - \sum_{j = k}j^{-u-v}.

The first sum is Hn(u,v)H_n^{(u,v)}. In the second sum rename (j,k)(j, k) to (k,j)(k, j): it becomes ∑1≤a≤b≤na−vb−u\sum_{1 \le a \le b \le n}a^{-v}b^{-u} with a=ka = k and b=jb = j, which is Hn(v,u)H_n^{(v,u)}. The last sum is Hn(u+v)H_n^{(u+v)}. So Hn(u)Hn(v)=Hn(u,v)+Hn(v,u)−Hn(u+v)H_n^{(u)}H_n^{(v)} = H_n^{(u,v)} + H_n^{(v,u)} - H_n^{(u+v)}, which is the identity.

Check

For n=3n = 3, u=1u = 1 and v=2v = 2: H3(1,2)+H3(2,1)=395108H_3^{(1,2)} + H_3^{(2,1)} = \frac{395}{108} and H3(1)H3(2)+H3(3)=116⋅4936+251216=395108H_3^{(1)}H_3^{(2)} + H_3^{(3)} = \frac{11}{6}\cdot\frac{49}{36} + \frac{251}{216} = \frac{395}{108}. Python checks the identity and the two special cases with exact fractions for n=7n = 7 and (u,v)=(2,3),(1,1),(0,3),(4,0)(u, v) = (2, 3), (1, 1), (0, 3), (4, 0). With v=0v = 0 the identity says Hn(u,0)+Hn(0,u)=(n+1)Hn(u)H_n^{(u,0)} + H_n^{(0,u)} = (n+1)H_n^{(u)}, which agrees with the two special cases.

Remarks

The case u=v=1u = v = 1 is the identity of exercise 1.2.7-14, since Hn(1,1)=∑kHk/kH_n^{(1,1)} = \sum_k H_k/k. The case v=0v = 0 with u=1u = 1 is eq. (8) written as a double sum.

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