this ambiguity in the value of the remainder is not very serious; in the case above, the negative remainder is obtained from the positive one just by subtracting 5, which is "d". this holds in general. when dividing by "d", if the positive remainder is "r"1, and the negative one is "r"2, then