Maths Olympiad Prep

Library / China Hong Kong Mathematical Olympiad /53 of 89

China Hong Kong Mathematical Olympiad

Number theory Difficulty 6.2 National Olympiad Prove it Hong Kong

Let s,ts, t be given nonzero integers, and let (x,y)(x, y) be any ordered pair of integers. A move changes (x,y)(x, y) to (x+t,y−s)(x + t, y - s). The pair (x,y)(x, y) is 'good' if after some (maybe zero) number of moves it describes a pair of integers that are not relatively prime.

a. Determine if (s,t)(s, t) is a good pair.

b. Show that for any ss and tt there is a pair (x,y)(x, y) which is not good.

Solution

a. Yes. Since s,t≠0s, t \neq 0, s2+t2≥2s^2 + t^2 \geq 2. Let pp be any prime divisor of s2+t2s^2 + t^2. If p∣tp \mid t, then p∣sp \mid s, and so gcd⁡(s,t)≥p\gcd(s, t) \geq p. This shows (s,t)(s, t) is good. If p∤tp \nmid t, then there exists k∈Z+k \in \mathbb{Z}^+ such that tk≡−s(modp)tk \equiv -s \pmod{p}. Then we have p∣s+ktp \mid s + kt. Also, we have
t−ks=t−(−t−1s)s=t−1(t2+s2)≡0(modp). t - ks = t - (-t^{-1}s)s = t^{-1}(t^2 + s^2) \equiv 0 \pmod{p}.
Thus, gcd⁡(s+kt,t−ks)≥p\gcd(s+kt, t-ks) \geq p. This shows (s,t)(s, t) is a good pair as we can apply kk moves to (s,t)(s, t) to obtain (s+kt,t−ks)(s + kt, t - ks).

b. Let gcd⁡(s,t)=d\gcd(s, t) = d. By Bézout's identity, there exist m,n∈Zm, n \in \mathbb{Z} such that ms+nt=dms + nt = d. We claim that the pair (m,n)(m, n) is not good.
After kk moves, the pair becomes (m+kt,n−ks)(m + kt, n - ks). If there exists a prime pp dividing both m+ktm + kt and n−ksn - ks, then
p∣(m+kt)sd+(n−ks)td=ms+ntd=1. p \mid (m + kt) \frac{s}{d} + (n - ks) \frac{t}{d} = \frac{ms + nt}{d} = 1.
This is impossible. Therefore, gcd⁡(m+kt,n−ks)=1\gcd(m + kt, n - ks) = 1 for any kk. This proves our claim.

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.