Olympiad Maths Prep

Track / Stage 9 / 49 of 80 #1929 of 2000

Problem 1929

IMO P2/P5; hard shortlist
Number theory Difficulty 9.1 Prove it Team Selection Test · United States

Let nn be a positive integer not divisible by the cube of a prime. Given an integer-coefficient polynomial f(x)f(x), define its *signature modulo* nn to be the (ordered) sequence f(1),,f(n)f(1), \dots, f(n) modulo nn. Of the nnn^n such nn-term sequences of integers modulo nn, how many are the signature of some polynomial f(x)f(x)?

This one wants a proof. Work it on paper, read the official solution, then mark yourself honestly — the ladder only means something if the record is true.

Official solution

Let p1prq12qsp_1 \cdots p_r q_1^2 \cdots q_s be the prime factorization of nn. Then the number of achievable signatures is p1p1prprq13q1qs3qsp_1^{p_1} \cdots p_r^{p_r} q_1^{3q_1} \cdots q_s^{3q_s}.

We begin by reducing to the case in which nn 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 f(x)f(x) modulo nn is completely determined by the collection of its signatures modulo p1,,pr,q12,,qs2p_1, \dots, p_r, q_1^2, \dots, q_s^2. Indeed, for each such modulus mim_i, the sequence f(1),,f(mi)f(1), \dots, f(m_i) modulo mim_i determines the entire sequence f(1),,f(n)f(1), \dots, f(n) modulo mim_i because ab(modmi)a \equiv b \pmod{m_i} implies f(a)f(b)(modmi)f(a) \equiv f(b) \pmod{m_i}. Since the moduli p1,,pr,q12,,qs2p_1, \dots, p_r, q_1^2, \dots, q_s^2 are relatively prime with product nn, it follows by the Chinese Remainder Theorem that specifying f(1),,f(n)f(1), \dots, f(n) modulo all mim_i is equivalent to specifying the sequence modulo nn.

Conversely, we need to show that every sequence y1,,yn(modn)y_1, \dots, y_n \pmod{n} obtained by applying the above procedure to a collection of signatures fi(1),,fi(mi)(modmi)f_i(1), \dots, f_i(m_i) \pmod{m_i} is actually the signature of a polynomial f(x)f(x). To do this, we apply the Chinese Remainder Theorem once more: define f(x)f(x) by choosing its coefficients such that
[xk]f(x)[xk]fi(x)(modmi) [x^k]f(x) \equiv [x^k]f_i(x) \pmod{m_i}
for all ii. Then f(x)fi(x)(modmi)f(x) \equiv f_i(x) \pmod{m_i} for all ii, and the claim follows.

By the above, it suffices to show that the number of achievable signatures modulo pp is ppp^p and the number of achievable signatures modulo p2p^2 is p3pp^{3p}. In the first case, this amounts to showing that all pp-term sequences modulo pp can be realized as f(1),,f(p)f(1), \dots, f(p) for some polynomial f(x)f(x). There are a number of quick proofs of this result, all of which ultimately use the fact that the integers modulo pp 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 Z/pZ\mathbb{Z}/p\mathbb{Z} of degree less than pp have the same signature modulo pp. Yet another approach is to show that the linear transformation (over Z/pZ\mathbb{Z}/p\mathbb{Z}) that sends the coefficient vector ([x0]f(x),,[xp1]f(x)[x^0]f(x), \dots, [x^{p-1}]f(x)) to the values (f(1),,f(p)f(1), \dots, f(p)) is nonsingular; this can be done by evaluating the Vandermonde determinant.

The modulus p2p^2 is trickier to handle. We begin by using an idea similar to Lagrange interpolation to exhibit a set of polynomials achieving p3pp^{3p} distinct signatures modulo p2p^2, thus obtaining a lower bound. We then establish a matching upper bound by finding a (different!) set of p3pp^{3p} 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
fk(x)=((x1)(x(k1))(x(k+1))(xp))2 f_k(x) = ((x-1) \cdots (x-(k-1))(x-(k+1)) \cdots (x-p))^2
and
gk(x)=(xk)fk(x). g_k(x) = (x-k)f_k(x).
Consider all polynomials of the form
k=1pakfk(x)+bkgk(x) \sum_{k=1}^{p} a_k f_k(x) + b_k g_k(x)
where 1akp21 \le a_k \le p^2 and 1bkp1 \le b_k \le p. We claim that no two such polynomials have the same signature modulo p2p^2; this will establish our lower bound.

