Maths Olympiad Prep

Library / /9 of 9

, 2019

Algebra Difficulty 6.5 National Olympiad Prove it United States

Problem:
Let p>2p > 2 be a prime number. Fp[x]\mathbb{F}_p[x] is defined as the set of all polynomials in xx with coefficients in Fp\mathbb{F}_p (the integers modulo pp with usual addition and subtraction), so that two polynomials are equal if and only if the coefficients of xkx^k are equal in Fp\mathbb{F}_p for each nonnegative integer kk. For example, (x+2)(2x+3)=2x2+2x+1(x+2)(2x+3) = 2x^2 + 2x + 1 in F5[x]\mathbb{F}_5[x] because the corresponding coefficients are equal modulo 55.
Let f,gFp[x]f, g \in \mathbb{F}_p[x]. The pair (f,g)(f, g) is called compositional if
f(g(x))xp2x f(g(x)) \equiv x^{p^2} - x
in Fp[x]\mathbb{F}_p[x]. Find, with proof, the number of compositional pairs (in terms of pp).

Solutions — 2

Solution 1

Solution:
Answer: 4p(p1)4p(p-1)

First, notice that (degf)(degg)=p2(\operatorname{deg} f)(\operatorname{deg} g) = p^{2} and both polynomials are clearly nonconstant. Therefore there are three possibilities for the ordered pair (degf,degg)(\operatorname{deg} f, \operatorname{deg} g), which are (1,p2)(1, p^{2}), (p2,1)(p^{2}, 1), and (p,p)(p, p).

In the subsequent parts of the solution, equalities are modulo pp. If f(x)=ax+bf(x) = a x + b, a0a \neq 0 is linear, then it is invertible so then gg is uniquely determined as g(x)=f1(f(g(x)))=xp2xbag(x) = f^{-1}(f(g(x))) = \frac{x^{p^{2}} - x - b}{a}. Similarly, if g(x)=cx+dg(x) = c x + d, c0c \neq 0 (modp)(\bmod p) is linear then ff is uniquely determined as f(x)=f(g(g1(x)))=(xdc)p2(xdc)f(x) = f\left(g\left(g^{-1}(x)\right)\right) = \left(\frac{x-d}{c}\right)^{p^{2}} - \left(\frac{x-d}{c}\right). In each case there are p(p1)p(p-1) compositional pairs.

The last case is degf=degg=p\operatorname{deg} f = \operatorname{deg} g = p. We take the derivative of both sides (we use the formal derivative Dxf(x)=n1nfnxn1D_{x} f(x) = \sum_{n \geq 1} n f_{n} x^{n-1}, which satisfies the usual chain and product rules but can be used on arbitrary polynomials, including those in Fp[x]\mathbb{F}_p[x]).

Thus
f(g(x))g(x)=p2xp211=1, f'(g(x)) g'(x) = p^{2} x^{p^{2}-1} - 1 = -1,
using that p=0p = 0 in Fp\mathbb{F}_p. Now g(x)g'(x) and f(g(x))f'(g(x)) must both be constant polynomials. Since gg is nonconstant, this means that f(x)f'(x) is also a constant polynomial. We must be careful here, as unlike in R\mathbb{R}, nonlinear polynomials can have constant derivatives. From the formula of derivative, we see that h(x)=0h'(x) = 0 as a polynomial exactly when h(x)h(x) is a linear combination of 1,xp,x2p,1, x^{p}, x^{2p}, \ldots (remember that p=0p = 0). Thus f,gf', g' both being constant and f,gf, g being of degree pp tells us
f(x)=axp+bx+c,g(x)=dxp+ex+f f(x) = a x^{p} + b x + c, \quad g(x) = d x^{p} + e x + f
where a,b,c,d,e,fa, b, c, d, e, f are some elements of Fp\mathbb{F}_p. Now we must have
a(dxp+ex+f)p+b(dxp+ex+f)+c=xp2x a\left(d x^{p} + e x + f\right)^{p} + b\left(d x^{p} + e x + f\right) + c = x^{p^{2}} - x
over Fp[x]\mathbb{F}_p[x]. We use the fact that (x+y)p=xp+yp(x+y)^{p} = x^{p} + y^{p} as polynomials in Fp\mathbb{F}_p, since the binomial coefficients (pj)0(modp)\binom{p}{j} \equiv 0 (\bmod p) for 1jp11 \leq j \leq p-1. This implies (x+y+z)p=xp+yp+zp(x+y+z)^{p} = x^{p} + y^{p} + z^{p}. Therefore we can expand the previous equation as
a(dpxp2+epxp+fp)+b(dxp+ex+f)+c=xp2x. a\left(d^{p} x^{p^{2}} + e^{p} x^{p} + f^{p}\right) + b\left(d x^{p} + e x + f\right) + c = x^{p^{2}} - x.
Equating coefficients, we see that
adp=1,aep+bd=0,be=1,afp+bf+c=0. \begin{aligned} a d^{p} & = 1, \\ a e^{p} + b d & = 0, \\ b e & = -1, \\ a f^{p} + b f + c & = 0. \end{aligned}
The first and third equations imply that a,d,b,ea, d, b, e are nonzero (modp)(\bmod p) and a=dpa = d^{-p}, b=e1b = -e^{-1}. Then aep+bd=0a e^{p} + b d = 0 gives
dpepe1d=0 d^{-p} e^{p} - e^{-1} d = 0
or ep+1=dp+1e^{p+1} = d^{p+1}. Recalling that ep1=dp1=1e^{p-1} = d^{p-1} = 1 in (modp)(\bmod p), this tells us d2=e2d^{2} = e^{2} so d=±ed = \pm e. Furthermore, any choice of such (d,e)(d, e) give unique (a,b)(a, b) which satisfy the first three equations. Finally, once we have determined a,b,d,ea, b, d, e, any choice of ff gives a unique valid choice of cc.
Thus we have p1p-1 choices for dd, two choices for ee after choosing dd (n.b. for p=2p=2 there is only one choice for ee, so the assumption p>2p>2 is used here), and then pp choices for ff, for a total of 2p(p1)2p(p-1) compositional pairs in this case.

