Problem

Source: 2024IMOC

Tags: number theory, functional equation



Find all functions $f:\mathbb{N}\to\mathbb{N}$ such that $$|xf(y)-yf(x)|$$is a perfect square for every $x,y \in \mathbb{N}$