Good Divisors
The divisor p should be as small as possible in order to minimize the length of the table. Since the divisor must generate n distinct remainders, the divisor will certainly need to be at least n. A remainder of zero, however, can occur only if the divisor is a power of
j
- If the divisor is a small power of 2, say 2 for j < n-1, it will not generate n distinct remainders; if the divisor is a larger power of
n-1 n
2, the correspondence table is either 2 or 2 in length. We can thus rule out zero as a remainder value, so the divisor must be at least one more than the word length. This bound is in fact achieved for some word lengths.
Let R(p) be the number of distinct remainders p generates when divided into successively higher powers of 2. The distinct remainders all occur for the R(p) lowest powers of 2. Only odd p are interesting and the following table gives R(p) for odd p between 1 and 21.
p R(p) p R(p)
1 1 13 12
3 2 15 4
5 4 17 8
7 3 19 18
9 6 21 6
11 10
This table shows that 7, 15, 17 and 21 are useless divisors because there are smaller divisors which generate a larger number of distinct remainders. If we limit our attention to p such that p > p' => R(p) > R(p'), we obtain the following table of useful divisors for p < 100.
p R(p) p R(p)
1 1 29 28
3 2 37 36
5 4 53 52
9 6 59 58
11 10 61 60
13 12 67 66
19 18 83 82
25 20
Notice that 9 and 25 are useful divisors even though they generate only 6 and 20 remainders, respectively.