Problem

Source: Danube 2018 p2

Tags: number theory, Divisors, infinitely many



Prove that there are infinitely many pairs of positive integers $(m, n)$ such that simultaneously $m$ divides $n^2 + 1$ and $n$ divides $m^2 + 1$.