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

Exercise 1.2.3-4

proved in Lean solution written

Rating10
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

Write both sides of Eq. (10) for n=3n = 3 as sums of sums, with no sigma sign, so that the grouping of the terms is visible.

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 left side groups the terms by ii (rows of a triangle), the right side groups them by jj (columns). Write the triangle 1≤j≤i≤31 \le j \le i \le 3 first.

Solution

Show the solution

The pairs (i,j)(i, j) with 1≤j≤i≤31 \le j \le i \le 3 are (1,1)(1,1), (2,1)(2,1), (2,2)(2,2), (3,1)(3,1), (3,2)(3,2), (3,3)(3,3).

The left side, ∑i=13∑j=1iaij\sum_{i=1}^3 \sum_{j=1}^i a_{ij}, has one inner sum for each ii: (a11)+(a21+a22)+(a31+a32+a33).(a_{11}) + (a_{21} + a_{22}) + (a_{31} + a_{32} + a_{33}).

The right side, ∑j=13∑i=j3aij\sum_{j=1}^3 \sum_{i=j}^3 a_{ij}, has one inner sum for each jj: (a11+a21+a31)+(a22+a32)+(a33).(a_{11} + a_{21} + a_{31}) + (a_{22} + a_{32}) + (a_{33}).

Both sides contain the same six terms, once each, in a different grouping.

Check

Take aij=10i+ja_{ij} = 10i + j. The left side is 11+(21+22)+(31+32+33)=11+43+96=15011 + (21 + 22) + (31 + 32 + 33) = 11 + 43 + 96 = 150. The right side is (11+21+31)+(22+32)+33=63+54+33=150(11 + 21 + 31) + (22 + 32) + 33 = 63 + 54 + 33 = 150.

Remarks

This is the interchange of Eq. (9) in the simplest triangular case. Exercise 1.2.3-18 does the same with a divisibility relation.

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.