Difference between revisions of "Remainder"
Line 3: | Line 3: | ||
The concept of a remainder is related to [[modular arithmetic]]: <math>r</math> is said to be the [[residue class]] of <math>a</math> in modulo <math>b</math> [[iff]] <math>a = qb + r</math> (an equivalent statement would be <math>a \equiv r \mod b</math>). | The concept of a remainder is related to [[modular arithmetic]]: <math>r</math> is said to be the [[residue class]] of <math>a</math> in modulo <math>b</math> [[iff]] <math>a = qb + r</math> (an equivalent statement would be <math>a \equiv r \mod b</math>). | ||
+ | |||
It is important to notice that the remainder is most useful when an integer quotient is desired, as we can always say that <math>a = qb</math> for any [[real number]] <math>q</math> (in the example provided earlier, <math>q = 1.\overline{3}</math>). | It is important to notice that the remainder is most useful when an integer quotient is desired, as we can always say that <math>a = qb</math> for any [[real number]] <math>q</math> (in the example provided earlier, <math>q = 1.\overline{3}</math>). | ||
{{stub}} | {{stub}} |
Revision as of 17:43, 17 June 2008
The remainder of a division of two integers is the integer such that , where is the quotient; in other words, is the part of that is not divisible by . If , and , for example, the division would have remainder , since (notice that the quotient, in this case, is one). If is a divisor of , the remainder is said to be zero.
The concept of a remainder is related to modular arithmetic: is said to be the residue class of in modulo iff (an equivalent statement would be ).
It is important to notice that the remainder is most useful when an integer quotient is desired, as we can always say that for any real number (in the example provided earlier, ).
This article is a stub. Help us out by expanding it.