Maths Olympiad Prep

Track / Stage 5 / 251 of 400 #851 of 1964

Problem 851

AIME late
Number theory Difficulty 5.6 Find the answer

Let pp be a prime number. How many monic polynomials are there in Z/pZ\mathbb{Z} / p \mathbb{Z} of degree p2p-2 that have exactly p2p-2 distinct roots, and whose coefficients are all distinct and non-zero?

## Irreducibility

##

The translation is provided as requested, maintaining the original text's line breaks and format.

A number or a short expression. Spacing and $ signs are ignored.

Official solution

Let PP be a polynomial satisfying the statement. PP cannot have 0 as a root, so PP has all roots between 1 and p1p-1, except 1, denoted by aa. Thus,

Pa(X)=Xp11Xa=Xp1ap1Xa=Xp2+aXp3++ap2 P_{a}(X)=\frac{X^{p-1}-1}{X-a}=\frac{X^{p-1}-a^{p-1}}{X-a}=X^{p-2}+a X^{p-3}+\cdots+a^{p-2}

Among the p1p-1 candidates to satisfy the statement, it remains to verify those that have pairwise distinct non-zero coefficients. If PaP_{a} has pairwise distinct coefficients, then since PaP_{a} is monic, the order of aa modulo pp is at least p1p-1, so by Fermat, the order is exactly p1p-1. In particular, aa is a primitive root. Conversely, if aa is a primitive root, 1,a,,ap21, a, \ldots, a^{p-2} are distinct modulo pp, so PaP_{a} works.

Thus, there are as many polynomials as there are primitive roots modulo pp, i.e., ϕ(p1)\phi(p-1).

Source: NuminaMath-1.5, licensed Apache-2.0. Statement and solution reproduced as published; topic, difficulty and ordering added by this site.