Maths Olympiad Prep

Library / Argentine National Olympiad /8 of 23

Argentine National Olympiad, 2016

Number theory Difficulty 6.3 National Olympiad Prove it Argentina

Let n≥2n \ge 2 be a natural number. For each pair a,ba, b of relatively prime natural numbers let da,bd_{a,b} be the greatest common divisor of na+bna+b and a+nba+nb. Find the maximum value of da,bd_{a,b}.

Solution

The maximum value of da,bd_{a,b} equals n2−1n^2-1.

Let aa and bb be relatively prime. Since da,bd_{a,b} divides na+bna+b and a+nba+nb, it also divides the numbers u=(n+1)(a+b)=(na+b)+(a+nb)u = (n+1)(a+b) = (na+b)+(a+nb) and v=(n−1)(a−b)=(na+b)−(a+nb)v = (n-1)(a-b) = (na+b)-(a+nb). Hence da,bd_{a,b} divides (n−1)u+(n+1)v=2(n2−1)a(n-1)u + (n+1)v = 2(n^2-1)a and (n−1)u−(n+1)v=2(n2−1)b(n-1)u - (n+1)v = 2(n^2-1)b. Therefore da,bd_{a,b} divides the greatest common divisor of 2(n2−1)a2(n^2-1)a and 2(n2−1)b2(n^2-1)b, which equals 2(n2−1)2(n^2-1), because aa and bb are relatively prime.

Now we show that da,b=2(n2−1)d_{a,b} = 2(n^2-1) is impossible. Otherwise na+b=2(n2−1)kna+b = 2(n^2-1)k, a+nb=2(n2−1)la+nb = 2(n^2-1)l, where kk and ll are relatively prime. These equalities form a linear system with unknowns aa and bb whose unique solution is a=2(nk−l)a = 2(nk-l), b=2(nl−k)b = 2(nl-k). However, the obtained values of aa and bb are even, so they are not relatively prime.

In conclusion, da,bd_{a,b} is a proper divisor of 2(n2−1)2(n^2-1), hence da,b≤n2−1d_{a,b} \le n^2-1. To see that da,b=n2−1d_{a,b} = n^2-1 is attainable, set a=n(n−1)−1a = n(n-1)-1, b=1b=1. Then na+b=(n−1)(n2−1)na+b = (n-1)(n^2-1), a+nb=n2−1a+nb = n^2-1. So da,b=n2−1d_{a,b} = n^2-1, as n−1n-1 and 11 are relatively prime. Thus n2−1n^2-1 is the maximum value of da,bd_{a,b}.

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.