Difference between revisions of "2018 USAMO Problems/Problem 6"

(Created page with "==Problem 6== Let <math>a_n</math> be the number of permutations <math>(x_1, x_2, \dots, x_n)</math> of the numbers <math>(1,2,\dots, n)</math> such that the <math>n</math> ra...")
 
(Added in a solution. Sorry if the solution is hard to follow and for the frequent change in variables.)
Line 4: Line 4:
  
 
==Solution==
 
==Solution==
 +
Write out the mapping of each <math>k</math> to <math>x_k</math> as follows:
 +
<cmath>1\ \ 2\ \ 3\ \ \dots \ \ n</cmath>
 +
<cmath>x_1\ x_2\ x_3\ \dots \ x_n</cmath>
 +
 +
Now, consider what happens when the two rows are swapped (and the top-bottom pairs are reordered so that the top reads (1,2,3,...,n)).  This will result in a new permutation if and only if <math>x_k = j</math> does not imply <math>x_j = k</math> for all <math>k,j</math> in <math>(1,2,3,\dots,n)</math>.  I will denote this new permutation as <math>(y_1,y_2,y_3,\dots,y_n)</math>.  Notice that <math>(y_1,y_2,y_3,\dots,y_n)</math> is a valid permutation if and only if <math>(x_1,x_2,x_3,\dots,x_n)</math> is valid, because each fraction <math>\frac{y_k}{k}</math> is the reciprocal of <math>\frac{x_k}{k}</math>.  This means that we need only consider the parity of number of cases in which <math>(y_1,y_2,y_3,\dots, y_n) = (x_1,x_2,x_3,\dots, x_n)</math>, as there will be an even number of cases where <math>(y_1,y_2,y_3,\dots, y_n) \ne (x_1,x_2,x_3,\dots, x_n)</math>.  Let the number of valid permutations where <math>(y_1,y_2,y_3,\dots, y_n) = (x_1,x_2,x_3,\dots, x_n)</math> be <math>b_n</math>.
 +
 +
Notice that the only permutations that have the property <math>x_{x_k}=k</math> (which is an equivalent statement to the one given above) are those that are formed by taking pairs of elements and swapping their positions having the maximum number of pairs possible and having no two pairs both contain the same element.  Some more necessary conditions will be outlined below after we split <math>n</math> into two cases.
 +
 +
 +
Case 1:  <math>n</math> is odd.  If <math>n</math> is odd then there must be exactly one <math>k</math> such that <math>x_k = k</math>.  This yields <math>b_n=n\cdot b_{n-1}</math>* which has the same parity as <math>b_{n-1}</math>, so we need only consider the parity of <math>b_n</math> for odd <math>n</math>.  (*This is because we must select one <math>k</math> so that <math>x_k=k</math> and the other <math>n-1</math> numbers can be determined in <math>b_{n-1}</math> ways, because there can be no <math>k</math> such that <math>x_k=k</math> if <math>k</math> is even.)
 +
 +
Case 2:  <math>n</math> is even.  If <math>n</math> is even then can be no <math>k</math> so that <math>x_k=k</math>, or else there must be at least two distinct numbers <math>k</math> and <math>j</math> so that <math>x_k=k</math> and <math>x_j=j</math> which violates the given conditions.  Denote a pair of numbers that are swapped to arrive at the final permutation as the pair <math>(a,b)</math>.  Then if a permutation yields an invalid arrangement there must be two pairs <math>(a,b)</math> and <math>(c,d)</math> such that <math>\frac{a^2}{b^2} = \frac{c^2}{d^2}</math>.  But notice that the two pairs <math>(a,c)</math> and <math>(b,d)</math> will also result in an invalid arrangement.  So, there must be an even number of invalid arrangements, meaning the parity we desire is just the number of ways to separate <math>n</math> objects into <math>\frac n2</math> pairs!  However, this is quite simply just <math>(n-1)(n-3)(n-5)\cdots(3)(1)</math>, which is clearly the product of odd numbers.  So we conclude that there are an odd number of valid permutations <math>(x_1,x_2,x_3,\dots,x_n)</math>.  <math>\blacksquare</math>

Revision as of 21:35, 6 November 2018

Problem 6

Let $a_n$ be the number of permutations $(x_1, x_2, \dots, x_n)$ of the numbers $(1,2,\dots, n)$ such that the $n$ ratios $\frac{x_k}{k}$ for $1\le k\le n$ are all distinct. Prove that $a_n$ is odd for all $n\ge 1.$


Solution

Write out the mapping of each $k$ to $x_k$ as follows: \[1\ \ 2\ \ 3\ \ \dots \ \ n\] \[x_1\ x_2\ x_3\ \dots \ x_n\]

Now, consider what happens when the two rows are swapped (and the top-bottom pairs are reordered so that the top reads (1,2,3,...,n)). This will result in a new permutation if and only if $x_k = j$ does not imply $x_j = k$ for all $k,j$ in $(1,2,3,\dots,n)$. I will denote this new permutation as $(y_1,y_2,y_3,\dots,y_n)$. Notice that $(y_1,y_2,y_3,\dots,y_n)$ is a valid permutation if and only if $(x_1,x_2,x_3,\dots,x_n)$ is valid, because each fraction $\frac{y_k}{k}$ is the reciprocal of $\frac{x_k}{k}$. This means that we need only consider the parity of number of cases in which $(y_1,y_2,y_3,\dots, y_n) = (x_1,x_2,x_3,\dots, x_n)$, as there will be an even number of cases where $(y_1,y_2,y_3,\dots, y_n) \ne (x_1,x_2,x_3,\dots, x_n)$. Let the number of valid permutations where $(y_1,y_2,y_3,\dots, y_n) = (x_1,x_2,x_3,\dots, x_n)$ be $b_n$.

Notice that the only permutations that have the property $x_{x_k}=k$ (which is an equivalent statement to the one given above) are those that are formed by taking pairs of elements and swapping their positions having the maximum number of pairs possible and having no two pairs both contain the same element. Some more necessary conditions will be outlined below after we split $n$ into two cases.


Case 1: $n$ is odd. If $n$ is odd then there must be exactly one $k$ such that $x_k = k$. This yields $b_n=n\cdot b_{n-1}$* which has the same parity as $b_{n-1}$, so we need only consider the parity of $b_n$ for odd $n$. (*This is because we must select one $k$ so that $x_k=k$ and the other $n-1$ numbers can be determined in $b_{n-1}$ ways, because there can be no $k$ such that $x_k=k$ if $k$ is even.)

Case 2: $n$ is even. If $n$ is even then can be no $k$ so that $x_k=k$, or else there must be at least two distinct numbers $k$ and $j$ so that $x_k=k$ and $x_j=j$ which violates the given conditions. Denote a pair of numbers that are swapped to arrive at the final permutation as the pair $(a,b)$. Then if a permutation yields an invalid arrangement there must be two pairs $(a,b)$ and $(c,d)$ such that $\frac{a^2}{b^2} = \frac{c^2}{d^2}$. But notice that the two pairs $(a,c)$ and $(b,d)$ will also result in an invalid arrangement. So, there must be an even number of invalid arrangements, meaning the parity we desire is just the number of ways to separate $n$ objects into $\frac n2$ pairs! However, this is quite simply just $(n-1)(n-3)(n-5)\cdots(3)(1)$, which is clearly the product of odd numbers. So we conclude that there are an odd number of valid permutations $(x_1,x_2,x_3,\dots,x_n)$. $\blacksquare$