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

Exercise 1.2.3-3

not stated yet in Lean solution written

Rating13
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

Write the two sums ∑0≤n≤512n+1\sum_{0 \le n \le 5} \frac{1}{2n+1} and ∑0≤n2≤512n2+1\sum_{0 \le n^2 \le 5} \frac{1}{2n^2+1} without the sigma sign, and explain why they differ although the second one looks like a change of variable.

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

List the integers that satisfy each relation. In the second sum the index nn may be negative.

Hint 2

The second sum is the first one with nn replaced by p(n)=n2p(n) = n^2. Rule (b) needs that pp takes each wanted value exactly once. Count how often n2n^2 takes each of the values 0,…,50, \ldots, 5.

Solution

Show the solution

For the first sum, n=0,1,2,3,4,5n = 0, 1, 2, 3, 4, 5, and the terms are 1/(2n+1)1/(2n+1): 1+13+15+17+19+111.1 + \tfrac13 + \tfrac15 + \tfrac17 + \tfrac19 + \tfrac1{11}.

For the second sum, the relation 0≤n2≤50 \le n^2 \le 5 holds for n=−2,−1,0,1,2n = -2, -1, 0, 1, 2, because (±2)2=4≤5(\pm 2)^2 = 4 \le 5 and (±3)2=9>5(\pm 3)^2 = 9 > 5. The terms are 1/(2n2+1)1/(2n^2 + 1): 19+13+1+13+19=1+2⋅13+2⋅19.\tfrac19 + \tfrac13 + 1 + \tfrac13 + \tfrac19 = 1 + 2\cdot\tfrac13 + 2\cdot\tfrac19.

The two results differ. The second sum is ∑R(p(n))ap(n)\sum_{R(p(n))} a_{p(n)} with ak=1/(2k+1)a_k = 1/(2k+1), R(k)=R(k) = "0≤k≤50 \le k \le 5" and p(n)=n2p(n) = n^2. Rule (b) holds only if for each kk with R(k)R(k) there is exactly one nn with p(n)=kp(n) = k. Here the values k=2,3,5k = 2, 3, 5 are not squares, so they occur for no nn, and the values k=1k = 1 and k=4k = 4 occur twice (n=±1n = \pm 1 and n=±2n = \pm 2). The value k=0k = 0 occurs once. Eq. (18) of the text gives the true value: each aka_k is counted as many times as there are nn with n2=kn^2 = k, ∑R(p(n))ap(n)=a0+2a1+2a4=1+23+29.\sum_{R(p(n))} a_{p(n)} = a_0 + 2a_1 + 2a_4 = 1 + \tfrac23 + \tfrac29.

Check

The numbers are 1+13+15+17+19+111=65083465≈1.8781 + \frac13 + \frac15 + \frac17 + \frac19 + \frac1{11} = \frac{6508}{3465} \approx 1.878 and 1+23+29=179≈1.8891 + \frac23 + \frac29 = \frac{17}{9} \approx 1.889. They are different, as they must be. If p(n)=n+1p(n) = n + 1 were used instead, the two sums would agree, because n+1n + 1 takes each value once.

Remarks

The change p(n)=c±np(n) = c \pm n never fails, because it takes each integer exactly once. See the C1 chapter on Section 1.2.3 for Eq. (18), and Exercise 1.2.3-7 for the case of an infinite sum.

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.