Difference between revisions of "2006 USAMO Problems/Problem 2"

Line 1: Line 1:
 
== Problem ==
 
== Problem ==
  
For a given positive integer <math> \displaystyle k </math> find, in terms of <math> \displaystyle k </math>, the minimum value of <math> \displaystyle N </math> for which there is a set of <math> \displaystyle 2k+1 </math> distinct positive integers that has sum greater than <math> \displaystyle N </math> but every subset of size <math> \displaystyle k </math> has sum at most <math>\displaystyle N/2 </math>.
+
For a given positive integer <math>k </math> find, in terms of <math>k </math>, the minimum value of <math>N </math> for which there is a set of <math>2k+1 </math> distinct positive integers that has sum greater than <math>N </math> but every subset of size <math>k </math> has sum at most <math>N/2 </math>.
  
 
== Solution ==
 
== Solution ==
  
{{solution}}
+
Let one optimal set of integers be <math>\{a_1,\dots,a_{2k+1}\}</math> with <math>a_1 > a_2 > \cdots > a_{2k+1} > 0</math>.
 +
 
 +
The two conditions can now be rewritten as <math>a_1+\cdots + a_k \leq N/2</math> and <math>a_1+\cdots +a_{2k+1} > N</math>.
 +
Subtracting, we get that <math>a_{k+1}+\cdots + a_{2k+1} > N/2</math>, and hence <math>a_{k+1}+\cdots + a_{2k+1} > a_1+\cdots + a_k</math>.
 +
In words, the sum of the <math>k+1</math> smallest numbers must exceed the sum of the <math>k</math> largest ones.
 +
 
 +
Let <math>a_{k+1}=C</math>. As all the numbers are distinct integers, we must have <math>\forall i \in\{1,\dots,k\}:~ a_{k+1-i} \geq C+i</math>, and also <math>\forall i \in\{1,\dots,k\}:~ a_{k+1+i} \leq C-i</math>.
 +
 
 +
Thus we get that <math>a_1+\cdots + a_k \geq kC + \dfrac{k(k+1)}2</math>, and <math>a_{k+1}+\cdots + a_{2k+1} \leq (k+1)C - \dfrac{k(k+1)}2</math>.
 +
 
 +
As we want the second sum to be larger, clearly we must have <math>(k+1)C - \dfrac{k(k+1)}2 > kC + \dfrac{k(k+1)}2</math>.
 +
This simplifies to <math>C > k(k+1)</math>.
 +
 
 +
Hence we get that:
 +
 
 +
<cmath>
 +
\begin{align*}
 +
N & \geq 2(a_1+\cdots + a_k) \\
 +
  & \geq 2\left( kC + \dfrac{k(k+1)}2 \right) \\
 +
  & = 2kC + k(k+1) \\
 +
  & \geq 2k(k^2+k+1) + k(k+1) \\
 +
  & = 2k^3 + 3k^2 + 3k
 +
\end{align*}
 +
</cmath>
 +
 
 +
On the other hand, for the set <math>\{ k^2+k+1+i ~|~ i\in\{-k,\dots,k\} \, \}</math> the sum of the largest <math>k</math> elements is exactly <math>k^3 + k^2 + k + \dfrac{k(k+1)}2</math>, and the sum of the entire set is <math>(k^2+k+1)(2k+1) = 2k^3 + 3k^2 + 3k + 1</math>, which is more than twice the sum of the largest set.
 +
 
 +
Hence the smallest possible <math>N</math> is <math>\boxed{ N = 2k^3 + 3k^2 + 3k }</math>.
  
 
== See Also ==
 
== See Also ==

Revision as of 16:05, 2 February 2009

Problem

For a given positive integer $k$ find, in terms of $k$, the minimum value of $N$ for which there is a set of $2k+1$ distinct positive integers that has sum greater than $N$ but every subset of size $k$ has sum at most $N/2$.

Solution

Let one optimal set of integers be $\{a_1,\dots,a_{2k+1}\}$ with $a_1 > a_2 > \cdots > a_{2k+1} > 0$.

The two conditions can now be rewritten as $a_1+\cdots + a_k \leq N/2$ and $a_1+\cdots +a_{2k+1} > N$. Subtracting, we get that $a_{k+1}+\cdots + a_{2k+1} > N/2$, and hence $a_{k+1}+\cdots + a_{2k+1} > a_1+\cdots + a_k$. In words, the sum of the $k+1$ smallest numbers must exceed the sum of the $k$ largest ones.

Let $a_{k+1}=C$. As all the numbers are distinct integers, we must have $\forall i \in\{1,\dots,k\}:~ a_{k+1-i} \geq C+i$, and also $\forall i \in\{1,\dots,k\}:~ a_{k+1+i} \leq C-i$.

Thus we get that $a_1+\cdots + a_k \geq kC + \dfrac{k(k+1)}2$, and $a_{k+1}+\cdots + a_{2k+1} \leq (k+1)C - \dfrac{k(k+1)}2$.

As we want the second sum to be larger, clearly we must have $(k+1)C - \dfrac{k(k+1)}2 > kC + \dfrac{k(k+1)}2$. This simplifies to $C > k(k+1)$.

Hence we get that:

\begin{align*} N & \geq 2(a_1+\cdots + a_k) \\   & \geq 2\left( kC + \dfrac{k(k+1)}2 \right) \\   & = 2kC + k(k+1) \\   & \geq 2k(k^2+k+1) + k(k+1) \\   & = 2k^3 + 3k^2 + 3k \end{align*}

On the other hand, for the set $\{ k^2+k+1+i ~|~ i\in\{-k,\dots,k\} \, \}$ the sum of the largest $k$ elements is exactly $k^3 + k^2 + k + \dfrac{k(k+1)}2$, and the sum of the entire set is $(k^2+k+1)(2k+1) = 2k^3 + 3k^2 + 3k + 1$, which is more than twice the sum of the largest set.

Hence the smallest possible $N$ is $\boxed{ N = 2k^3 + 3k^2 + 3k }$.

See Also