Problem

Source:

Tags: function, algebra, IMO Shortlist, IMO 2010, Perfect Squares, number theory



Find all functions $g:\mathbb{N}\rightarrow\mathbb{N}$ such that \[\left(g(m)+n\right)\left(g(n)+m\right)\] is a perfect square for all $m,n\in\mathbb{N}.$ Proposed by Gabriel Carroll, USA