Contents 1 Integer division 2 Examples 3 For floating-point numbers 4 In programming languages 5 Polynomial division 6 See also 7 Notes 8 References 9 Further reading

Integer division[edit] If a and d are integers, with d non-zero, it can be proven that there exist unique integers q and r, such that a = qd + r and 0 ≤ r < |d|. The number q is called the quotient, while r is called the remainder. See Euclidean division for a proof of this result and division algorithm for algorithms describing how to calculate the remainder. The remainder, as defined above, is called the least positive remainder or simply the remainder.[2] The integer a is either a multiple of d or lies in the interval between consecutive multiples of d, namely, q⋅d and (q + 1)d (for positive q). At times it is convenient to carry out the division so that a is as close as possible to an integral multiple of d, that is, we can write a = k⋅d + s, with |s| ≤ |d/2| for some integer k. In this case, s is called the least absolute remainder.[3] As with the quotient and remainder, k and s are uniquely determined except in the case where d = 2n and s = ± n. For this exception we have, a = k⋅d + n = (k + 1)d − n. A unique remainder can be obtained in this case by some convention such as always taking the positive value of s.

Examples[edit] In the division of 43 by 5 we have: 43 = 8 × 5 + 3, so 3 is the least positive remainder. We also have, 43 = 9 × 5 − 2, and −2 is the least absolute remainder. These definitions are also valid if d is negative, for example, in the division of 43 by −5, 43 = (−8) × (−5) + 3, and 3 is the least positive remainder, while, 43 = (−9) × (−5) + (−2) and −2 is the least absolute remainder. In the division of 42 by 5 we have: 42 = 8 × 5 + 2, and since 2 < 5/2, 2 is both the least positive remainder and the least absolute remainder. In these examples, the (negative) least absolute remainder is obtained from the least positive remainder by subtracting 5, which is d. This holds in general. When dividing by d, either both remainders are positive and therefore equal, or they have opposite signs. If the positive remainder is r1, and the negative one is r2, then r1 = r2 + d.

For floating-point numbers[edit] When a and d are floating-point numbers, with d non-zero, a can be divided by d without remainder, with the quotient being another floating-point number. If the quotient is constrained to being an integer, however, the concept of remainder is still necessary. It can be proved that there exists a unique integer quotient q and a unique floating-point remainder r such that a = qd + r with 0 ≤ r < |d|. Extending the definition of remainder for floating-point numbers as described above is not of theoretical importance in mathematics; however, many programming languages implement this definition, see modulo operation.

In programming languages[edit] Main article: Modulo operation While there are no difficulties inherent in the definitions, there are implementation issues that arise when negative numbers are involved in calculating remainders. Different programming languages have adopted different conventions: Pascal chooses the result of the mod operation positive, but does not allow d to be negative or zero (so, a = (a div d ) × d + a mod d is not always valid).[4] C99 chooses the remainder with the same sign as the dividend a. (Before C99, the C language allowed other choices.) Perl, Python (only modern versions), and Common Lisp choose the remainder with the same sign as the divisor d. Haskell and Scheme offer two functions, remainder and modulo – PL/I has mod and rem, while Fortran has mod and modulo; in each case, the former agrees in sign with the dividend, and the latter with the divisor.

