Problem

Source: Romanian TST 2002

Tags: algebra, polynomial, number theory proposed, number theory



Let $P(x)$ and $Q(x)$ be integer polynomials of degree $p$ and $q$ respectively. Assume that $P(x)$ divides $Q(x)$ and all their coefficients are either $1$ or $2002$. Show that $p+1$ is a divisor of $q+1$. Mihai Cipu