Maths Olympiad Prep

Library / /116 of 144

Algebra Difficulty 8.7 Shortlist Find the answer

Find all positive integers nn for which there exists a polynomial P(x)Z[x]P(x) \in \mathbb{Z}[x] such that for every positive integer m1m\geq 1, the numbers Pm(1),,Pm(n)P^m(1), \ldots, P^m(n) leave exactly n/2m\lceil n/2^m\rceil distinct remainders when divided by nn. (Here, PmP^m means PP applied mm times.)

*

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

Solution

Consider the problem of finding all positive integers n n such that there exists a polynomial P(x)Z[x] P(x) \in \mathbb{Z}[x] meeting the specified condition: for every positive integer m1 m \geq 1 , the sequence Pm(1),Pm(2),,Pm(n) P^m(1), P^m(2), \ldots, P^m(n) produces exactly n2m\left\lceil \frac{n}{2^m} \right\rceil distinct remainders when divided by n n . Here, Pm P^m denotes P P iterated m m times.

### Step 1: Analyze the Condition

For a given n n , the problem requires that the application of the polynomial P P , repeated m m times, transforms 1,2,,n 1, 2, \ldots, n into numbers producing specified distinct residues modulo n n .

### Step 2: Consider the Case where n n is a Prime

1. If n n is a prime, then the polynomial P P might simplify structuring on Z/nZ \mathbb{Z}/n\mathbb{Z} , potentially allowing P(x)xkmodn P(x) \equiv x^k \mod n to have the necessary property of splitting the image set into exactly n2m\left\lceil \frac{n}{2^m} \right\rceil different values for any iteration m m .
2. Since n n is prime, every non-zero residue in Z/nZ \mathbb{Z}/n\mathbb{Z} can appear up to n1 n - 1 times. Such behavior aligns well with producing the required distinct remainders when compiled and reduced by powers of 2, as shown by ceiling divisions.

### Step 3: Consider the Case where n=2k n = 2^k

1. If n=2k n = 2^k , the binary division by powers of 2 simplifies to subsequent fixed factors. It allows P(x)x+c P(x) \equiv x+c (a constant polynomial) to iterate in a manner that naturally breaks into 2k2m\left\lceil \frac{2^k}{2^m} \right\rceil, simplifying into manageable binary expression splits.
2. Each iteration m m reduces the effective set size by half, aligning adequately with the required number of distinct residues.

### Conclusion

Analyzing both scenarios, it becomes evident that only when n n is either a prime number or a power of 2 can the polynomial P(x) P(x) be constructed to satisfy the designated residue conditions for all m1 m \geq 1 .

Thus, the set of all positive integers n n fulfilling the condition are:
prime n and n=2k \boxed{\text{prime } n \text{ and } n = 2^k}

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: Omni-MATH, licensed Apache-2.0. Statement and solution reproduced as published; topic and difficulty added by this site.