2007 BMO Problems/Problem 3
Contents
Problem
(Serbia)
Find all positive integers such that there exists a permutation
on the set
for which
is a rational number.
Note: A permutation of the set is a one-to-one function of this set to itself.
Solution 1
The only solutions are and
.
First, we will prove that for positive integers , the number
is rational if and only if
is an integer, for all integers
. This follows from induction on
. The case
is trivial; now, suppose it holds for
. Then if
is an rational, than its square,
must also be rational, which implies that
is rational. But by the inductive hypothesis,
must be an integer, so
must also be an integer, which means that
is also an integer, since it is rational. The result follows.
Next, we prove that if are positive integers such that
and
is rational, then
.
This also comes by induction. The case is trivial. If our result holds for any
, then
.
Since must be a perfect square, it can be at most
, and the result follows.
Now we prove that no is a solution.
Suppose that there is some that is a solution. Than there exists some number
such that
. Since
,
. If
, then we know
since
is not a square; and
must be a perfect square, so we must have
. But this is a contradiction.
We now have the cases to consider. The case
is trivial. For
it is easy to verify that neither
nor
is rational. For
, we have the solution
. We now consider.
. First, suppose
; say
. We have already shown that
; this means
, a contradiction, since
must be a perfect square. Thus
. But here we have either
is irrational,
is irrational,
is irrational, or
is irrational. Thus there is no solution for
and the only solutions are
.
Solution 2
We claim that the only positive integers satisfying the given condition are and
These indeed work since
and
are both rational.
First, we introduce some simplifying notation: Let be arbitrary positive integers. Then define
for all
We start by showing three lemmas:
Lemma 1: Let be a positive integer. Then
is rational if and only if
is an integer.
Proof: First, note that if is an integer, it must be rational. Now, suppose
is rational; then we can write
for some relatively prime positive integers
and
Hence,
so
Since
and
are relatively prime, it follows that
which can only happen if
Hence, we have
which means that
is an integer.
Lemma 2: Let be arbitrary positive integers. Then
is rational if and only if
is an integer for all integers
Proof: We prove this by induction on The base case
is given by Lemma 1. Now, suppose the statement is true for
If
is an integer for all
then
is an integer, so
is rational.
Now, if is rational, then
is also rational. By the inductive hypothesis, this is true if and only if
is an integer for all
In particular,
must be an integer, so
must also be an integer. Then, since
is rational by hypothesis, Lemma 1 tells us that
must be an integer. Since we also know
is an integer for all
it follows that
is an integer for all
Hence, by induction, our statement is true for all
as desired.
Lemma 3: Suppose that are positive integers such that
and
is rational. Then we have
Proof: Again, we prove this by induction on For the base case
we know that since
it follows that
Now, suppose the statement is true for and suppose
are positive integers such that
and
is rational. Then we know that
is also rational, so by the inductive hypothesis, we have
Adding
and then taking the square root of both sides, it follows that
where the last inequality comes from the fact that
However, since Lemma 2 tells us that
must be an integer and
it follows that we actually have
Hence, by induction, our statement is true for all
as desired.
Using these lemmas, we turn our attention to which positive integers can satisfy the condition given in the problem. Similarly to our definition of
above, for a permutation
of the numbers
define
for all
First, we claim that no satisfies the given condition. Suppose for the sake of contradiction that some
did satisfy the condition. Then there must exist some integer
such that
so there must be some
such that
If
we know from Lemma 2 that
is an integer, a contradiction. Hence,
Then, Lemma 3 tells us that since
are at most
and hence less than
we have
This means that
Furthermore, since Lemma 2 tells us
is an integer,
must be a perfect square. Since
it follows that
so
Then, as Lemma 3 tells us that
this means that
and hence
contradicting the fact that
Therefore, no
satisfies the given conditions.
Hence, the only possible positive integers that could satisfy the given condition are
and
We showed above that
and
do indeed satisfy the given condition, so it suffices to show that
and
do not. For
we can verify using Lemma 1 that neither
nor
are rational, so this does not satisfy the given conditions.
Now, suppose satisfies the given conditions. First, suppose for the sake of contradiction that
and that
for some
Then Lemma 3 tells us that
so
must both be a perfect square and equal to either
or
which is a contradiction. Hence, we must have
By Lemma 2, it then follows that one of the numbers
is an integer. However, we can verify using Lemma 1 that none of these are integers, so
does not satisfy the given conditions.
This means that the only positive integers satisfying the given condition are as desired.
Alternate solutions are always welcome. If you have a different, elegant solution to this problem, please add it to this page.