Question: Probing if an experission is an integer?

Recently, I encountered the problem in which one's asked to investigate if the following fraction is an integer or not. Of course the problem has an theoritical approach, but I wanted to make the problem dynamic. The fraction is p=(k^2-87)/(3k+117) and we want to find k in which p is an integer. What I did is to use the function msolve and a loop for but it gives my just the empty set which is incorrect. Any hint? Thanks

 

Please Wait...