Finally, adding the number of compositional pairs from all three cases, we obtain 4p(p1)4p(p-1) compositional pairs in total.

Solution 2

Solution:
The key step is obtaining
f(x)=axp+bx+c,g(x)=dxp+ex+f f(x) = a x^{p} + b x + c, \quad g(x) = d x^{p} + e x + f
in the case where degf=degg=p\operatorname{deg} f = \operatorname{deg} g = p. We present an alternative method of obtaining this, with the rest of the solution being the same as the first solution. Let
f(x)=fpxp+fp1xp1++f0g(x)=gpxp+gp1xp1++g0 \begin{aligned} & f(x) = f_{p} x^{p} + f_{p-1} x^{p-1} + \cdots + f_{0} \\ & g(x) = g_{p} x^{p} + g_{p-1} x^{p-1} + \cdots + g_{0} \end{aligned}
where fp,gpf_{p}, g_{p} are nonzero. Like before, we have g(x)p=g(xp)g(x)^{p} = g\left(x^{p}\right) in Fp[x]\mathbb{F}_p[x], so
xp2x=fpg(xp)+fp1g(x)p1++f0 x^{p^{2}} - x = f_{p} g\left(x^{p}\right) + f_{p-1} g(x)^{p-1} + \cdots + f_{0}
Consider the maximal k<pk < p for which fk0f_{k} \neq 0. (It is not hard to see that in fact k1k \geq 1, as fpg(xp)+f0f_{p} g\left(x^{p}\right) + f_{0} cannot be xp2xx^{p^{2}} - x.) First assume that k>1k > 1. We look at the xkp1x^{k p - 1} coefficient, which is affected only by the fkg(x)kf_{k} g(x)^{k} term. By expanding, the coefficient is kfkgpk1gp1k f_{k} g_{p}^{k-1} g_{p-1}. Therefore gp1=0g_{p-1} = 0. Then we look at the xkp2x^{k p - 2} coefficient, then the xkp3x^{k p - 3} coefficient, etc. down to the xkpp+1x^{k p - p + 1} coefficient to conclude that gp1=gp2==g1=0g_{p-1} = g_{p-2} = \cdots = g_{1} = 0. However, then the xx coefficient of f(g(x))f(g(x)) is zero, contradiction.

Therefore we must have k=1k = 1, so ff is of the form axp+bx+ca x^{p} + b x + c. Using the same method as we used when k>1k > 1, we get gp1=gp2==g2=0g_{p-1} = g_{p-2} = \cdots = g_{2} = 0, though the xkpp+1x^{k p - p + 1} coefficient is now the xx coefficient which we want to be nonzero. Hence we do not obtain g1=0g_{1} = 0 anymore and we find that gg is of the form dxp+ex+fd x^{p} + e x + f.

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.