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

Exercise 1.2.3-42

proved in Lean solution written

RatingM18
MarkersM (mathematical)
KindK3, find a value: compute a number, a set or a closed form from the written solution
SectionSection 1.2.3 of Volume 1. Companion chapter: Sums and products

The task

Find the sum of all n2n^2 entries of the inverse of the combinatorial matrix.

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

Use the inverse of Exercise 1.2.3-39. It has one value on the diagonal and one value elsewhere.

Solution

Show the solution

By Exercise 1.2.3-39 the inverse has the entries (−y+δij(x+ny))/(x(x+ny))(-y + \delta_{ij}(x + ny)) / (x(x + ny)), for x≠0x \ne 0 and x+ny≠0x + ny \ne 0. There are n2n^2 entries, of which nn are on the diagonal. The sum of the numerators is −yn2+n(x+ny)=−n2y+nx+n2y=nx.-y n^2 + n(x + ny) = -n^2 y + nx + n^2 y = nx. Divide by x(x+ny)x(x + ny): ∑i,jbij=nxx(x+ny)=nx+ny.\sum_{i,j} b_{ij} = \frac{nx}{x(x + ny)} = \frac{n}{x + ny}.

Check

For n=3n = 3, x=2x = 2, y=3y = 3 the inverse has three entries 4/114/11 and six entries −3/22-3/22. The sum is 12/11−18/22=12/11−9/11=3/1112/11 - 18/22 = 12/11 - 9/11 = 3/11. The formula gives 3/(2+9)=3/113/(2 + 9) = 3/11.

Remarks

There is a shorter route. Let 𝟏\mathbf{1} be the column of ones. Then M𝟏=(x+ny)𝟏M\mathbf{1} = (x + ny)\mathbf{1}, so M−1𝟏=𝟏/(x+ny)M^{-1}\mathbf{1} = \mathbf{1}/(x + ny), and the sum of all entries of M−1M^{-1} is 𝟏TM−1𝟏=n/(x+ny)\mathbf{1}^T M^{-1} \mathbf{1} = n/(x + ny). Exercises 1.2.3-43 and 1.2.3-44 find the same sum for two other families.

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.