You have been given a polynomial in which if you substitute x by , it evaluates to 0. You have to prove that q divides the coefficient of and p divides the constant.
Replace x by . Take LCM etc. , multiply both sides by whatever required to get an expression only in terms of integers. Can you see something after you do all this ?