For the equation
We can re-write as
Let
We can re-write the equation as
Let ,then . So we have
Then we have
We know that , so
While , we have
We should make an integer, So we should make sure that is an integer, which is
We can see , all the factors are
We can make another equation to see if and have integer solutions
Consider the following equation
We know the discriminant
Substitute, we have
Substitute all the factors into the equation, only
makes the discriminant equals to 0
We have the solution
So we can get