Use the Euclid's algorithm for polynomials.
First prove that the leading coefficient of q is an integer. Then proceed by induction on the degree of q.
How could one divide X by 2X in Z/4Z?
If f(n)=p is a prime, consider
f(n +kp).
First prove that an irreducible polynomial of degree > 1 cannot have zeros.
Use Fermat's Little Theorem
Write the polynomial p as
p(x)=
ai x
2i+
bi x
2i+1. Then compare p(x) with
p(-x).
Substitute r for x in a. Now look which terms are divisible by r and which terms are not. What can you conclude from that?
Remember that a reducible polynomial of degree 2 or 3 always has a zero.
Expand the left-hand side of the identity, and evaluate it in p/q.
Expand the product and argue, using all coefficients of the product, that the top coefficient of f is an integer.
If h(X) divides f(X), then h(X + a) divides f(X + a).
Find the gcd and write it as a combination of X - 1 and X2 + X2 + 1. Then divide both sides by X3 - 1.
Think of the proof of the theorem stating that there are infinitely many primes.
Move one term from the left-hand side to the right-hand side, then rewrite the new right-hand side as a product of two factors and compare with the factors on the left-hand side.