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

Exercise 1.2.3-8

proved in Lean solution written

RatingHM25
MarkersHM (needs higher mathematics)
KindK1, prove: show that a stated fact is true from the written solution
SectionSection 1.2.3 of Volume 1. Companion chapter: Sums and products

The task

Give an array aija_{ij} with i,j≥1i, j \ge 1 for which every row and every column has a convergent sum, but ∑i∑jaij≠∑j∑iaij\sum_i \sum_j a_{ij} \ne \sum_j \sum_i a_{ij}.

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

The interchange can fail only when the double sum is not absolutely convergent. Look for an array with only two nonzero entries in each row and in each column, so that every inner sum is finite.

Hint 2

Make the entries cancel in each column, but not in the first row.

Solution

Show the solution

Let R(i)=S(j)=R(i) = S(j) = "≥1\ge 1". Define aii=1,ai+1, i=−1(i≥1),aij=0 otherwise.a_{ii} = 1, \qquad a_{i+1,\,i} = -1 \quad (i \ge 1), \qquad a_{ij} = 0 \text{ otherwise}.

The array looks like this in its upper left corner (rows ii, columns jj): (1000−11000−11000−11).\begin{pmatrix} 1 & 0 & 0 & 0 \\ -1 & 1 & 0 & 0 \\ 0 & -1 & 1 & 0 \\ 0 & 0 & -1 & 1 \end{pmatrix}.

Sum of the rows first. Row 11 has the one nonzero entry a11=1a_{11} = 1, so its sum is 11. Row i≥2i \ge 2 has the two nonzero entries ai,i−1=−1a_{i,i-1} = -1 and aii=1a_{ii} = 1, so its sum is 00. Then ∑i∑jaij=1+0+0+⋯=1\sum_i \sum_j a_{ij} = 1 + 0 + 0 + \cdots = 1.

Sum of the columns first. Column jj has the two nonzero entries ajj=1a_{jj} = 1 and aj+1,j=−1a_{j+1,j} = -1, so its sum is 00 for each j≥1j \ge 1. Then ∑j∑iaij=0\sum_j \sum_i a_{ij} = 0.

All inner sums have at most two nonzero terms, so they exist. All outer sums exist. The two iterated sums are 11 and 00, so Eq. (7) fails. The double sum of the absolute values is infinite, which is why the condition of the text is not met.

Check

Take the corner of rows and columns 11 to 55. The row sums are 1,0,0,0,01, 0, 0, 0, 0. The column sums are 0,0,0,00, 0, 0, 0 for the columns 11 to 44, and 11 for column 55, because its entry −1-1 lies in row 66, outside the corner. So the corner of every size shows the sum 11 both ways, and the two orders differ only in the limit: in the order rows first, the entry −1-1 below the corner is summed in a later row, and in the order columns first, it cancels the 11 above it.

Remarks

By the rule of the text, if ∑i∑j∣aij∣\sum_i \sum_j |a_{ij}| is finite, or if one of the two ranges is finite, the interchange is valid. This example violates both. The C1 chapter on Section 1.2.3 uses the same example.

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.