Polynomial division[edit] Main article: Euclidean division of polynomials Euclidean division of polynomials is very similar to Euclidean division of integers and leads to polynomial remainders. Its existence is based on the following theorem: Given two univariate polynomials a(x) and b(x) (with b(x) not the zero polynomial) defined over a field (in particular, the reals or complex numbers), there exist two polynomials q(x) (the quotient) and r(x) (the remainder) which satisfy:[5] a ( x ) = b ( x ) q ( x ) + r ( x ) {\displaystyle a(x)=b(x)q(x)+r(x)} where deg ⁡ ( r ( x ) ) < deg ⁡ ( b ( x ) ) , {\displaystyle \deg(r(x))<\deg(b(x)),} where "deg(...)" denotes the degree of the polynomial (the degree of the constant polynomial whose value is always 0 is defined to be negative, so that this degree condition will always be valid when this is the remainder.) Moreover, q(x) and r(x) are uniquely determined by these relations. This differs from the Euclidean division of integers in that, for the integers, the degree condition is replaced by the bounds on the remainder r (non-negative and less than the divisor, which insures that r is unique.) The similarity of Euclidean division for integers and also for polynomials leads one to ask for the most general algebraic setting in which Euclidean division is valid. The rings for which such a theorem exists are called Euclidean domains, but in this generality uniqueness of the quotient and remainder are not guaranteed.[6] Polynomial division leads to a result known as the Remainder theorem: If a polynomial f(x) is divided by x − k, the remainder is the constant r = f(k).[7]

See also[edit] Chinese remainder theorem Divisibility rule Egyptian multiplication and division Euclidean algorithm Long division Modular arithmetic Polynomial long division Taylor's theorem

Notes[edit] ^ Smith 1958, p. 97 ^ Ore 1988, p. 30. But if the remainder is 0, it is not positive, even though it is called a "positive remainder". ^ Ore 1988, p. 32 ^ Pascal ISO 7185:1990 ^ Larson & Hostetler 2007, p. 154 ^ Rotman 2006, p. 267 ^ Larson & Hostetler 2007, p. 157

References[edit] Larson, Ron; Hostetler, Robert (2007), Precalculus:A Concise Course, Houghton Mifflin, ISBN 978-0-618-62719-6  Ore, Oystein (1988) [1948], Number Theory and Its History, Dover, ISBN 978-0-486-65620-5  Rotman, Joseph J. (2006), A First Course in Abstract Algebra with Applications (3rd ed.), Prentice-Hall, ISBN 978-0-13-186267-8  Smith, David Eugene (1958) [1925], History of Mathematics, Volume 2, New York: Dover, ISBN 0486204308 

Further reading[edit] Davenport, Harold (1999). The higher arithmetic: an introduction to the theory of numbers. Cambridge, UK: Cambridge University Press. p. 25. ISBN 0-521-63446-6.  Katz, Victor, ed. (2007). The mathematics of Egypt, Mesopotamia, China, India, and Islam : a sourcebook. Princeton: Princeton University Press. ISBN 9780691114859.  Schwartzman, Steven (1994). "remainder (noun)". The words of mathematics : an etymological dictionary of mathematical terms used in english. Washington: Mathematical Association of America. ISBN 9780883855119.  Zuckerman, Martin M. Arithmetic: A Straightforward Approach. Lanham, Md: Rowman & Littlefield Publishers, Inc. ISBN 0-912675-07-1.  Retrieved from "" Categories: Division (mathematics)Number theoryHidden categories: Pages using div col without cols and colwidth parameters

