First we claim that p:R(f)→R(f) is a surjective function, where by R(f) we mean the range of the function f.
y∈R(f)⇒∃x0∈R;f(x0)=y⇒p(y)=p(f(x0))=f(p(x0))⇒p(y)∈R(f)
---
So p:R(f)→R(f) is indeed a function. Let y∈R(f) be an arbitrary element. Thus, there is some x0∈R such that f(x0)=y. Note that since p has odd degree there is z∈R such that p(z)=x0 and therefore,
y=f(x0)=f(p(z))=p(f(z))
It means that y is the image of f(z)∈R(f) under p and so p:R(f)→R(f) is surjective.
a) Assume to the contrary that R(f) is not finite. Since deg(P) is odd we can find N>0 such that
x>N⇒p(x)>x,x<−N⇒p(x)<x
If R(f) contains infinitely many positive and infinitely many negative elements, we can choose x0,y0∈R(f) such that y0<−N<N<x0. Note that an element b∈p−1(a), where a∈R(f)∩[y0,x0] must be in R(f)∩[y0,x0]. Because if b<y0, then p(b)=a<b<y0 and if x0<b, then p(b)=a>b>x0 which are not possible. On the other hand, f(x0)>x0 and f(y0)<y0. Now since R(f)∩[y0,x0] is a finite set (all its elements are integers), there must be some element which is not covered by elements of R(f) under p and this contradicts because p:R(f)→R(f) was surjective. The argument in the case which R(f) contains only finitely many positive or negative integers are similar.
b) Since deg(p(x))>1 is an odd number, p(x)−x has odd degree. Therefore, it has at least one real root x0. Suppose that this polynomial has no real root other than x0. Thus, p(x)>x for x>x0 and p(x)<x for x<x0.
On the other hand, we have p(f(x0))=f(p(x0))=f(x0) and since x0 was the unique solution of p(x0)=x0, we get f(x0)=x0. Suppose that R(f)={x−m<⋯<x−1<x0<x1<⋯<xn}. If n>0, p(xn)>xn and this contradicts because p(R(f))⊆R(f). So n=0. Similarly, m=0 and therefore, ∣R(f)∣=1. But we assumed that ∣R(f)∣≥2.
c) Suppose that z,y1,…,ym are n=m+1 arbitrary distinct integers. Using Lagrange Interpolation, we can find a polynomial p(x)∈R[x] such that
p(z)=z,p(y1)=y2,p(y2)=y3,…,p(ym)=y1
If it is necessary by changing xk(x−z)(x−y1)⋯(x−ym)+p(x) with p(x) (k∈N), we can assume that p is a monic polynomial of odd degree. Now we define function f as follows. If there is some integer k≥0 and 1≤i≤m such that pk(x)=yi, set f(x)=yi−k (Indices are assumed to be modulo m). Note that if pk1(x)=yi and pk2(x)=yj, yi−k1=yj−k2. Thus, there is no ambiguity in the definition. Otherwise, define f(x)=z. We claim that this definition satisfies problem statement.
* If f(x)=yi, there is some integer k such that pk(x)=yi+k. Now pk(p(x))=p(yi+k)=yi+k+1 and so f(p(x))=yi+k+1−k=yi+1=p(yi)=p(f(x)).
* If f(x)=z, then obviously f(p(x))=z and so f(p(x))=z=p(z)=p(f(x)).
Therefore, the proof is complete.