July 2002
Intermediate to advanced
320 pages
8h 15m
English
The multiplicative inverse of a divisor d can be used to test for a zero remainder after division by d [GM].
First, consider unsigned division with the divisor d odd. Denote by d¯ the multiplicative inverse of d. Then, because dd¯ ≡ 1 (mod 2W), where W is the machine’s word size in bits, d¯ is also odd. Thus, d¯ is relatively prime to 2W, and as shown in the proof of theorem MI in the preceding section, as n ranges over all 2W distinct values modulo 2W, nd¯ takes on all 2W distinct values modulo 2W.
It was shown in the preceding section that if n is a multiple of d,
![]()
That is, ...
Read now
Unlock full access