Navigation menu Personal tools Not logged inTalkContributionsCreate accountLog in Namespaces ArticleTalk Variants Views ReadEditView history More Search Navigation Main pageContentsFeatured contentCurrent eventsRandom articleDonate to WikipediaWikipedia store Interaction HelpAbout WikipediaCommunity portalRecent changesContact page Tools What links hereRelated changesUpload fileSpecial pagesPermanent linkPage informationWikidata itemCite this page Print/export Create a bookDownload as PDFPrintable version Languages العربيةБългарскиCatalàČeštinaChiShonaEspañolEsperantoEuskaraفارسیFrançais한국어IdoItalianoҚазақшаNederlandsNorsk nynorskPortuguêsRomânăРусскийSicilianuSimple EnglishSuomiதமிழ்ไทยTürkçeУкраїнська中文 Edit links This page was last edited on 20 October 2017, at 00:50. Text is available under the Creative Commons Attribution-ShareAlike License; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization. Privacy policy About Wikipedia Disclaimers Contact Wikipedia Developers Cookie statement Mobile view (window.RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgPageParseReport":{"limitreport":{"cputime":"0.128","walltime":"0.198","ppvisitednodes":{"value":642,"limit":1000000},"ppgeneratednodes":{"value":0,"limit":1500000},"postexpandincludesize":{"value":17565,"limit":2097152},"templateargumentsize":{"value":190,"limit":2097152},"expansiondepth":{"value":7,"limit":40},"expensivefunctioncount":{"value":0,"limit":500},"entityaccesscount":{"value":0,"limit":400},"timingprofile":["100.00% 130.527 1 -total"," 36.06% 47.072 4 Template:Citation"," 17.92% 23.392 1 Template:Other_uses"," 9.40% 12.276 6 Template:Harvnb"," 7.34% 9.583 1 Template:Div_col"," 6.99% 9.118 3 Template:Cite_book"," 5.95% 7.767 1 Template:Calculation_results"," 4.03% 5.254 1 Template:Navbar"," 3.80% 4.956 2 Template:Main"," 2.97% 3.876 1 Template:Cite_encyclopedia"]},"scribunto":{"limitreport-timeusage":{"value":"0.050","limit":"10.000"},"limitreport-memusage":{"value":3251114,"limit":52428800}},"cachereport":{"origin":"mw1262","timestamp":"20180115190625","ttl":1900800,"transientcontent":false}}});});(window.RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgBackendResponseTime":80,"wgHostname":"mw1247"});});

Remainder - Photos and All Basic Informations

Remainder More Links

Remainder (disambiguation)Template:Calculation ResultsTemplate Talk:Calculation ResultsAdditionSubtractionMultiplicationProduct (mathematics)Division (mathematics)QuotientExponentiationNth RootLogarithmArithmeticDivision (mathematics)IntegerQuotientAlgebraModulo OperationSubtractionFunction (mathematics)Series ExpansionRemainder TermIntegerQuotientEuclidean DivisionDivision AlgorithmFloating-point NumberProgramming LanguageModulo OperationModulo OperationPascal (programming Language)C99PerlPython (programming Language)Common LispHaskell (programming Language)Scheme (programming Language)PL/IFortranEuclidean Division Of PolynomialsEuclidean DivisionReal NumberComplex NumberEuclidean DomainPolynomial Remainder TheoremChinese Remainder TheoremDivisibility RuleEgyptian Multiplication And DivisionEuclidean AlgorithmLong DivisionModular ArithmeticPolynomial Long DivisionTaylor's TheoremInternational Standard Book NumberSpecial:BookSources/978-0-618-62719-6International Standard Book NumberSpecial:BookSources/978-0-486-65620-5International Standard Book NumberSpecial:BookSources/978-0-13-186267-8International Standard Book NumberSpecial:BookSources/0486204308International Standard Book NumberSpecial:BookSources/0-521-63446-6International Standard Book NumberSpecial:BookSources/9780691114859International Standard Book NumberSpecial:BookSources/9780883855119International Standard Book NumberSpecial:BookSources/0-912675-07-1Help:CategoryCategory:Division (mathematics)Category:Number TheoryCategory:Pages Using Div Col Without Cols And Colwidth ParametersDiscussion About Edits From This IP Address [n]A List Of Edits Made From This IP Address [y]View The Content Page [c]Discussion About The Content Page [t]Edit This Page [e]Visit The Main Page [z]Guides To Browsing WikipediaFeatured Content – The Best Of WikipediaFind Background Information On Current EventsLoad A Random Article [x]Guidance On How To Use And Edit WikipediaFind Out About WikipediaAbout The Project, What You Can Do, Where To Find ThingsA List Of Recent Changes In The Wiki [r]List Of All English Wikipedia Pages Containing Links To This Page [j]Recent Changes In Pages Linked From This Page [k]Upload Files [u]A List Of All Special Pages [q]Wikipedia:AboutWikipedia:General Disclaimer

view link view link view link view link view link