Problem

Source: 2019 Romania JBMO TST 1.1

Tags: number theory, Divisors, divisor, Perfect Square



Let $n$ be a given positive integer. Determine all positive divisors $d$ of $3n^2$ such that $n^2 + d$ is the square of an integer.