Difference between revisions of "2008 IMO Problems/Problem 5"
(New page: === Problem 5 === Let <math>n</math> and <math>k</math> be positive integers with <math>k \geq n</math> and <math>k - n</math> an even number. Let <math>2n</math> lamps labelled <math>1</m...) |
|||
(7 intermediate revisions by one other user not shown) | |||
Line 9: | Line 9: | ||
== Solution == | == Solution == | ||
− | + | For convenience, let <math>A</math> denote the set <math>(1,2,\ldots n)</math> and <math>B</math> the set <math>(n+1,n+2,\ldots,2n)</math>. | |
− | <math> | ||
− | Let <math>\cal{N}</math> consist of those sequences that contain each of the numbers <math> | + | We can describe each sequences of switching the lamps as a <math>k</math>-dimensional vector |
+ | <math>(a_1, a_2, \ldots, a_k)</math>, where <math>a_i \in A \cup B</math> signifies which lamp was switched on the <math>i</math>-th move for <math>i=1,2,\ldots k</math>. | ||
+ | |||
+ | Let <math>\cal{N}</math> consist of those sequences that contain each of the numbers in <math>A</math> an ''odd'' number of times and each of the numbers in <math>B</math> an ''even'' number of times. Similarly, let <math>\cal{M}</math> denote the set of those sequences that contain no numbers from <math>B</math> and each of the numbers in <math>A</math> an odd number of times. By definition, <math>M=|\cal{M}|</math> and <math>N=|\cal{N}|</math>. | ||
+ | |||
+ | Define the mapping <math>f:\cal{N} \rightarrow \cal{M}</math> as | ||
<cmath>f(a_1, a_2, \ldots, a_k) = (b_1,b_2,\ldots b_k) : | <cmath>f(a_1, a_2, \ldots, a_k) = (b_1,b_2,\ldots b_k) : | ||
− | b_i = | + | b_i = |
− | a_i, & a_i \in | + | \begin{cases} |
− | a_i-n, & a_i \in | + | a_i, & \mbox{ if } a_i \in A \\ |
− | \ | + | a_i-n, & \mbox{ if } a_i \in B |
+ | \end{cases}</cmath> | ||
+ | |||
+ | What we want to show now is that each element of <math>\cal{M}</math> is an image of exactly <math>2^{k-n}</math> elements from <math>\cal{N}</math>, which would imply <math>N = 2^{k-n}M</math> and solve the problem. | ||
+ | |||
+ | Consider an arbitrary element <math>y</math> of <math>\cal{M}</math> and let <math>l_i</math> be the number of appearances of the number <math>i</math> in <math>y</math> for <math>i=1,2,\ldots n</math>. Now consider the set of pre-images of <math>y</math>, that is <math>X_y = \{ x | f(x) = y \}</math>. | ||
+ | |||
+ | It is easy to see that each element <math>x\in X_y</math> is derived from <math>y</math> by ''flipping'' an ''even'' number of its <math>1</math>-s, <math>2</math>-s, and so on, where flipping means changing the number <math>j\in A</math> to <math>j+n\in B</math>. Since each such set of flippings results in a unique <math>x</math>, all we want to count is the number of flippings. We can flip exactly <math>0, 2, 4,\ldots </math> of the <math>1</math>-s, so that results in | ||
+ | <cmath>\binom{l_1}{0} + \binom{l_1}{2}+\binom{l_1}{4}+\cdots = 2^{l_1-1}</cmath> | ||
+ | flippings. Combine each of them with the <math>2^{l_2-1}</math>, <math>2^{l_3-1}</math>, etc. ways of flipping the <math>2</math>-s, <math>3</math>-s etc. respectively to get the total number of flippings: | ||
+ | <cmath>2^{l_1-1}2^{l_2-1}\cdots2^{l_n-1} = 2^{l_1+l_2+\cdots+l_n-n} = 2^{k-n}.</cmath> | ||
+ | This shows that <math>|X_y| = 2^{k-n}</math> and the proof is complete. | ||
+ | --[[User:Vbarzov|Vbarzov]] 03:04, 5 September 2008 (UTC) | ||
+ | |||
+ | ==See Also== | ||
+ | |||
+ | {{IMO box|year=2008|num-b=4|num-a=6}} |
Latest revision as of 00:10, 19 November 2023
Problem 5
Let and be positive integers with and an even number. Let lamps labelled , , ..., be given, each of which can be either on or off. Initially all the lamps are off. We consider sequences of steps: at each step one of the lamps is switched (from on to off or from off to on).
Let be the number of such sequences consisting of steps and resulting in the state where lamps through are all on, and lamps through are all off.
Let be number of such sequences consisting of steps, resulting in the state where lamps through are all on, and lamps through are all off, but where none of the lamps through is ever switched on.
Determine .
Solution
For convenience, let denote the set and the set .
We can describe each sequences of switching the lamps as a -dimensional vector , where signifies which lamp was switched on the -th move for .
Let consist of those sequences that contain each of the numbers in an odd number of times and each of the numbers in an even number of times. Similarly, let denote the set of those sequences that contain no numbers from and each of the numbers in an odd number of times. By definition, and .
Define the mapping as
What we want to show now is that each element of is an image of exactly elements from , which would imply and solve the problem.
Consider an arbitrary element of and let be the number of appearances of the number in for . Now consider the set of pre-images of , that is .
It is easy to see that each element is derived from by flipping an even number of its -s, -s, and so on, where flipping means changing the number to . Since each such set of flippings results in a unique , all we want to count is the number of flippings. We can flip exactly of the -s, so that results in flippings. Combine each of them with the , , etc. ways of flipping the -s, -s etc. respectively to get the total number of flippings: This shows that and the proof is complete. --Vbarzov 03:04, 5 September 2008 (UTC)
See Also
2008 IMO (Problems) • Resources | ||
Preceded by Problem 4 |
1 • 2 • 3 • 4 • 5 • 6 | Followed by Problem 6 |
All IMO Problems and Solutions |