Maths Olympiad Prep

Library / /15 of 25

, 2024

Algebra Difficulty 7.8 National Olympiad, round 2 Prove it European Girls' Mathematical Olympiad (EGMO)

Problem:
Find all positive integers dd for which there exists a degree dd polynomial PP with real coefficients such that there are at most dd different values among P(0),P(1),,P(d2d)P(0), P(1), \ldots, P\left(d^{2}-d\right).

Solution

Solution:
We claim that such polynomials exist if and only if d3d \leq 3. The following examples show that such polynomials do exist for d3d \leq 3:
d=1:d2d=0,P1(x)=x,P(0)=0; \begin{array}{lll} d=1: & d^{2}-d=0, & P_{1}(x)=x, \\ \end{array} \begin{array}{ll} & P(0)=0 ; \end{array}
We can make more examples by adding constants.

Now we will show that there are no examples of degree greater than 3.
From now on we assume (without loss of generality) that the leading coefficient of our polynomial PP is positive and that all values P(i)P(i) are positive (by adding a constant if necessary) for integers ii in the range 0id2d+10 \leq i \leq d^{2}-d+1.

Assume (for contradiction) that PP is a polynomial of degree d4d \geq 4 that satisfies the conditions of the problem and let P(0),,P(d2d)P(0), \ldots, P\left(d^{2}-d\right) take values among p1<<pdp_{1}<\cdots<p_{d}. For i=1,,di=1, \ldots, d, let ni0n_{i} \geq 0 be the number of appearances of pip_{i} among P(0),,P(d2d)P(0), \ldots, P\left(d^{2}-d\right).
By definition n1++nd=d2d+1n_{1}+\cdots+n_{d}=d^{2}-d+1. Since PP has degree dd, nidn_{i} \leq d. The key observation is now the following.

Claim 1
Make the convention that n0=nd+1=0n_{0}=n_{d+1}=0. If ni=dn_{i}=d for some ii in the range 1id1 \leq i \leq d, then ni±1d2n_{i \pm 1} \leq d-2.

Proof. Up to scaling and hence without loss of generality, PP has leading coefficient +1+1. Since ni=dn_{i}=d, there exist non-negative integers a1,i<<ad,id2da_{1, i}<\cdots<a_{d, i} \leq d^{2}-d such that
P(X)=(Xa1,i)(Xad,i)+pi. P(X)=\left(X-a_{1, i}\right) \cdots\left(X-a_{d, i}\right)+p_{i}.
By construction, each of the d1d-1 intervals Ij=[aj,i,aj+1,i]I_{j}=\left[a_{j, i}, a_{j+1, i}\right] contains at least one local extremum of PP, so contains exactly one such extremum because PP, having degree dd, has at most d1d-1 such extrema. Suppose that id1i \leq d-1 and that P(m)=pi+1>piP(m)=p_{i+1}>p_{i} for some m{0,,d2d}m \in\{0, \ldots, d^{2}-d\}. Since PP has positive leading coefficient,
m(ad,i,)(ad2,i,ad1,i)(a1,i,a2,i) m \in\left(a_{d, i}, \infty\right) \cup\left(a_{d-2, i}, a_{d-1, i}\right) \cup \cdots \cup\left(a_{1, i}, a_{2, i}\right)
if dd is odd or
m(ad,i,)(ad2,i,ad1,i)(,a1,i) m \in\left(a_{d, i}, \infty\right) \cup\left(a_{d-2, i}, a_{d-1, i}\right) \cup \cdots \cup\left(-\infty, a_{1, i}\right)
if dd is even.

