Problem

Source: Balkan MO Shortlist 2020 N1

Tags: number theory



Determine all positive integers $n$ such that $\frac{a^2+n^2}{b^2-n^2}$ is a positive integer for some $a,b\in \mathbb{N}$. $Turkey$