Difference between revisions of "2006 Romanian NMO Problems/Grade 8/Problem 2"
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
==Problem== | ==Problem== | ||
Let <math>n</math> be a positive integer. Prove that there exists an integer <math>k</math>, <math>k\geq 2</math>, and numbers <math>a_i \in \{ -1, 1 \}</math>, such that <center><math>n = \sum_{1\leq i < j \leq k } a_ia_j</math>.</center> | Let <math>n</math> be a positive integer. Prove that there exists an integer <math>k</math>, <math>k\geq 2</math>, and numbers <math>a_i \in \{ -1, 1 \}</math>, such that <center><math>n = \sum_{1\leq i < j \leq k } a_ia_j</math>.</center> | ||
+ | |||
==Solution== | ==Solution== | ||
+ | Suppose that there exists such an integer <math>k</math> and numbers <math>a_i \in \{ -1, 1 \}</math>, <math>i\in \{1,\ldots,k\}</math> such that <math>n = \sum_{1\leq i < j \leq k } a_ia_j</math>. Let <cmath>\begin{align*}X &= \#\{i\in [k] \;:\; a_{i}=-1\} \\ Y &= \#\{i\in [k] \;:\; a_{i}=1\}\end{align*}</cmath> | ||
+ | then <cmath>n=\sum_{1\leq i < j \leq k } a_ia_j = \binom{X}{2}+\binom{Y}{2}-XY = \frac{(X-Y)^{2}-(X+Y)}{2}. </cmath> We see that if <math>X</math> and <math>Y</math> are increased by <math>1</math>, then <math>n</math> is decreased by <math>1</math>. This motivates the following construction: Let <math>m</math> be large enough such that <math>\binom{m}{2} > n</math>, let <math>Y = \binom{m}{2} - n</math> and <math>X = Y+m</math>, let <math>k = X+Y</math>, and let <math>a_{1},\ldots,a_{X} = -1</math> and <math>a_{X+1},\ldots,a_{X+Y} = 1</math>. Then <cmath>\begin{align*}\sum_{1\leq i < j \leq k } a_ia_j &= \binom{X}{2}+\binom{Y}{2}-XY\\ &= \frac{(X-Y)^{2}-(X+Y)}{2} \\ &= \frac{m^{2}-\left(m+\binom{m}{2} - n+\binom{m}{2} - n\right)}{2} \\ &= n.\end{align*}</cmath> | ||
+ | |||
==See also== | ==See also== | ||
*[[2006 Romanian NMO Problems]] | *[[2006 Romanian NMO Problems]] | ||
+ | [[Category:Olympiad Number Theory Problems]] |
Latest revision as of 23:08, 5 June 2011
Problem
Let be a positive integer. Prove that there exists an integer , , and numbers , such that
Solution
Suppose that there exists such an integer and numbers , such that . Let then We see that if and are increased by , then is decreased by . This motivates the following construction: Let be large enough such that , let and , let , and let and . Then