Problem

Source: Greece JMO 2018, pr 3

Tags: number theory, Perfect Square



Let $a$ and $b$ be positive integers with $b$ odd, such that the number $$\frac{(a+b)^2+4a}{ab}$$is an integer. Prove that $a$ is a perfect square.