Skip to main content
OlympiadHQ

Browse · MathNet

Print

42nd Balkan Mathematical Olympiad

number theory

Problem

Let be a given positive integer. Find all positive integers , for which there exists a polynomial with integer coefficients such that and for all positive integers .
Solution
First, we will prove the following lemma: Lemma. Let be a polynomial with rational coefficients such that is an integer for any integer . Then there exist integers such that . Proof. Let us first prove that for any polynomial with rational coefficients there are rational numbers (where ) such that . We will prove this by induction on , with the base case being clear. Assuming that and that the result holds for polynomials of degree not exceeding , consider a polynomial of degree . Then choose such that has degree not exceeding (namely, if is the leading coefficient of , choose ). By the inductive hypothesis we can write for some rational numbers , and thus has the required form. Assuming that is an integer for all integers , then is an integer, as a difference of two integers. Clearly, is also an integer. Assuming that are integers for some , the relation shows that is an integer, as well. Therefore are all integers and the proof of the lemma is complete.

Now let's return to the original problem. For all , we have that Let , which is a polynomial with rational coefficients of degree in . Then the condition is equivalent to for all positive integers . Let and . If , we can select for all and for and the condition is satisfied. Obviously all are rational numbers, and hence is a polynomial with rational coefficients. Let where are integers such that , for all (or if we set ). Notice that , and since

, the denominator of this fraction (after reduction) is not divisible by , for all . Hence, none of the 's is divisible by . Let and let be an integer such that ( exists because is not divisible by ). Define . Now, first notice that has integer coefficients ( has integer coefficients, and multiplying it by doesn't change that fact) and due to the construction of , for each positive integer we have that . Thus, also satisfies the condition and has integer coefficients. In conclusion, all satisfy the problem condition.

Now, suppose that and let Then and is an integer for all positive integers (hence, in fact, for all positive integers due to the periodicity of modulo ). Let Then the leading coefficient of is equal to Also, using the lemma we can write with for all . Comparing the leading coefficients we get that which implies that a contradiction. In conclusion, the desired positive integers are all such that .
Final answer
d ≥ k − 1

Techniques

Inverses mod nPolynomials mod pPolynomial interpolation: Newton, Lagrange