Problem

Source: Germany 2020, Problem 4

Tags: number theory, number theory proposed, Divisibility, Divisors



Determine all positive integers $n$ for which there exists a positive integer $d$ with the property that $n$ is divisible by $d$ and $n^2+d^2$ is divisible by $d^2n+1$.