Suppose that aj,i<m<aj+1,ia_{j, i}<m<a_{j+1, i}, for some j{1,,d1}j \in\{1, \ldots, d-1\}. If aj,i+1<m<aj+1,i1a_{j, i}+1<m<a_{j+1, i}-1, then, because IjI_{j} contains exactly one local extremum (which is a maximum),
Either pi+1=P(m)>P(aj,i+1)p_{i+1}=P(m)>P\left(a_{j, i}+1\right) or pi+1=P(m)>P(aj+1,i1)p_{i+1}=P(m)>P\left(a_{j+1, i}-1\right). Since P(aj,i+1)>P(aj,i)=piP\left(a_{j, i}+1\right)>P\left(a_{j, i}\right)=p_{i} and P(aj,i1)>P(aj+1,i)=piP\left(a_{j, i}-1\right)>P\left(a_{j+1, i}\right)=p_{i}, this contradicts the requirement that P(aj,i+1),P(aj+1,i1){p1,,pd}P\left(a_{j, i}+1\right), P\left(a_{j+1, i}-1\right) \in\{p_{1}, \ldots, p_{d}\}. Hence m=aj,i+1m=a_{j, i}+1 or m=aj,i1m=a_{j, i}-1. Similarly, if m>ad,im>a_{d, i}, then m=ad,i+1m=a_{d, i}+1, but if m<a1,im<a_{1, i} (which may arise when dd is even), then m=a1,i1m=a_{1, i}-1. This shows that mm belongs to this list:
ad,i+1,ad1,i1,,a2,i+(1)d,a1,i(1)d a_{d, i}+1, a_{d-1, i}-1, \ldots, a_{2, i}+(-1)^{d}, a_{1, i}-(-1)^{d}
This list contains at most dd different integers. It follows in particular that, if ni+1>d2n_{i+1}>d-2, then either
P(ad,i+1)=pi+1=P(ad1,i1) P\left(a_{d, i}+1\right)=p_{i+1}=P\left(a_{d-1, i}-1\right)
or
P(a2,i+(1)d)=pi+1=P(a1,i(1)d) P\left(a_{2, i}+(-1)^{d}\right)=p_{i+1}=P\left(a_{1, i}-(-1)^{d}\right)
with, additionally, a2,i+(1)da1,i(1)da_{2, i}+(-1)^{d} \neq a_{1, i}-(-1)^{d}.

We have
P(a1,i±1)pi=1a1,i±1a2,ij=3da1,i±1aj,i \left|P\left(a_{1, i} \pm 1\right)-p_{i}\right|=1 \cdot\left|a_{1, i} \pm 1-a_{2, i}\right| \cdot \prod_{j=3}^{d}\left|a_{1, i} \pm 1-a_{j, i}\right|
and
P(a2,i1)pi=a2,i1a1,i1j=3da2,i1aj,i. \left|P\left(a_{2, i} \mp 1\right)-p_{i}\right|=\left|a_{2, i} \mp 1-a_{1, i}\right| \cdot 1 \cdot \prod_{j=3}^{d}\left|a_{2, i} \mp 1-a_{j, i}\right|.
As a1,i<a2,i<a3,i<<ad,ia_{1, i}<a_{2, i}<a_{3, i}<\ldots<a_{d, i} we have a1,i±1aj,ia2,i1aj,i\left|a_{1, i} \pm 1-a_{j, i}\right| \geq\left|a_{2, i} \mp 1-a_{j, i}\right| with equality possible only if a1,i+1=a2,i1a_{1, i}+1=a_{2, i}-1. We also have a1,i±1a2,i=a2,i1a1,i\left|a_{1, i} \pm 1-a_{2, i}\right|=\left|a_{2, i} \mp 1-a_{1, i}\right|, which can be zero only if a1,i+1=a2,i1a_{1, i}+1=a_{2, i}-1. We conclude that P(a1,i±1)pi>P(a2,i1)pi\left|P\left(a_{1, i} \pm 1\right)-p_{i}\right|>\left|P\left(a_{2, i} \mp 1\right)-p_{i}\right| or a1,i+1=a2,i1a_{1, i}+1=a_{2, i}-1.

Looking at the other end of the list of (aj,i)\left(a_{j, i}\right) as jj varies, we have
P(ad1,i1)pi=1ad1,i1ad,ij=1d2ad1,i1aj,i \left|P\left(a_{d-1, i}-1\right)-p_{i}\right|=1 \cdot\left|a_{d-1, i}-1-a_{d, i}\right| \cdot \prod_{j=1}^{d-2}\left|a_{d-1, i}-1-a_{j, i}\right|
and
P(ad,i+1)pi=ad,i+1ad1,i1j=1d2ad,i+1aj,i \left|P\left(a_{d, i}+1\right)-p_{i}\right|=\left|a_{d, i}+1-a_{d-1, i}\right| \cdot 1 \cdot \prod_{j=1}^{d-2}\left|a_{d, i}+1-a_{j, i}\right|
In these two formulas the shared factor outside the product is at least 2 and so is not 0. Now look at the factors behind the product symbols. As a1,i<a2,i<a3,i<<ad,ia_{1, i}<a_{2, i}<a_{3, i}<\ldots<a_{d, i}, for jd2j \leq d-2 we have ad,i+1aj,i>ad1,i1aj,i\left|a_{d, i}+1-a_{j, i}\right|>\left|a_{d-1, i}-1-a_{j, i}\right|. We conclude that P(ad,i+1)pi>P(ad1,i1)pi\left|P\left(a_{d, i}+1\right)-p_{i}\right|>\left|P\left(a_{d-1, i}-1\right)-p_{i}\right|. Claim 1 is proved.

