Find all positive integers for which there exists a polynomial such that for every positive integer , the numbers leave exactly distinct remainders when divided by . (Here, means applied times.)
*
Find all positive integers for which there exists a polynomial such that for every positive integer , the numbers leave exactly distinct remainders when divided by . (Here, means applied times.)
*
Consider the problem of finding all positive integers such that there exists a polynomial meeting the specified condition: for every positive integer , the sequence produces exactly distinct remainders when divided by . Here, denotes iterated times.
### Step 1: Analyze the Condition
For a given , the problem requires that the application of the polynomial , repeated times, transforms into numbers producing specified distinct residues modulo .
### Step 2: Consider the Case where is a Prime
1. If is a prime, then the polynomial might simplify structuring on , potentially allowing to have the necessary property of splitting the image set into exactly different values for any iteration .
2. Since is prime, every non-zero residue in can appear up to 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
1. If , the binary division by powers of 2 simplifies to subsequent fixed factors. It allows (a constant polynomial) to iterate in a manner that naturally breaks into , simplifying into manageable binary expression splits.
2. Each iteration 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 is either a prime number or a power of 2 can the polynomial be constructed to satisfy the designated residue conditions for all .
Thus, the set of all positive integers fulfilling the condition are: