Lably
Skip to content

Euclidean division

Division with remainder of integers

  • 7 min read
  • 8 chapters

Related on Lably

Through Arithmetic, Division (mathematics) and Integer

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 deg⁡r<deg⁡b,

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.

Sign in to keep reading

7 more chapters are free with a Lably account.

More in Topics in mathematics