Maths Olympiad Prep

Library / /193 of 397

, 2021

Algebra Difficulty 5.8 AIME, harder Prove it Taiwan

Let nn be a given positive integer. Person A and Person B play a game: A decides on an integer-coefficient polynomial P(x)P(x) of degree not exceeding nn, but does not tell B; B's goal is to determine whether there exists an integer kk such that P(x)=kP(x) = k has no integer solution. B may make the following queries: B gives A a constant cc, and A tells B how many integers tt satisfy P(t)=cP(t) = c; each query costs one dollar. How much money must B pay at least in order to guarantee achieving his goal?

Solution

B must pay at least n+1n+1 dollars.

We first prove: if for all c[0,n]Zc \in [0, n] \cap \mathbb{Z}, P(x)=cP(x) = c has an integer solution, then P(x)=±x+dP(x) = \pm x + d, where dd is some constant. We need the following lemma:

Lemma. If an integer-coefficient polynomial P(x)P(x) satisfies P(a)=kP(a) = k, P(b)=k+1P(b) = k + 1 where a,ba, b are both integers, then ab=1|a - b| = 1.

(Proof of lemma: since baP(b)P(a)=1b - a \mid P(b) - P(a) = 1, we have ab=1|a - b| = 1.)

Returning to the original problem. By assumption, there exist a0,a1,,ana_0, a_1, \dots, a_n respectively such that P(ai)=i,i=0,1,,nP(a_i) = i, i = 0, 1, \dots, n. By the lemma, aiai+1=1|a_i - a_{i+1}| = 1 holds for all i=0,1,,n1i = 0, 1, \dots, n-1. But since these aia_i are pairwise distinct, a0,,ana_0, \dots, a_n must form an arithmetic sequence with common difference 11 or 1-1.

Let us first discuss the case where the common difference is 11: since P(a0)=0P(a_0) = 0, we have P(x)=(xa0)Q(x)P(x) = (x - a_0)Q(x), where QQ has degree not exceeding n1n-1. But substituting aia_i again gives Q(ai)=1,i=1,2,,nQ(a_i) = 1, i = 1, 2, \dots, n, so Q(x)Q(x) is the constant polynomial 11, and P(x)=xa0P(x) = x - a_0.

Similarly, when the common difference is 1-1, P(x)=(xa0)P(x) = -(x - a_0).

Based on the above, B only needs to query P(x)=c,c=0,1,,nP(x) = c, c = 0, 1, \dots, n in sequence. If any one of these cc has no integer solution, B has achieved his goal. Otherwise P(x)=cP(x) = c has an integer solution for every integer c[0,n]c \in [0, n], so P(x)=±x+dP(x) = \pm x + d, and it follows that P(x)=kP(x) = k has an integer solution for every integer kk, so B has also achieved his goal.

Therefore B can always achieve his goal after at most n+1n+1 queries.

On the other hand, if B only makes nn queries, suppose without loss of generality that the integers cc he asks about are c1,c2,,cnc_1, c_2, \dots, c_n respectively. Then consider the following two polynomials:
P1(x)=x+Ai=1n(xci),P2(x)=x. P_1(x) = x + A \prod_{i=1}^{n} (x - c_i), \quad P_2(x) = x.
As long as AA is taken sufficiently large, then P1(x)=ciP_1(x) = c_i has only one integer solution x=cix = c_i, and simultaneously P2(x)=ciP_2(x) = c_i also has only one integer solution x=cix = c_i, so B cannot distinguish between these two polynomials. But the answers given by these two polynomials are not the same, which shows that B cannot achieve his goal at this point.

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement translated into English from zh; metadata (topic, difficulty) added by this project.