Problem:
Let be a prime number. is defined as the set of all polynomials in with coefficients in (the integers modulo with usual addition and subtraction), so that two polynomials are equal if and only if the coefficients of are equal in for each nonnegative integer . For example, in because the corresponding coefficients are equal modulo .
Let . The pair is called compositional if
in . Find, with proof, the number of compositional pairs (in terms of ).
, 2019
Solutions — 2
Solution 1
Solution:
Answer:
First, notice that and both polynomials are clearly nonconstant. Therefore there are three possibilities for the ordered pair , which are , , and .
In the subsequent parts of the solution, equalities are modulo . If , is linear, then it is invertible so then is uniquely determined as . Similarly, if , is linear then is uniquely determined as . In each case there are compositional pairs.
The last case is . We take the derivative of both sides (we use the formal derivative , which satisfies the usual chain and product rules but can be used on arbitrary polynomials, including those in ).
Thus
using that in . Now and must both be constant polynomials. Since is nonconstant, this means that is also a constant polynomial. We must be careful here, as unlike in , nonlinear polynomials can have constant derivatives. From the formula of derivative, we see that as a polynomial exactly when is a linear combination of (remember that ). Thus both being constant and being of degree tells us
where are some elements of . Now we must have
over . We use the fact that as polynomials in , since the binomial coefficients for . This implies . Therefore we can expand the previous equation as
Equating coefficients, we see that
The first and third equations imply that are nonzero and , . Then gives
or . Recalling that in , this tells us so . Furthermore, any choice of such give unique which satisfy the first three equations. Finally, once we have determined , any choice of gives a unique valid choice of .
Thus we have choices for , two choices for after choosing (n.b. for there is only one choice for , so the assumption is used here), and then choices for , for a total of compositional pairs in this case.
Finally, adding the number of compositional pairs from all three cases, we obtain compositional pairs in total.
Solution 2
Solution:
The key step is obtaining
in the case where . We present an alternative method of obtaining this, with the rest of the solution being the same as the first solution. Let
where are nonzero. Like before, we have in , so
Consider the maximal for which . (It is not hard to see that in fact , as cannot be .) First assume that . We look at the coefficient, which is affected only by the term. By expanding, the coefficient is . Therefore . Then we look at the coefficient, then the coefficient, etc. down to the coefficient to conclude that . However, then the coefficient of is zero, contradiction.
Therefore we must have , so is of the form . Using the same method as we used when , we get , though the coefficient is now the coefficient which we want to be nonzero. Hence we do not obtain anymore and we find that is of the form .