I believe this should be in the Number Theory Section.
You might want to consider the following expression which is equivalent :
You can factorize this, then divide the RHS to the number-only LHS factor. Then try to see when it actually is an integer ()
EDIT : this might not give all solutions. You can also study the equation which is conceptually simpler.