Problem

Source: Kyiv City MO 2024 Round 1, Problem 11.5

Tags: functional equation, number theory, Functional Equations



Find all functions $f : \mathbb{N} \to \mathbb{N}$ such that for any positive integers $m, n$ the number $$(f(m))^2+ 2mf(n) + f(n^2)$$is the square of an integer. Proposed by Fedir Yudin