For each i{1,,d1}i \in\{1, \ldots, d-1\}, there are three possibilities:
- ni,ni+1d1n_{i}, n_{i+1} \leq d-1
- ni=dn_{i}=d and ni+1d2n_{i+1} \leq d-2
- ni+1=dn_{i+1}=d and nid2n_{i} \leq d-2.
In all three cases, ni+ni+12(d1)n_{i}+n_{i+1} \leq 2(d-1). If nn is even, this leads to the contradiction
d2d+1=(n1+n2)++(nd1+nd)(d/2)[2(d1)]=d2d d^{2}-d+1=\left(n_{1}+n_{2}\right)+\cdots+\left(n_{d-1}+n_{d}\right) \leq(d / 2)[2(d-1)]=d^{2}-d
This is an important staging point in the argument because we have eliminated the possibility of a polynomial of even degree dd satisfying the conditions of the problem if d4d \geq 4.

From now on we assume that d5d \geq 5 is odd, and
d2d+1=(n1+n2)++(nd2+nd1)+nd[(d1)/2][2(d1)]+d=d2d+1. d^{2}-d+1=\left(n_{1}+n_{2}\right)+\cdots+\left(n_{d-2}+n_{d-1}\right)+n_{d} \leq[(d-1) / 2][2(d-1)]+d=d^{2}-d+1.
Equality must therefore hold throughout. Since the sum can also be grouped as
n1+(n2+n3)++(nd1+nd) n_{1}+\left(n_{2}+n_{3}\right)+\cdots+\left(n_{d-1}+n_{d}\right)
this requires n1=nd=d,ni+ni+1=2(d1)n_{1}=n_{d}=d, n_{i}+n_{i+1}=2(d-1) for i=1,2,,d1i=1,2, \ldots, d-1 i.e. ni=dn_{i}=d for odd ii and ni=d2n_{i}=d-2 for even ii.

We are interested in the degree of PP being d5d \geq 5 and odd, and showing that no polynomial PP satisfying the conditions of the problem can exist. There are d14d-1 \geq 4 extremal points which alternate between local maxima and minima (in that order) as you read from left to right (we normalize so that PP is monic). For any pip_{i} with ii odd, the line y=piy=p_{i} (with ii odd) crosses the graph of PP in dd places with xx-coordinates in the real closed interval [0,d2d][0, d^{2}-d] at points (z,pi)(z, p_{i}) so each zz must be an integer. Suppose that JJ is a real interval on the xx-axis ending at adjacent local extrema. The function defined by PP is monotonic on each JJ. The line y=piy=p_{i} (ii odd) meets the graph at most once on JJ. Therefore it meets the graph of PP exactly once in the interior of each JJ (there are d2d-2 such intervals) and at the only two possible places outside the union of these intervals.

Now consider pjp_{j} when jj is even (so nj=d2n_{j}=d-2). These d2d-2 intervals JJ afford d2d-2 real values at which PP will take pjp_{j} as a value where jj is fixed and even. The question is, are the corresponding arguments integers? The proof of Claim 1 tells us that in the middle of the run {0,1,,d2d+1}\{0,1, \ldots, d^{2}-d+1\} all is well: the polynomial is assuming the value pjp_{j} at an integer where the polynomial assumes the values pj1p_{j-1} and pj+1p_{j+1} at adjacent integers in some order. The problem is at the ends of the run where P(a1,i+1)pi>P(a2,i1)pi|P(a_{1, i}+1)-p_{i}|>|P(a_{2, i}-1)-p_{i}| and P(ad,i+1)pi>P(ad1,i1)pi|P(a_{d, i}+1)-p_{i}|>|P(a_{d-1, i}-1)-p_{i}|. When jj is even, two of the roots of P(x)pjP(x)-p_{j} are not integers, and we now know approximately where this trouble is happening (at the ends).

