Problem

Source: Mongolia 1999 Teachers elementary level P5

Tags: algebra, polynomial



Find the number of polynomials $P(x)$ of degree $6$ whose coefficients are in the set $\{1,2,\ldots,1999\}$ and which are divisible by $x^3+x^2+x+1$.