Maths Olympiad Prep

Library / /9 of 24

, 2016

Number theory Difficulty 6.3 National olympiad Prove it Argentina

Let n2n \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 n21n^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=(n1)(ab)=(na+b)(a+nb)v = (n-1)(a-b) = (na+b)-(a+nb). Hence da,bd_{a,b} divides (n1)u+(n+1)v=2(n21)a(n-1)u + (n+1)v = 2(n^2-1)a and (n1)u(n+1)v=2(n21)b(n-1)u - (n+1)v = 2(n^2-1)b. Therefore da,bd_{a,b} divides the greatest common divisor of 2(n21)a2(n^2-1)a and 2(n21)b2(n^2-1)b, which equals 2(n21)2(n^2-1), because aa and bb are relatively prime.

Now we show that da,b=2(n21)d_{a,b} = 2(n^2-1) is impossible. Otherwise na+b=2(n21)kna+b = 2(n^2-1)k, a+nb=2(n21)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(nkl)a = 2(nk-l), b=2(nlk)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(n21)2(n^2-1), hence da,bn21d_{a,b} \le n^2-1. To see that da,b=n21d_{a,b} = n^2-1 is attainable, set a=n(n1)1a = n(n-1)-1, b=1b=1. Then na+b=(n1)(n21)na+b = (n-1)(n^2-1), a+nb=n21a+nb = n^2-1. So da,b=n21d_{a,b} = n^2-1, as n1n-1 and 11 are relatively prime. Thus n21n^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,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement and solution reproduced as published; topic and difficulty added by this site.