Problem

Source: 2024 IMOC N6 (Night 4)

Tags: number theory, functional equation



Find all functions $f:\mathbb{Q}^+\to\mathbb{Q}^+$ such that \[xy(f(x)-f(y))|x-f(f(y))\]holds for all positive rationals $x$, $y$ (we define that $a|b$ if and only if exist $n \in \mathbb{Z}$ such that $b=an$) Proposed by supercarry & windleaf1A