Maths Olympiad Prep

Library / /1366 of 1394

, 2016

Combinatorics Difficulty 6.3 National Olympiad Prove it United States

Problem:

Kristoff is planning to transport a number of indivisible ice blocks with positive integer weights from the north mountain to Arendelle. He knows that when he reaches Arendelle, Princess Anna and Queen Elsa will name an ordered pair (p,q)(p, q) of nonnegative integers satisfying p+q2016p+q \leq 2016. Kristoff must then give Princess Anna exactly pp kilograms of ice. Afterward, he must give Queen Elsa exactly qq kilograms of ice.
What is the minimum number of blocks of ice Kristoff must carry to guarantee that he can always meet Anna and Elsa's demands, regardless of which pp and qq are chosen?
Proposed by: Pakawut Jiradilok

Solution

Solution:

The answer is 18.
First, we will show that Kristoff must carry at least 18 ice blocks. Let
0<x1x2xn 0 < x_{1} \leq x_{2} \leq \cdots \leq x_{n}
be the weights of ice blocks he carries which satisfy the condition that for any p,qZ0p, q \in \mathbb{Z}_{\geq 0} such that p+q2016p+q \leq 2016, there are disjoint subsets I,JI, J of {1,,n}\{1, \ldots, n\} such that αIxα=p\sum_{\alpha \in I} x_{\alpha} = p and αJxα=q\sum_{\alpha \in J} x_{\alpha} = q.

Claim: For any ii, if x1++xi2014x_{1} + \cdots + x_{i} \leq 2014, then
xi+1x1++xi2+1 x_{i+1} \leq \left\lfloor \frac{x_{1} + \cdots + x_{i}}{2} \right\rfloor + 1
Proof. Suppose to the contrary that xi+1x1++xi2+2x_{i+1} \geq \left\lfloor \frac{x_{1} + \cdots + x_{i}}{2} \right\rfloor + 2. Consider when Anna and Elsa both demand x1++xi2+1\left\lfloor \frac{x_{1} + \cdots + x_{i}}{2} \right\rfloor + 1 kilograms of ice (which is possible as 2×(x1++xi2+1)x1++xi+220162 \times \left( \left\lfloor \frac{x_{1} + \cdots + x_{i}}{2} \right\rfloor + 1 \right) \leq x_{1} + \cdots + x_{i} + 2 \leq 2016). Kristoff cannot give any ice xjx_{j} with ji+1j \geq i+1 (which is too heavy), so he has to use from x1,,xix_{1}, \ldots, x_{i}. Since he is always able to satisfy Anna's and Elsa's demands, x1++xi2×(x1++xi2+1)x1++xi+1x_{1} + \cdots + x_{i} \geq 2 \times \left( \left\lfloor \frac{x_{1} + \cdots + x_{i}}{2} \right\rfloor + 1 \right) \geq x_{1} + \cdots + x_{i} + 1. A contradiction.

It is easy to see x1=1x_{1} = 1, so by hand we compute obtain the inequalities x21x_{2} \leq 1, x32x_{3} \leq 2, x43x_{4} \leq 3, x54x_{5} \leq 4, x66x_{6} \leq 6, x79x_{7} \leq 9, x814x_{8} \leq 14, x921x_{9} \leq 21, x1031x_{10} \leq 31, x1147x_{11} \leq 47, x1270x_{12} \leq 70, x13105x_{13} \leq 105, x14158x_{14} \leq 158, x15237x_{15} \leq 237, x16355x_{16} \leq 355, x17533x_{17} \leq 533, x18799x_{18} \leq 799. And we know n18n \geq 18; otherwise the sum x1++xnx_{1} + \cdots + x_{n} would not reach 2016.

Now we will prove that n=18n = 18 works. Consider the 18 numbers named above, say a1=1a_{1} = 1, a2=1a_{2} = 1, a3=2a_{3} = 2, a4=3a_{4} = 3, \ldots, a18=799a_{18} = 799. We claim that with a1,,aka_{1}, \ldots, a_{k}, for any p,qZ0p, q \in \mathbb{Z}_{\geq 0} such that p+qa1++akp+q \leq a_{1} + \cdots + a_{k}, there are two disjoint subsets I,JI, J of {1,,k}\{1, \ldots, k\} such that αIxα=p\sum_{\alpha \in I} x_{\alpha} = p and αJxα=q\sum_{\alpha \in J} x_{\alpha} = q. We prove this by induction on kk. It is clear for small k=1,2,3k = 1, 2, 3. Now suppose this is true for a certain kk, and we add in ak+1a_{k+1}.

When Kristoff meets Anna first and she demands pp kilograms of ice, there are two cases.

Case I: if pak+1p \geq a_{k+1}, then Kristoff gives the ak+1a_{k+1} block to Anna first, then he considers p=pak+1p' = p - a_{k+1} and the same unknown qq. Now p+qa1++akp' + q \leq a_{1} + \cdots + a_{k} and he has a1,,aka_{1}, \ldots, a_{k}, so by induction he can successfully complete his task.

Case II: if p<ak+1p < a_{k+1}, regardless of the value of qq, he uses the same strategy as if p+qa1++akp + q \leq a_{1} + \cdots + a_{k} and he uses ice from a1,,aka_{1}, \ldots, a_{k} without touching ak+1a_{k+1}. Then, when he meets Elsa, if qa1++akpq \leq a_{1} + \cdots + a_{k} - p, he is safe. If qa1++akp+1q \geq a_{1} + \cdots + a_{k} - p + 1, we know qak+1a1++akp+1(a1++ak2+1)0q - a_{k+1} \geq a_{1} + \cdots + a_{k} - p + 1 - \left( \left\lfloor \frac{a_{1} + \cdots + a_{k}}{2} \right\rfloor + 1 \right) \geq 0. So he can give the ak+1a_{k+1} to Elsa first then do as if q=qak+1q' = q - a_{k+1} is the new demand by Elsa. He can now supply the ice to Elsa because p+qa1++akp + q' \leq a_{1} + \cdots + a_{k}. Thus, we finish our induction.

Therefore, Kristoff can carry those 18 blocks of ice and be certain that for any p+qa1++a18=2396p + q \leq a_{1} + \cdots + a_{18} = 2396, there are two disjoint subsets I,J{1,,18}I, J \subseteq \{1, \ldots, 18\} such that αIaα=p\sum_{\alpha \in I} a_{\alpha} = p and αJaα=q\sum_{\alpha \in J} a_{\alpha} = q. In other words, he can deliver the amount of ice both Anna and Elsa demand.

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.