MathDB
lcm and gcd FE

Source: IMOC 2018 N2

August 17, 2021
number theoryleast common multiplegreatest common divisorfefunctional equation

Problem Statement

Find all functions f:NNf:\mathbb N\to\mathbb N satisfying lcm(f(x),y)gcd(f(x),f(y))=f(x)f(f(y))\operatorname{lcm}(f(x),y)\gcd(f(x),f(y))=f(x)f(f(y)) for all x,yNx,y\in\mathbb N.