Let $n$ be a positive integer. Determine the maximum value of $gcd(a, b) + gcd(b, c) + gcd(c, a)$ for positive integers $a, b, c$ such that $a + b + c = 5n$.
Problem
Source: Dutch IMO TST1 2019 p3
Tags: maximum, GCD, greatest common divisor, number theory
14.01.2020 01:23
27.04.2021 17:00
kaede wrote: The maximum value is $ \begin{cases} f( 2n,n,n) =4n & \ \text{when} \ 3\nmid n\\ f( 5n/3,5n/3,5n/3) =5n & \ \text{when} \ 3\mid n \end{cases}$. I don't think that's true. $f(1,1,5n-2)=10n-3>5n$
27.04.2021 17:03
Ya_pank wrote: kaede wrote: The maximum value is $ \begin{cases} f( 2n,n,n) =4n & \ \text{when} \ 3\nmid n\\ f( 5n/3,5n/3,5n/3) =5n & \ \text{when} \ 3\mid n \end{cases}$. I don't think that's true. $f(1,1,5n-2)=10n-3>5n$ Dude $f(1,1,5n - 2) = \gcd(1,1) + \gcd(1,5n - 2) + \gcd(1,5n - 2) = 3 < 5n$.
02.05.2021 17:22
yeah that was so dumb
16.11.2021 11:31
kaede wrote:
"then we have $ f\leq d( s+t+u) /2=5n/2$, but this is impossible." sorry but I didn't get why is it impossible
16.11.2021 13:37
Write G = gcd(a, b) + gcd(b, c) + gcd(c, a). Without loss of generality we assume that a <b< c. Then we have gcd(a, b) < a, gcd(b, c) < b, and gcd(c, a) < a. Hence G=<a+b+a=< a +b+c=< 5n. If 3 | n, then we can achieve G = 5n via a = b = c =5/3 n. Since all three gcd's equal n, So suppose that 3does not divide n. Then a, b, and c cannot all be equal to each other. We distinguish a number of cases. . Case la. b = c and b =< 2n. Since in this case we have a≠b, it follows that gcd(a, b) = gcd(a, b-a) =<b-a. Hence G =< (b- a)+b+a = 2b =< 4n. Case 1b. b = c and b > 2n. We have a+2b = 5n, so a = 5n – 2b, from which we deduce that G =< a+b+a = 10n – 4b+b = 10n – 3b =< 10n – 6n = 4n. Case 2a. b≠c and c-a >= n. Now we have G =< a+b+a = (a+b+c)-(c-a)=5n – (c - a) < 5n – n = 4n. Case 2b. b≠c and c - a < n. Since a =<b=<c we now also have c- b < n. Moreover, we have b+c and therefore a + c. So gcd(c, a) = gcd(c- a, a) =<c-a < n and gcd(b, c) = gcd(b, c – b) =<c-b< n. Also note that a <n. Therefore G =<5/3n+n+n< 4n. So in all cases we have G< 4n. We can achieve G = 4n via a = n and b= c= 2n, since then we have gcd(a, b) = gcd(c, a) = n and gcd(b, c) = 2n. Therefore the maximum value of G is 5n if 3 divide n and 4n if 3 doesn't divide n.