Let be a positive integer not divisible by the cube of a prime. Given an integer-coefficient polynomial , define its *signature modulo* to be the (ordered) sequence modulo . Of the such -term sequences of integers modulo , how many are the signature of some polynomial ?
Problem 1929
Official solution
Let be the prime factorization of . Then the number of achievable signatures is .
We begin by reducing to the case in which is a prime or the square of a prime. Assume for now that our claim holds in these cases. Observe that the signature of a polynomial modulo is completely determined by the collection of its signatures modulo . Indeed, for each such modulus , the sequence modulo determines the entire sequence modulo because implies . Since the moduli are relatively prime with product , it follows by the Chinese Remainder Theorem that specifying modulo all is equivalent to specifying the sequence modulo .
Conversely, we need to show that every sequence obtained by applying the above procedure to a collection of signatures is actually the signature of a polynomial . To do this, we apply the Chinese Remainder Theorem once more: define by choosing its coefficients such that
for all . Then for all , and the claim follows.
By the above, it suffices to show that the number of achievable signatures modulo is and the number of achievable signatures modulo is . In the first case, this amounts to showing that all -term sequences modulo can be realized as for some polynomial . There are a number of quick proofs of this result, all of which ultimately use the fact that the integers modulo form a field. A direct approach is to use Lagrange interpolation; another method is to use Lagrange's theorem to deduce that no two polynomials in of degree less than have the same signature modulo . Yet another approach is to show that the linear transformation (over ) that sends the coefficient vector () to the values () is nonsingular; this can be done by evaluating the Vandermonde determinant.
The modulus is trickier to handle. We begin by using an idea similar to Lagrange interpolation to exhibit a set of polynomials achieving distinct signatures modulo , thus obtaining a lower bound. We then establish a matching upper bound by finding a (different!) set of polynomials such that all integer-coefficient polynomials can be easily “reduced” to one of these, keeping the signature fixed during the reduction.
To prove our lower bound, we begin by defining
and
Consider all polynomials of the form
where and . We claim that no two such polynomials have the same signature modulo ; this will establish our lower bound.
By subtracting, it is enough to show that the only polynomial
satisfying with and is the zero polynomial. In fact, it suffices to evaluate at . For , we have for all and unless , in which case is invertible modulo . It follows that and hence , so for all .
Next we evaluate at . This time, all vanish modulo except when , in which case is divisible by but not . Thus, and hence , so for all , completing the proof of the lower bound.
It remains to prove that no more than signatures modulo are attainable. Given two polynomials and , we say that they are equivalent, denoted , if they have the same signature modulo . It is easy to see that implies and for any polynomial . We claim that every polynomial is equivalent to a polynomial such that
and
The key observation is that by Fermat, vanishes modulo when evaluated at any integer. Therefore, and both vanish modulo at all integers, i.e.
Using the properties of stated above, the first relation allows us to reduce to a polynomial of degree less than ; the second relation then allows us to further reduce to a polynomial with all coefficients of in . Finally, the remaining coefficients can be reduced modulo to lie in , completing the proof.