Maths Olympiad Prep

Library / /80 of 84

, 2014

Combinatorics Difficulty 5.9 AIME, harder Prove it United States

Problem:

Let nn be a positive integer. A sequence (a0,,an)(a_{0}, \ldots, a_{n}) of integers is acceptable if it satisfies the following conditions:

a. 0=a0<a1<<an1<an0 = |a_{0}| < |a_{1}| < \cdots < |a_{n-1}| < |a_{n}|.

b. The sets {a1a0,a2a1,,anan1}\{ |a_{1} - a_{0}|, |a_{2} - a_{1}|, \ldots, |a_{n} - a_{n-1}| \} and {1,3,9,,3n1}\{ 1, 3, 9, \ldots, 3^{n-1} \} are equal.

Prove that the number of acceptable sequences of integers is (n+1)!(n+1)!.

Solution

Solution:

We actually prove a more general result via strong induction on nn.

First, we state the more general result we wish to prove.

For n>0n > 0, define a great sequence to be a sequence of integers (a0,,an)(a_{0}, \ldots, a_{n}) such that

1. 0=a0<a1<<an1<an0 = |a_{0}| < |a_{1}| < \cdots < |a_{n-1}| < |a_{n}|

2. Let (b1,b2,,bn)(b_{1}, b_{2}, \ldots, b_{n}) be a set of positive integers such that 3bibi+13b_{i} \leq b_{i+1} for all ii. The sets {a1a0,a2a1,,anan1}\{ |a_{1} - a_{0}|, |a_{2} - a_{1}|, \ldots, |a_{n} - a_{n-1}| \} and {b1,b2,,bn}\{ b_{1}, b_{2}, \ldots, b_{n} \} are equal.

Then, the number of great sequences is (n+1)!(n+1)!.

If we prove this statement, then we can just consider the specific case of b1=1b_{1} = 1, 3bi=bi+13b_{i} = b_{i+1} to solve our problem.

Before we proceed, we will prove a lemma.

Lemma: Let (b1,b2,,bn)(b_{1}, b_{2}, \ldots, b_{n}) be a set of positive integers such that 3bibi+13b_{i} \leq b_{i+1} for all ii. Then bi>2k=1i1bkb_{i} > 2 \sum_{k=1}^{i-1} b_{k}.

Proof: bi2=bi3+bi9+k=1i1bk\frac{b_{i}}{2} = \frac{b_{i}}{3} + \frac{b_{i}}{9} + \cdots \geq \sum_{k=1}^{i-1} b_{k}. Equality only occurs when the sequence bib_{i} is infinite, which is not the case, so the inequality holds.

We can now proceed with the induction. The base case is obvious. Assume it is true up to n=j1n = j-1. Next, consider some permutation of the set B={b1,b2,b3,,bj}B = \{ b_{1}, b_{2}, b_{3}, \cdots, b_{j} \}. Denote it as C={c1,c2,,cj}C = \{ c_{1}, c_{2}, \ldots, c_{j} \}. Find the element ck=bjc_{k} = b_{j}. For the first k1k-1 elements of CC, we can put them in order and apply the inductive hypothesis. The number of great sequences such that the set of differences {a1a0,,ak1ak2}\{ |a_{1} - a_{0}|, \ldots, |a_{k-1} - a_{k-2}| \} is equal to {c1,c2,,ck1}\{ c_{1}, c_{2}, \ldots, c_{k-1} \} is k!k!.

Then, aka_{k} can be either ak1+cka_{k-1} + c_{k} or ak1cka_{k-1} - c_{k}. This is because, by the lemma, ck>2m=1k1cm=2m=1k1amam12ak1ak2+ak2ak3++a1a0=2ak1c_{k} > 2 \sum_{m=1}^{k-1} c_{m} = 2 \sum_{m=1}^{k-1} |a_{m} - a_{m-1}| \geq 2|a_{k-1} - a_{k-2} + a_{k-2} - a_{k-3} + \cdots + a_{1} - a_{0}| = 2|a_{k-1}|. It is easy to check that for either possible value of aka_{k}, ak>ak1|a_{k}| > |a_{k-1}|. After that, there is only one possible value for ak+1,,aja_{k+1}, \ldots, a_{j} because only one of ai±ci+1a_{i} \pm c_{i+1} will satisfy ai>ai1|a_{i}| > |a_{i-1}|.

There are (j1k1)\binom{j-1}{k-1} possible ways to choose c1,c2,,ck1c_{1}, c_{2}, \ldots, c_{k-1} from BB. Given those elements of CC, there are k!k! ways to make a great sequence (a0,a1,,ak1)(a_{0}, a_{1}, \ldots, a_{k-1}). Then, there are 2 possible values for aka_{k}. After that, there are (jk)!(j-k)! ways to order the remaining elements of CC, and for each such ordering, there is exactly 1 possible great sequence (a0,a1,,aj)(a_{0}, a_{1}, \ldots, a_{j}).

Now, counting up all the possible ways to do this over all values of kk, we get that the number of great sequences is equal to
k=1j(j1k1)k!2(jk)!=k=1j2(j1)!(k)=2(j1)!j(j+1)2=(j+1)!. \sum_{k=1}^{j} \binom{j-1}{k-1} k! 2 (j-k)! = \sum_{k=1}^{j} 2 (j-1)! (k) = 2 (j-1)! \frac{j(j+1)}{2} = (j+1)!.
The induction is complete, and this finishes the proof.

Alternate solution:

Another method of performing the induction is noting that any acceptable sequence (a0,,an)(a_{0}, \ldots, a_{n}) can be matched with n+2n+2 acceptable sequences of length n+2n+2 because we can take (3a0,,3an)(3a_{0}, \ldots, 3a_{n}) and add an element with a difference of 1 in any of n+2n+2 positions.

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

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