Problem

Source: European Mathematical Cup 2022, Junior Division, Problem 2

Tags: algebra, floor function, function



Find all pairs $(x,y)$ of positive real numbers such that $xy$ is an integer and $x+y = \lfloor x^2 - y^2 \rfloor$.