Let $\mathbb{N}_{\geqslant 1}$ be the set of positive integers. Find all functions $f \colon \mathbb{N}_{\geqslant 1} \to \mathbb{N}_{\geqslant 1}$ such that, for all positive integers $m$ and $n$: \[\mathrm{GCD}\left(f(m),n\right) + \mathrm{LCM}\left(m,f(n)\right) = \mathrm{GCD}\left(m,f(n)\right) + \mathrm{LCM}\left(f(m),n\right).\] Note: if $a$ and $b$ are positive integers, $\mathrm{GCD}(a,b)$ is the largest positive integer that divides both $a$ and $b$, and $\mathrm{LCM}(a,b)$ is the smallest positive integer that is a multiple of both $a$ and $b$.
Problem
Source: 2021 Francophone MO Juniors p4
Tags: number theory, greatest common divisor, least common multiple, functional equation, functional, Francophone
04.04.2021 06:12
Huh. As usual, let $P(m,n)$ denote the given assertion.
04.04.2021 07:53
08.04.2021 15:33
My solution at the competition has not been posted yet, though it is similar to the previous post; but I guess I'll post it anyways.
08.04.2021 15:54
04.05.2021 13:15
My solution looks different from all of the above (Although somewhat similar to #3), so I'll post it. Let $P(m,n)$ denote the given assertion and let $f(1) = c$ With $P(1,n)$, we get that $f(n) = \text{lcm}(c,n) - \text{gcd}(c,n) + 1$ So, for sufficiently large $p$, we have that $f(p) = cp$ Now, for each $n$, we can pick a prime $p$ such that $p$ is coprime with $n$ as well as $f(n)$. So, $P(p,n)$ gives that $\text{lcm}(c,n) - f(n) = \frac{\text{gcd}(c,n) - 1}{p}$ and since this holds for infinitely many $p$, we have that $\text{gcd}(c,n) = 1$ for all $n$ So, this implies that $c = 1$ and so we have that $f(n) = n$ for all $n$
27.09.2021 07:55
parmenides51 wrote: Let $\mathbb{N}_{\geqslant 1}$ be the set of positive integers. Find all functions $f \colon \mathbb{N}_{\geqslant 1} \to \mathbb{N}_{\geqslant 1}$ such that, for all positive integers $m$ and $n$: \[\mathrm{GCD}\left(f(m),n\right) + \mathrm{LCM}\left(m,f(n)\right) = \mathrm{GCD}\left(m,f(n)\right) + \mathrm{LCM}\left(f(m),n\right).\] Note: if $a$ and $b$ are positive integers, $\mathrm{GCD}(a,b)$ is the largest positive integer that divides both $a$ and $b$, and $\mathrm{LCM}(a,b)$ is the smallest positive integer that is a multiple of both $a$ and $b$. My solution - We claim that the answer is $f(m) = m$ for all natural $m$. If a prime $p$ doesn't divide $f(1)$ , then from $P(p,1)$ we get $f(p) = pf(1)$ , and if a prime $q \mid f(1)$ , then from $P(q,1)$ we get $f(q) = f(1)-q+1$ , So $f(p) = pq+pf(q) -p$ , now as there exist infinite primes not dividing $f(1)$ , choose a $r > max (f(1) - q +1 )_{q \mid f(1)}$ , and let $s$ be a prime dividing $f(1)$ , so from $P(r,s)$ , we got $r+s = rs+1$ , a contradiction , so no prime divide $f(1)$ so $f(1)=1$ , now from $P(m,1)$ , we got desired conclusion. $\blacksquare$