Problem

Source: ELMO Shortlist 2024/N1

Tags: Elmo, number theory



Find all pairs $(n,d)$ of positive integers such that $d\mid n^2$ and $(n-d)^2<2d$. Linus Tang