Find all positive integers $d$ such that $d$ divides both $n^{2}+1$ and $(n + 1)^{2}+1$ for some integer $n$.
Currently what I am thinking of is like manipulating $n^{2}+1$ and finding out the answer. Please guide me on how to move forward with this problem.
HINTS ONLY
Thanks for helping.