Maths Olympiad Prep

Library / IMO Team Selection Test 1, June /2 of 3

IMO Team Selection Test 1, June, 2020

Number theory Difficulty 8.0 National Olympiad, round 2 Prove it Netherlands

Let aa, b≥2b \ge 2 be positive integers with gcd⁡(a,b)=1\gcd(a, b) = 1. Let rr be the smallest positive value that ab−cd\frac{a}{b} - \frac{c}{d} can take, where cc and dd are positive integers satisfying c≤ac \le a and d≤bd \le b. Prove that 1r\frac{1}{r} is an integer.

Solution

We will first show that it is possible to choose cc and dd such that ab−cd=1bd\frac{a}{b} - \frac{c}{d} = \frac{1}{bd}.

Because gcd⁡(a,b)=1\gcd(a, b) = 1, there exists a multiplicative inverse b−1b^{-1} of bb modulo aa. Now let cc with 1≤c≤a1 \le c \le a be such that c≡−b−1(moda)c \equiv -b^{-1} \pmod a. Then we have bc≡−1(moda)bc \equiv -1 \pmod a, hence a∣bc+1a \mid bc + 1. Define d=bc+1ad = \frac{bc+1}{a}, which is a positive integer. We have d=bc+1a≤ba+1a=b+1ad = \frac{bc+1}{a} \le \frac{ba+1}{a} = b + \frac{1}{a}. Because a≥2a \ge 2 and dd is an integer, we get d≤bd \le b. All conditions are met. Hence, we have ab−cd=ad−bcbd=bc+1−bcbd=1bd\frac{a}{b} - \frac{c}{d} = \frac{ad-bc}{bd} = \frac{bc+1-bc}{bd} = \frac{1}{bd}.

If this is the smallest possible outcome, then we are done, because 1r=bd\frac{1}{r} = bd would be an integer. We will show that no smaller positive outcome is achievable. Let cc and dd be as above, and suppose there are positive integers c′≤ac' \le a and d′≤bd' \le b such that 0<ab−c′d′<1bd0 < \frac{a}{b} - \frac{c'}{d'} < \frac{1}{bd}. We will derive a contradiction.

Let x=ad′−bc′x = ad' - bc', then we have ab−c′d′=xbd′\frac{a}{b} - \frac{c'}{d'} = \frac{x}{bd'}, hence xbd<bd′xbd < bd', which yields xd<d′xd < d'. We also know that x>0x > 0. Hence, 0<xd<d′≤b0 < xd < d' \le b, which means that xdxd and d′d' are two distinct numbers whose difference is less than bb. Moreover, from x=ad′−bc′x = ad' - bc' we get that x≡ad′(modb)x \equiv ad' \pmod b. On the other hand, we know that ad−bc=1ad - bc = 1, hence ad≡1(modb)ad \equiv 1 \pmod b, hence xad≡x(modb)xad \equiv x \pmod b. Combining this, we get ad′≡xad(modb)ad' \equiv xad \pmod b. Because gcd⁡(a,b)=1\gcd(a, b) = 1 we may divide by aa, hence d′≡xd(modb)d' \equiv xd \pmod b. However, we already saw that d′d' and xdxd are distinct numbers whose difference is smaller than bb, hence this is impossible.

We conclude that the cc and dd we found indeed give the smallest possible outcome, and hence 1r\frac{1}{r} is an integer. □\square

Want a route through all this instead of an archive? The track puts 2,604 problems in a working order, from Junior Challenge level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty) added by this project.