In arithmetic, Euclidean division – or division with remainder – is the process of dividing one integer (the dividend) by another (the divisor), in a way that produces an integer quotient and a natural number remainder strictly smaller than the absolute value of the divisor. A fundamental property is that the quotient and the remainder exist and are unique, under some conditions. Because of this uniqueness, Euclidean division is often considered without referring to any method of computation, and without explicitly computing the quotient and the remainder. The methods of computation are called integer division algorithms, the best known of which being long division. Euclidean division, and algorithms to compute it, are fundamental for many questions concerning integers, such as the Euclidean algorithm for finding the greatest common divisor of two integers, and modular arithmetic, for which only remainders are considered. The operation consisting of computing only the remainder is called the modulo operation, and is used often in both mathematics and computer science.
Division theorem
Euclidean division is based on the following result, which is sometimes called Euclid's division lemma. Given two integers a and b, with b≠0, there exist unique integers q and r such that
a=bq+r, and
0≤r<|b|, where |b| denotes the absolute value of b. In the above theorem, each of the four integers has a name of its own: a is called the dividend, b is called the divisor, q is called the quotient and r is called the remainder. The computation of the quotient and the remainder from the dividend and the divisor is called division, or in case of ambiguity, Euclidean division. The theorem is frequently referred to as the division algorithm (although it is a theorem and not an algorithm), because its proof as given below lends itself to a simple division algorithm for computing q and r (see the section Proof for more). Division is not defined in the case where b=0; see division by zero. For the remainder and the modulo operation, there are conventions other than 0≤r<|b|, see § Other intervals for the remainder.
Generalization
Although originally restricted to integers, Euclidean division and the division theorem can be generalized to univariate polynomials over a field and to Euclidean domains. In the case of univariate polynomials, the main difference is that the inequalities 0≤r<|b| are replaced with
r=0 or degr<degb, where deg denotes the polynomial degree. In the generalization to Euclidean domains, the inequality becomes
r=0 or f(r)<f(b), where f denote a specific function from the domain to the natural numbers called a "Euclidean function". The uniqueness of the quotient and the remainder remains true for polynomials, but it is false in general.
History
Although "Euclidean division" is named after Euclid, it seems that he did not know the existence and uniqueness theorem, and that the only computation method that he knew was the division by repeated subtraction. Before the invention of Hindu–Arabic numeral system, which was introduced in Europe during the 13th century by Fibonacci, division was extremely difficult, and only the best mathematicians were able to do it . Presently, most division algorithms, including long division, are based on this numeral system or its variants, such as binary numerals. A notable exception is Newton–Raphson division, which is independent from any numeral system. The term "Euclidean division" was introduced during the 20th century as a shorthand for "division of Euclidean rings". It has been rapidly adopted by mathematicians for distinguishing this division from the other kinds of division of numbers.
Intuitive example Suppose that a pie has 9 slices and they are to be divided evenly among 4 people. Using Euclidean division, 9 divided by 4 is 2 with remainder 1. In other words, each person receives 2 slices of pie, and there is 1 slice left over. This can be confirmed using multiplication, the inverse of division: if each of the 4 people received 2 slices, then 4 × 2 = 8 slices were given out in total. Adding the 1 slice remaining, the result is 9 slices. In summary: 9 = 4 × 2 + 1. In general, if the number of slices is denoted a and the number of people is denoted b, then one can divide the pie evenly among the people such that each person receives q slices (the quotient), with some number of slices r<b being the leftover (the remainder). In which case, the equation a=bq+r holds. If 9 slices were divided among 3 people instead of 4, then each would receive 3 and no slice would be left over, which means that the remainder would be zero, leading to the conclusion that 3 evenly divides 9, or that 3 divides 9. Euclidean division can also be extended to negative dividend (or negative divisor) using the same formula; for example −9 = 4 × (−3) + 3, which means that −9 divided by 4 is −3 with remainder 3.
Examples If a = 7 and b = 3, then q = 2 and r = 1, since 7 = 3 × 2 + 1. If a = 7 and b = −3, then q = −2 and r = 1, since 7 = −3 × (−2) + 1. If a = −7 and b = 3, then q = −3 and r = 2, since −7 = 3 × (−3) + 2. If a = −7 and b = −3, then q = 3 and r = 2, since −7 = −3 × 3 + 2.
Proof The following proof of the division theorem relies on the fact that a decreasing sequence of non-negative integers stops eventually. It is separated into two parts: one for existence and another for uniqueness of q and r. Other proofs use the well-ordering principle (i.e., the assertion that every non-empty set of non-negative integers has a smallest element) to make the reasoning simpler, but have the disadvantage of not providing directly an algorithm for solving the division (see § Effectiveness for more).
… excerpt ends here. Continue reading the full article.


