A Computer Algorithm for Calculating the Product AB Modulo M
Blakely · IEEE Transactions on Computers · 1983
It is possible to find the smallest nonnegative integer R congruent modulo M to the product AB of two nonnegative integers without dividing by M. In multiple precision arithmetic, doing away with the division cuts the calculation time by varying amounts, depending on machine architecture. It also cuts storage space.