Problem

Source: IMOC 2018 N2

Tags: number theory, least common multiple, greatest common divisor, fe, functional equation



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