Maths Olympiad Prep

Library / HMMT /75 of 79

HMMT, 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∣<⋯<∣an−1∣<∣an∣0 = |a_{0}| < |a_{1}| < \cdots < |a_{n-1}| < |a_{n}|.

b. The sets {∣a1−a0∣,∣a2−a1∣,…,∣an−an−1∣}\{ |a_{1} - a_{0}|, |a_{2} - a_{1}|, \ldots, |a_{n} - a_{n-1}| \} and {1,3,9,…,3n−1}\{ 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∣<⋯<∣an−1∣<∣an∣0 = |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 3bi≤bi+13b_{i} \leq b_{i+1} for all ii. The sets {∣a1−a0∣,∣a2−a1∣,…,∣an−an−1∣}\{ |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 3bi≤bi+13b_{i} \leq b_{i+1} for all ii. Then bi>2∑k=1i−1bkb_{i} > 2 \sum_{k=1}^{i-1} b_{k}.

Proof: bi2=bi3+bi9+⋯≥∑k=1i−1bk\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=j−1n = 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 k−1k-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 {∣a1−a0∣,…,∣ak−1−ak−2∣}\{ |a_{1} - a_{0}|, \ldots, |a_{k-1} - a_{k-2}| \} is equal to {c1,c2,…,ck−1}\{ c_{1}, c_{2}, \ldots, c_{k-1} \} is k!k!.

Then, aka_{k} can be either ak−1+cka_{k-1} + c_{k} or ak−1−cka_{k-1} - c_{k}. This is because, by the lemma, ck>2∑m=1k−1cm=2∑m=1k−1∣am−am−1∣≥2∣ak−1−ak−2+ak−2−ak−3+⋯+a1−a0∣=2∣ak−1∣c_{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∣>∣ak−1∣|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∣>∣ai−1∣|a_{i}| > |a_{i-1}|.

There are (j−1k−1)\binom{j-1}{k-1} possible ways to choose c1,c2,…,ck−1c_{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,…,ak−1)(a_{0}, a_{1}, \ldots, a_{k-1}). Then, there are 2 possible values for aka_{k}. After that, there are (j−k)!(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(j−1k−1)k!2(j−k)!=∑k=1j2(j−1)!(k)=2(j−1)!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,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.