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

Exercise 1.2.3-11

proved in Lean solution written

Rating03
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 value of ∑0≤j≤naxj\sum_{0 \le j \le n} ax^j for x=1x = 1, where Eq. (14) has a zero in the denominator.

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

Put x=1x = 1 in the sum itself, not in the closed form.

Solution

Show the solution

For x=1x = 1 each term is a⋅1j=aa \cdot 1^j = a, and there are n+1n + 1 terms (j=0,1,…,nj = 0, 1, \ldots, n). So the sum is (n+1)a(n+1)a.

The closed form a(1−xn+1)/(1−x)a(1 - x^{n+1})/(1 - x) is the limit of the same value: for x≠1x \ne 1, (1−xn+1)/(1−x)=1+x+⋯+xn(1 - x^{n+1})/(1 - x) = 1 + x + \cdots + x^n, and this tends to n+1n + 1 when x→1x \to 1.

Check

For n=4n = 4 and a=3a = 3, the sum is 3+3+3+3+3=15=5⋅33 + 3 + 3 + 3 + 3 = 15 = 5 \cdot 3. For x=1.001x = 1.001, n=4n = 4, a=3a = 3, the closed form gives 3(1−1.0015)/(1−1.001)=15.03…3 (1 - 1.001^5)/(1 - 1.001) = 15.03\ldots, close to 1515.

Remarks

The case x=1x = 1 is the one case in which the geometric sum is also the arithmetic sum of Eq. (15) with b=0b = 0. See Exercise 1.2.3-17 for counting terms.

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.