Find all integers n such that ?+1 divides ?2+1.
The problem is already discussed here please click here to see the solution.