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

Exercise 1.2.3-1

proved in Lean solution written

Rating10
Markersrecommended
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

The text gives the dotted sum a1+⋯+a0a_1 + \cdots + a_0 the value 00. Find the value of a2+⋯+a0a_2 + \cdots + a_0 in terms of the aja_j.

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

A dotted sum with limits pp and qq must still obey the joining rule (ap+⋯+aq)+(aq+1+⋯+ar)=ap+⋯+ar(a_p + \cdots + a_q) + (a_{q+1} + \cdots + a_r) = a_p + \cdots + a_r for all integers pp, qq, rr.

Hint 2

Choose pp, qq, rr so that the joined sum is the one that the text defines, and so that one part is a one-term sum.

Solution

Show the solution

Write F(p,q)F(p, q) for the dotted sum ap+⋯+aqa_p + \cdots + a_q. The text fixes two values: F(p,p)=apF(p, p) = a_p (one term) and F(1,0)=0F(1, 0) = 0 (the empty case). The joining rule says F(p,q)+F(q+1,r)=F(p,r)F(p, q) + F(q+1, r) = F(p, r).

Put p=1p = 1, q=1q = 1, r=0r = 0. Then q+1=2q + 1 = 2, and the rule reads F(1,1)+F(2,0)=F(1,0).F(1, 1) + F(2, 0) = F(1, 0). The first term is a1a_1 and the right side is 00. So a1+F(2,0)=0a_1 + F(2, 0) = 0, and a2+⋯+a0=−a1.a_2 + \cdots + a_0 = -a_1.

The same rule gives a3+⋯+a0=−(a1+a2)a_3 + \cdots + a_0 = -(a_1 + a_2), and in general a dotted sum whose upper limit is smaller than the lower limit by more than one is the negative of the terms that lie between the limits. For the limits of the exercise, the terms between are only a1a_1.

Check

Take aj=ja_j = j. The joining rule applied to p=1p = 1, q=0q = 0, r=1r = 1 gives F(1,0)+F(1,1)=F(1,1)F(1,0) + F(1,1) = F(1,1), which holds because F(1,0)=0F(1,0) = 0. For the value of the exercise, F(2,0)=−1F(2, 0) = -1 and a1=1a_1 = 1, so F(1,1)+F(2,0)=1−1=0=F(1,0)F(1,1) + F(2,0) = 1 - 1 = 0 = F(1, 0).

Remarks

The sigma notation with a range, as in Exercise 1.2.3-2, has no such trouble: a sum over the integers jj with 2≤j≤02 \le j \le 0 is empty and is 00. The dotted notation is only a convention for the case where the upper limit is less than the lower limit minus one. The C1 chapter on Section 1.2.3 discusses the empty 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.

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

Something is wrong? Report it.