2009 OIM Problems/Problem 5
Problem
The sequence is defined by
, and
, for all integer
. Prove that every positive rational number appears exactly once in this sequence.
~translated into English by Tomas Diaz. ~orders@tomasdiaz.com
Solution
We can prove the statement by strong induction. Define an -fraction to be a fraction with a denominator of
. Clearly all
-fractions are positive as both functions map positives to positives. Furthermore, let
denote the function
and
the function
. This represents the two recursions given, and the only limitation given is that we cannot apply
twice in a row.
For our base case, clearly all -fractions (the set of naturals) are able to be generated by repeatedly applying
. Then assume that all
-fractions can be generated for all
such that
is a given positive integer. We prove that all
-fractions can also be generated.
Notice that both given functions and
are one-to-one (bijections over the positive rationals) and thus denote
and
as the inverse functions of
and
. If we apply
or
to a given fraction, then we can simply apply
or
to the resultant fraction to generate the given fraction again. As a result, we consider some fraction
for
a positive integer. Repeatedly apply
a finite number of times
until the fraction is no greater than one and still positive. This new fraction is
; let
, so the fraction is
; clearly
is a positive integer. In the case
, the fraction is simply equal to
, which is already generated; thus we consider
.
Now we apply to this fraction, resulting in
. However, notice that
indicates that this new fraction is a
-fraction, which can be generated. As a result, all
-fractions can be generated, completing the inductive step and proving the claim.
Finally, we prove that each positive rational appears exactly once in the sequence. Notice that after every application of some number of results in a greater numerator than denominator due to the addition of
. Then an application of
results in a new greater denominator. Notice that
cannot be applied again due to the restriction of even indices; thus applying the functions
and
will never decrease the denominator of a fraction. Therefore, if we consider
and
, these functions will never increase the denominator of a fraction. Thus, given a fraction with a greater denominator than numerator, we cannot apply
; thus we must apply
. Similarly, if we are given a fraction with a greater numerator than denominator, we cannot apply
as we cannot generate negatives; thus we must apply
. Clearly the case of equal numerator and denominator is already generated due to
; thus we have shown that there is a forced sequence of moves
and
that changes a given fraction to
, so the opposite is true as well, proving uniqueness.