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.6-37

Exercise 1.2.6-37

proved in Lean solution written

RatingM10
MarkersM (mathematical)
KindK3, find a value: compute a number, a set or a closed form from the written solution
SectionSection 1.2.6 of Volume 1. Companion chapter: Binomial coefficients

The task

Find (n0)+(n2)+(n4)+⋯\binom{n}{0} + \binom{n}{2} + \binom{n}{4} + \cdots.

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

Let EE be the sum over even kk and OO the sum over odd kk. What do the two results of Exercise 1.2.6-36 say about E+OE + O and E−OE - O?

Solution

Show the solution

Let E=∑k even(nk)E = \sum_{k\text{ even}}\binom{n}{k} and O=∑k odd(nk)O = \sum_{k\text{ odd}}\binom{n}{k}. By Exercise 1.2.6-36, E+O=2nE + O = 2^n and E−O=0nE - O = 0^n. Add: 2E=2n+0n2E = 2^n + 0^n. So E=(2n+0n)/2E = (2^n + 0^n)/2. For n≥1n \ge 1 this is 2n−12^{n-1}. For n=0n = 0 it is (1+1)/2=1(1+1)/2 = 1.

Check

For n=4n = 4 the even entries are 1,6,11, 6, 1, and the sum is 8=238 = 2^3. For n=5n = 5 they are 1,10,51, 10, 5, and the sum is 16=2416 = 2^4.

Remarks

The odd entries have the same sum 2n−12^{n-1} for n≥1n \ge 1. Exercise 1.2.6-38 is the same idea for residues modulo mm.

This solution is drafted, 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.