By subtracting, it is enough to show that the only polynomial
f(x)=k=1pakfk(x)+bkgk(x) f(x) = \sum_{k=1}^{p} a_k f_k(x) + b_k g_k(x)
satisfying f(1)f(p2)0(modp2)f(1) \equiv \cdots \equiv f(p^2) \equiv 0 \pmod{p^2} with ak<p2|a_k| < p^2 and bk<p|b_k| < p is the zero polynomial. In fact, it suffices to evaluate f(x)(modp2)f(x) \pmod{p^2} at x=1,,2px = 1, \dots, 2p. For j=1,,pj = 1, \dots, p, we have gk(j)=0g_k(j) = 0 for all kk and fk(j)=0f_k(j) = 0 unless k=jk = j, in which case fj(j)f_j(j) is invertible modulo p2p^2. It follows that 0f(j)=ajfj(j)0 \equiv f(j) = a_j f_j(j) and hence aj0(modp2)a_j \equiv 0 \pmod{p^2}, so ak=0a_k = 0 for all kk.

Next we evaluate f(x)f(x) at j=p+1,,2pj = p + 1, \dots, 2p. This time, all gk(j)g_k(j) vanish modulo p2p^2 except when k=jpk = j - p, in which case gjp(j)g_{j-p}(j) is divisible by pp but not p2p^2. Thus, 0f(j)bjpgjp(j)(modp2)0 \equiv f(j) \equiv b_{j-p}g_{j-p}(j) \pmod{p^2} and hence bjp0(modp)b_{j-p} \equiv 0 \pmod{p}, so bk=0b_k = 0 for all kk, completing the proof of the lower bound.

It remains to prove that no more than p3pp^{3p} signatures modulo p2p^2 are attainable. Given two polynomials f(x)f(x) and g(x)g(x), we say that they are equivalent, denoted f(x)g(x)f(x) \sim g(x), if they have the same signature modulo p2p^2. It is easy to see that f(x)g(x)f(x) \sim g(x) implies f(x)h(x)g(x)h(x)f(x)h(x) \sim g(x)h(x) and f(x)+h(x)g(x)+h(x)f(x) + h(x) \sim g(x) + h(x) for any polynomial h(x)h(x). We claim that every polynomial f(x)f(x) is equivalent to a polynomial g(x)g(x) such that
[xk]g(x){1,,p2}for 0k<p [x^k]g(x) \in \{1, \dots, p^2\} \quad \text{for } 0 \le k < p
and
[xk]g(x){1,,p}for pk<2p. [x^k]g(x) \in \{1, \dots, p\} \quad \text{for } p \le k < 2p.
The key observation is that by Fermat, xpxx^p - x vanishes modulo pp when evaluated at any integer. Therefore, (xpx)2(x^p - x)^2 and p(xpx)p(x^p - x) both vanish modulo p2p^2 at all integers, i.e.
x2p2xp+1x2andpxppx. x^{2p} \sim 2x^{p+1} - x^2 \quad \text{and} \quad px^p \sim px.
Using the properties of \sim stated above, the first relation allows us to reduce f(x)f(x) to a polynomial of degree less than pp; the second relation then allows us to further reduce to a polynomial with all coefficients of xp,,x2p1x^p, \dots, x^{2p-1} in {1,,p}\{1, \dots, p\}. Finally, the remaining coefficients can be reduced modulo p2p^2 to lie in {1,,p2}\{1, \dots, p^2\}, completing the proof.

Source: MathNet, licensed CC-BY-4.0. Statement and solution reproduced as published; topic, difficulty and ordering added by this site.