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

Exercise 1.2.3-26

not stated yet in Lean solution written

Rating25
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

Write ∏i=0n∏j=0iaiaj\prod_{i=0}^n \prod_{j=0}^i a_i a_j as a power of ∏i=0nai\prod_{i=0}^n a_i.

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 double product has one factor aiaja_i a_j for each pair 0≤j≤i≤n0 \le j \le i \le n. Split each factor into aia_i and aja_j with the product form of Eq. (8).

Hint 2

Count how often a fixed aka_k occurs, once as aia_i and once as aja_j.

Solution

Show the solution

Write the double product with one relation, and use the product form of Eq. (8) (Exercise 1.2.3-22): P=∏0≤j≤i≤naiaj=(∏0≤j≤i≤nai)(∏0≤j≤i≤naj).P = \prod_{0 \le j \le i \le n} a_i a_j = \Bigl(\prod_{0 \le j \le i \le n} a_i\Bigr)\Bigl(\prod_{0 \le j \le i \le n} a_j\Bigr).

First factor. For fixed ii, the inner product over 0≤j≤i0 \le j \le i has i+1i + 1 equal factors aia_i, so it is ai i+1a_i^{\,i+1}. Hence the first factor is ∏i=0nai i+1\prod_{i=0}^n a_i^{\,i+1}.

Second factor. Interchange the order (rule (c), the product form of Eq. (10)): ∏0≤j≤i≤naj=∏j=0n∏i=jnaj=∏j=0naj n−j+1\prod_{0 \le j \le i \le n} a_j = \prod_{j=0}^n \prod_{i=j}^n a_j = \prod_{j=0}^n a_j^{\,n-j+1}, because ii takes n−j+1n - j + 1 values for fixed jj.

Together. Rename jj to ii in the second factor (rule (b)) and join the two products over the same range: P=∏i=0nai i+1 ai n−i+1=∏i=0nai n+2=(∏i=0nai)n+2.P = \prod_{i=0}^n a_i^{\,i+1}\, a_i^{\,n-i+1} = \prod_{i=0}^n a_i^{\,n+2} = \Bigl(\prod_{i=0}^n a_i\Bigr)^{n+2}.

Check

Take n=2n = 2 and a=(1,2,3)a = (1, 2, 3). The pairs (i,j)(i, j) are (0,0),(1,0),(1,1),(2,0),(2,1),(2,2)(0,0), (1,0), (1,1), (2,0), (2,1), (2,2), with the factors 1,2,4,3,6,91, 2, 4, 3, 6, 9 and the product 12961296. The product of the aia_i is 66, and 6n+2=64=12966^{n+2} = 6^4 = 1296.

Remarks

The same count shows that for the sum ∑0≤j≤i≤n(ai+aj)\sum_{0 \le j \le i \le n} (a_i + a_j) the result is (n+2)∑iai(n+2) \sum_i a_i. Compare Eq. (13), where the factors aiaja_i a_j are multiplied inside a sum and the diagonal needs extra care.

This solution is checked, and a person has not reviewed it yet. The source.

In Lean

not stated yet The exercise is not stated in Lean yet.

The status is computed from the Lean build. The node of the map.

Something is wrong? Report it.