I am struggling with a problem of elementary number theory. The problem is as follows:
Find all ordered pairs $(m,n)$ where $m$ and $n$ belongs to set of natural numbers,such that: $m$ divides $n^2+1$ and $n$ divides $m^2+1$.
I have not been able to do much but I am sharing what I have figured out:
i) $\gcd(m,n)=1$
ii) there exist $t$ such that $mnt=m^2+n^2+1$
iii) $t$ is a multiple of $3$.
Please provide me with some hints to solve the problem. Or a complete solution is most welcomed.