At this point we could finish if d7d \geq 7, because the run of regular behaviour in the middle is sufficiently long that we could obtain a contradiction. However we have to work a little harder to include the case d=5d=5. We now show that the run of regular behaviour is slightly longer than we have currently established. We do this using Claim 2.

Claim 2. If dd is odd, and ni=d,ni±1=d2n_{i}=d, n_{i \pm 1}=d-2 for some ii, then PP attains pi±1p_{i \pm 1} precisely at the d2d-2 integers
a2,i1,a3,i+1,,ad2,i1,ad1,i+1 a_{2, i}-1, a_{3, i}+1, \cdots, a_{d-2, i}-1, a_{d-1, i}+1
Proof Suppose (for contradiction) a1,i+1a2,i1a_{1, i}+1 \neq a_{2, i}-1 and P(a1,i+1)=pi+1P\left(a_{1, i}+1\right)=p_{i+1}. Now a1,i<a2,ia_{1, i}<a_{2, i} so either a1,i+1<a2,i1a_{1, i}+1<a_{2, i}-1 or a1,i=a2,i1a_{1, i}=a_{2, i}-1. In the latter case, P(a1,i+1)=P(a2,i)=piP\left(a_{1, i}+1\right)=P\left(a_{2, i}\right)=p_{i}, a contradiction. In the former case, the proof of Claim 1 shows that
P(a2,i1)pi<P(a1,i+1)pi=pi+1pi=pi+1pi |P(a_{2, i}-1)-p_{i}|<|P(a_{1, i}+1)-p_{i}|=|p_{i+1}-p_{i}|=p_{i+1}-p_{i}
so P(a2,i1)<pi+1P(a_{2, i}-1)<p_{i+1}. The polynomial is decreasing on the interval (a2,d,a2,1)(a_{2, d}, a_{2,1}) so pi<P(a2,i1)<pi+1p_{i}<P(a_{2, i}-1)<p_{i+1} which is absurd because P(a2,i1)=pjP(a_{2, i}-1)=p_{j} for some jj. Therefore P(a2,i1)=pi+1P(a_{2, i}-1)=p_{i+1} for all odd ii. A similar argument shows that P(ad1,i+1)=pi+1P(a_{d-1, i}+1)=p_{i+1} so Claim 2 is established.

Now we have a sequence of alternating falling then rising then falling etc. full runs starting at (a2,d,pd)(a_{2, d}, p_{d}) and ending at (ad1,1,p1)(a_{d-1,1}, p_{1}) so the initial run of 3d+13d+1 terms of this run of values is
pd,pd1,p1,p1,p2,,pd,pd,pd1,p1,p1 p_{d}, p_{d-1}, \cdots p_{1}, p_{1}, p_{2}, \ldots, p_{d}, p_{d}, p_{d-1}, \cdots p_{1}, p_{1}
which starts at (a2,d,pd)(a_{2, d}, p_{d}) and ends at (a4,1+1,p1)(a_{4,1}+1, p_{1}) which is fine because 4d14 \leq d-1.

There are now various ways we can finish.

(a) Consider the run of length 2d2d consecutive values
pd,pd1,p1,p1,p2,,pd p_{d}, p_{d-1}, \cdots p_{1}, p_{1}, p_{2}, \ldots, p_{d}
The first d+1d+1 points determine P(x)P(x). The last d+1d+1 values also determine PP but the values are in the reverse order, so P(X)=P(cX)P(X)=P(c-X) for some constant cc. However, the coefficients of XdX^{d} have opposite signs (dd is odd) so this is absurd.

(b) The idea in (a) can be expressed in terms of Lagrange interpolation to obtain essentially the same contradiction. Construct PP in two ways using Lagrange interpolation on both the first d+1d+1 and the last d+1d+1 points. The symmetry in the data forces the graph of PP to have a vertical axis of symmetry. This is absurd because the degree of PP is odd.

(c) The initial fragment length 3d+13d+1 mentioned above at ()(*) includes two identical runs of values of PP (in the same order) of length d+1d+1. The polynomial PP is determined by each of them and so P(X)=P(X+c)P(X)=P(X+c) for some constant cc and so the polynomial defines a bounded function which is absurd.

Therefore, the only possible values are d=1,2,3d=1,2,3.

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 reproduced verbatim; metadata (topic, difficulty) added by this project.