D
Dik T. Winter
> In article <[email protected]>,
>
> ... because 0xb6db6db7 * 7 is 0x500000001, so 7y * 0xb6db6db7 is
> y * 0x500000001, which is congruent to y mod 2^32.
This works indeed works for multiples of 7. The same technique can
be used for all odd numbers.