Courses / Mathematics I
Arithmetic and Number Theory

Divisibility and the Division Algorithm

Mathematics I 384 words Free to read

Dividing with Remainders

Number theory begins with divisibility. An integer aa divides bb (written aba \mid b) if b=akb = a k for some integer kk — that is, bb is a multiple of aa with no remainder. So 3123 \mid 12 (since 12=3412 = 3 \cdot 4) but 3133 \nmid 13. Divisibility is the backbone of primes, factorization, and congruences.

When aa does not divide bb exactly, the division algorithm captures what happens. For any integer bb and positive integer aa, there exist unique integers qq (the quotient) and rr (the remainder) with b=aq+r,0r<a.b = a q + r, \qquad 0 \le r < a. The key constraint is 0r<a0 \le r < a: the remainder is non-negative and strictly less than the divisor. For b=17,a=5b = 17, a = 5: 17=53+217 = 5 \cdot 3 + 2, so q=3q = 3 and r=2r = 2. Divisibility is exactly the case r=0r = 0.

Divisibility has clean properties that make proofs easy:

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 bb on division by aa" is exactly bmodab \bmod a.

Common pitfall: allowing a remainder that is negative or as large as the divisor. In the division algorithm the remainder must satisfy 0r<a0 \le r < a — it is never negative and never equals or exceeds the divisor. Writing 17=52+717 = 5 \cdot 2 + 7 is wrong even though the arithmetic checks out, because 757 \ge 5; the correct remainder is 22 with quotient 33.

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.

b=aq+r,0r<ab = aq + r,\quad 0 \le r < a

Divisibility and the Division Algorithm

Practise this lesson

The explanation above is free to read. The graded practice for this lesson lives in the Tryals app.

11practice questions
2interactive scenes
Start Mathematics I free

Arithmetic and Number Theory