If , choose with by the Bezout identity. The Lagrange theorem gives for every , so and . Thus is bijective, even though it need not be a homomorphism.
Conversely, if a prime divides both and , the Cauchy theorem for groups gives with . Then , so the power map sends both and the identity to the identity and is not injective. This proves the power-map criterion for a finite group.
The Bezout identity states that for integers , not both zero, there are integers such that
If the prime number divides but does not divide , then . Thus for some integers , and multiplication by gives
Both terms on the right are divisible by , so . Hence
If , choose with . Then
satisfies and . If are two simultaneous solutions, both and divide . Coprimality implies , so the solution is unique modulo . This proves the two-modulus Chinese remainder theorem.
Let be odd and suppose
Then . Since divides , the odd prime cannot divide both factors. The full power must therefore divide one of them, giving
These are distinct, so there are exactly two solutions.
For an odd integer
the Chinese remainder theorem identifies a solution modulo with independent solutions modulo the prime powers. Each component has two choices, hence
For , there is one solution when and two when . If , a solution is odd, and of the consecutive even integers , exactly one is divisible by . The 2-adic valuations therefore have minimum one; for their sum to be at least , the other must be at least . Thus , giving the four distinct classes
Consequently the answer is
The Lagrange theorem for polynomial congruences says that if is prime and has degree with at least one coefficient not divisible by , then
has at most incongruent solutions modulo .
The Chinese remainder theorem states that for pairwise coprime , every system
has exactly one solution modulo . For two moduli, choose with by Bezout identity. Then
is congruent to modulo and to modulo . If are two solutions, both and divide ; coprimality makes divide . This proves existence and uniqueness for two factors, and induction proves the general statement.
Now
and , so is a solution. For , one has , so no such positive integer can satisfy the congruence. Hence the smallest is
Modulo , the roots are respectively
Each list has three elements, and the Chinese remainder theorem combines the choices independently. Therefore the number of solutions with is
Let and . By the Chinese remainder theorem, , so .
If a positive-degree monomial contains both and with , then it vanishes: Bezout identity gives , while both and annihilate that monomial. Thus the degree- component for is
and every summand has length one. Hence every has length , including , and