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

Exercise 1.2.1-11

proved in Lean solution written

RatingM30
MarkersM (mathematical)
KindK3, find a value: compute a number, a set or a closed form from the written solution
SectionSection 1.2.1 of Volume 1. Companion chapter: Mathematical induction

The task

Find and prove a simple formula for the alternating sum ∑k=0n(−1)k(2k+1)3(2k+1)4+4\sum_{k=0}^{n} (-1)^k \frac{(2k+1)^3}{(2k+1)^4 + 4}.

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

Compute the sums for n=0,1,2n = 0, 1, 2 as fractions and look at the numerators and denominators.

Hint 2

The denominator x4+4x^4 + 4 factors as (x2+2x+2)(x2−2x+2)(x^2 + 2x + 2)(x^2 - 2x + 2).

Hint 3

Prove that the guessed value f(n)f(n) satisfies f(n)−f(n−1)=f(n) - f(n-1) = the nnth term, and use induction.

Solution

Show the solution

Let tk=(−1)k(2k+1)3(2k+1)4+4t_k = (-1)^k \dfrac{(2k+1)^3}{(2k+1)^4 + 4} and let Sn=t0+⋯+tnS_n = t_0 + \cdots + t_n.

Guess. S0=15S_0 = \frac15, S1=15−2785=−1085=−217S_1 = \frac15 - \frac{27}{85} = -\frac{10}{85} = -\frac{2}{17}, and S2=−217+125629=−74+125629=51629=337S_2 = -\frac2{17} + \frac{125}{629} = \frac{-74 + 125}{629} = \frac{51}{629} = \frac{3}{37}. The denominators 5,17,375, 17, 37 are 4(n+1)2+14(n+1)^2 + 1, and the numerators are 1,−2,31, -2, 3, which is (−1)n(n+1)(-1)^n (n+1). So the guess is Sn=(−1)n(n+1)4(n+1)2+1.S_n = \frac{(-1)^n (n+1)}{4(n+1)^2 + 1}.

Proof. The formula is true for n=0n = 0. Let f(n)f(n) be the right-hand side, with f(−1)=0f(-1) = 0. It is enough to show f(n)−f(n−1)=tnf(n) - f(n-1) = t_n for n≥0n \ge 0. Put x=2n+1x = 2n + 1. Then x2+2x+2=4n2+8n+5=4(n+1)2+1x^2 + 2x + 2 = 4n^2 + 8n + 5 = 4(n+1)^2 + 1 and x2−2x+2=4n2+1x^2 - 2x + 2 = 4n^2 + 1, so (2n+1)4+4=(4n2+1)(4(n+1)2+1).(2n+1)^4 + 4 = (4n^2 + 1)\bigl(4(n+1)^2 + 1\bigr). Now f(n)−f(n−1)=(−1)n[n+14(n+1)2+1+n4n2+1]=(−1)n(n+1)(4n2+1)+n(4n2+8n+5)(4n2+1)(4(n+1)2+1).f(n) - f(n-1) = (-1)^n \left[ \frac{n+1}{4(n+1)^2 + 1} + \frac{n}{4n^2 + 1} \right] = (-1)^n \frac{(n+1)(4n^2 + 1) + n(4n^2 + 8n + 5)}{(4n^2+1)(4(n+1)^2 + 1)}. The numerator is (4n3+4n2+n+1)+(4n3+8n2+5n)=8n3+12n2+6n+1=(2n+1)3(4n^3 + 4n^2 + n + 1) + (4n^3 + 8n^2 + 5n) = 8n^3 + 12n^2 + 6n + 1 = (2n+1)^3. So f(n)−f(n−1)=tnf(n) - f(n-1) = t_n. By induction on nn, Sn=f(n)S_n = f(n). □\square

Check

For n=3n = 3: the terms are 15,−2785,125629,−3432405\frac15, -\frac{27}{85}, \frac{125}{629}, -\frac{343}{2405}, and the sum is −465-\frac{4}{65}, while f(3)=−4/(4⋅16+1)=−4/65f(3) = -4/(4 \cdot 16 + 1) = -4/65. A python3 run with exact fractions agreed with the formula for n=0,…,11n = 0, \ldots, 11.

Remarks

The proof shows that the partial sums telescope, with f(n)−f(n−1)f(n) - f(n-1) as the nnth term. The factorization x4+4=(x2+2x+2)(x2−2x+2)x^4 + 4 = (x^2 + 2x + 2)(x^2 - 2x + 2) is known as the identity of Sophie Germain. The method of telescoping sums is in the C1 chapter of Section 1.2.3.

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.