Let be a given positive integer. Person A and Person B play a game: A decides on an integer-coefficient polynomial of degree not exceeding , but does not tell B; B's goal is to determine whether there exists an integer such that has no integer solution. B may make the following queries: B gives A a constant , and A tells B how many integers satisfy ; each query costs one dollar. How much money must B pay at least in order to guarantee achieving his goal?
, 2021
Solution
B must pay at least dollars.
We first prove: if for all , has an integer solution, then , where is some constant. We need the following lemma:
Lemma. If an integer-coefficient polynomial satisfies , where are both integers, then .
(Proof of lemma: since , we have .)
Returning to the original problem. By assumption, there exist respectively such that . By the lemma, holds for all . But since these are pairwise distinct, must form an arithmetic sequence with common difference or .
Let us first discuss the case where the common difference is : since , we have , where has degree not exceeding . But substituting again gives , so is the constant polynomial , and .
Similarly, when the common difference is , .
Based on the above, B only needs to query in sequence. If any one of these has no integer solution, B has achieved his goal. Otherwise has an integer solution for every integer , so , and it follows that has an integer solution for every integer , so B has also achieved his goal.
Therefore B can always achieve his goal after at most queries.
On the other hand, if B only makes queries, suppose without loss of generality that the integers he asks about are respectively. Then consider the following two polynomials:
As long as is taken sufficiently large, then has only one integer solution , and simultaneously also has only one integer solution , 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.