Problem

Source: Balkan BMO Shortlist 2017 N2

Tags: Perfect Squares, functional equation, functional equation in N, number theory



Find all functions $f :Z_{>0} \to Z_{>0}$ such that the number $xf(x) + f ^2(y) + 2xf(y)$ is a perfect square for all positive integers $x,y$.