Maths Olympiad Prep

Library / United States — Team Selection Test /20 of 40

United States — Team Selection Test

Combinatorics Difficulty 8.4 Shortlist Prove it United States

Let cnc_n be a sequence which is defined recursively as follows: c0=1c_0 = 1, c2n+1=cnc_{2n+1} = c_n for n≥0n \ge 0, and c2n=cn+cn−2ec_{2n} = c_n + c_{n-2^e} for n>0n > 0 where ee is the maximal nonnegative integer such that 2e2^e divides nn. Prove that
∑i=02n−1ci=1n+2(2n+2n+1). \sum_{i=0}^{2^n-1} c_i = \frac{1}{n+2} \binom{2n+2}{n+1}.

Solution

Solution (By Josh Nichols-Barrer). Observe that the right-hand side of the given expression is the (n+1)th(n+1)^{\text{th}} Catalan number, which we recall is the number of well-formed strings of (n+1)(n+1) pairs of parentheses. Given such a string, let its signature kk be the integer represented in binary by the nn-term string whose rthr^{\text{th}} digit from the left is 0 or 1 according to whether the (2r+1)th(2r+1)^{\text{th}} parenthesis from the left is closed or open, respectively.
Let dkd_k be the number of well-formed strings of (n+1)(n+1) pairs of parentheses with signature kk. Notice that the value of dkd_k does not depend on nn, as adding leading 0's to the binary representation of kk inserts strings of the form ( )(\,) after the leading open parenthesis. It suffices to show that ckc_k and dkd_k coincide.
Note that d0=c0=1d_0 = c_0 = 1 for any nn, as a string of parentheses with signature 0 must take the form
((()⋯())). ((() \cdots ())).
It remains only to show that dkd_k and ckc_k satisfy the same recursion. First, if a string has signature 2k+12k+1, its signature has a trailing 1, which forces the parenthesis string to end with ( )(\,). Thus, the number of strings of (n+1)(n+1) pairs of parentheses with signature 2k+12k+1 simply equals the number of strings of nn pairs of parentheses with signature kk, which shows that d2k+1=dkd_{2k+1} = d_k (since dkd_k was independent of nn).
Now consider a string of n+1n+1 pairs of parentheses with signature 2k2k, where 2e2^e is the largest power of 2 dividing kk. In this case, kk has exactly ee trailing 0's. Consider the open parenthesis at position 2n−2e−12n-2e-1. If the parenthesis to its immediate right is a closed parenthesis, then these two may be removed as a pair, leaving a string with signature k−2ek-2^e. If the parenthesis at position 2n−2e2n-2e is open, then it may be removed with the parenthesis to its right (a closed parenthesis because 2k2k had e+1e+1 trailing 0's), leaving a string with signature kk. Both operations are reversible, showing that d2k=dk+dk−2ed_{2k} = d_k + d_{k-2^e}.
Therefore, dkd_k and ckc_k have the same initial value and are uniquely determined by the same recursion, so dk=ckd_k = c_k for all k≥0k \ge 0, as needed.

Want a route through all this instead of an archive? The track puts 2,604 problems in a working order, from Junior Challenge level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty) added by this project.