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.5-7

Exercise 1.2.5-7

proved in Lean solution written

RatingM10
MarkersM (mathematical)
KindK1, prove: show that a stated fact is true from the written solution
SectionSection 1.2.5 of Volume 1. Companion chapter: Permutations and factorials

The task

Show that x?=x+(x−1)?x? = x + (x-1)? for every real xx, where x?=x(x+1)/2x? = x(x+1)/2.

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

Use eq. (10) for x?x?, and the same formula at the point x−1x-1.

Hint 2

Add the two terms on the right over a common denominator.

Solution

Show the solution

By eq. (10), (x−1)?=12(x−1)((x−1)+1)=12(x−1)x(x-1)? = \frac{1}{2}(x-1)\big((x-1)+1\big) = \frac{1}{2}(x-1)x. Then

x+(x−1)?=x+x(x−1)2=2x+x2−x2=x(x+1)2=x?.x + (x-1)? = x + \frac{x(x-1)}{2} = \frac{2x + x^2 - x}{2} = \frac{x(x+1)}{2} = x?.

All steps are algebra on real numbers, so the identity holds for every real xx with no exception.

Check

For x=4x = 4: 4?=104? = 10 and 4+3?=4+6=104 + 3? = 4 + 6 = 10. For x=1/2x = 1/2: (1/2)?=3/8(1/2)? = 3/8 and 1/2+(−1/2)?=1/2+12(−12)(12)=1/2−1/8=3/81/2 + (-1/2)? = 1/2 + \frac{1}{2}(-\frac12)(\frac12) = 1/2 - 1/8 = 3/8. For x=0x = 0: 0=0+(−1)?=0+00 = 0 + (-1)? = 0 + 0.

Remarks

The recursion has no exceptions, unlike the rule Γ(x+1)=xΓ(x)\Gamma(x+1) = x\Gamma(x) of exercise 1.2.5-10, which fails at x=0x = 0 and at negative integers. The termial is a polynomial, and the gamma function has poles.

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.