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

(Added in a solution. Sorry if the solution is hard to follow and for the frequent change in variables.)
Line 13: Line 13:
  
  
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 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>. (*Note: This is wrong, as <math>b_n</math> is only the number of valid involutions for <math>1,2,...,n</math>, not <math>1,2,...,n+1</math> with one number removed.)
  
 
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>
 
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 03:27, 5 March 2023

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$. (*Note: This is wrong, as $b_n$ is only the number of valid involutions for $1,2,...,n$, not $1,2,...,n+1$ with one number removed.)

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$