Dividing with Remainders
Number theory begins with divisibility. An integer divides (written ) if for some integer — that is, is a multiple of with no remainder. So (since ) but . Divisibility is the backbone of primes, factorization, and congruences.
When does not divide exactly, the division algorithm captures what happens. For any integer and positive integer , there exist unique integers (the quotient) and (the remainder) with The key constraint is : the remainder is non-negative and strictly less than the divisor. For : , so and . Divisibility is exactly the case .
Divisibility has clean properties that make proofs easy:
- If and , then and — a divisor of two numbers divides their sum and difference.
- If and , then (transitivity).
- If then for any integer .
These properties, together with the division algorithm, are the tools behind the Euclidean algorithm, modular arithmetic, and the theory of primes that follow. The remainder, in particular, is the seed of modular arithmetic: "the remainder of on division by " is exactly .
Common pitfall: allowing a remainder that is negative or as large as the divisor. In the division algorithm the remainder must satisfy — it is never negative and never equals or exceeds the divisor. Writing is wrong even though the arithmetic checks out, because ; the correct remainder is with quotient .
A row of b unit blocks grouped into equal piles of size a; the q full piles form the quotient and the accent leftover blocks (fewer than a) form the remainder — the division algorithm made visible.