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 n2+1 and n divides m2+1.