Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools


Divisibility






When Division Leaves Nothing Behind

Some divisions come out clean — 12÷312 ÷ 3 gives exactly 44, with nothing left over. Others do not — 13÷313 ÷ 3 leaves a remainder of 11. Divisibility is the study of when and why the first case occurs, and the consequences that follow from it. The concept threads through factoring, primes, common divisors, and the internal structure of the integers themselves.



What is Divisibility?

An integer aa divides an integer bb when bb equals aa multiplied by some integer kk, with no remainder:

abmeansb=ak   for some integer ka \mid b \quad \text{means} \quad b = a \cdot k \;\text{ for some integer } k


The expression 3123 \mid 12 is true because 12=3412 = 3 \cdot 4. The expression 5125 \mid 12 is false because no integer kk satisfies 12=5k12 = 5 \cdot k — the closest are 52=105 \cdot 2 = 10 and 53=155 \cdot 3 = 15, neither of which equals 1212.

The expression 4204 \mid 20 is true because 20=4520 = 4 \cdot 5. The expression 7307 \mid 30 is false because 30=74+230 = 7 \cdot 4 + 2 — a remainder of 22 survives.

Divisibility is a yes-or-no question. Either aa fits into bb a whole number of times, or it does not. There is no "almost divides" or "partially divides."

Terminology and Notation

The vertical bar in aba \mid b is the standard notation for divisibility. It is a statement — either true or false — not an operation that produces a number. This distinguishes it from the division symbol ÷\div, which computes a quotient.

A single relationship supports multiple phrasings, all meaning the same thing. When 3123 \mid 12:

33 divides 1212. Or: 1212 is divisible by 33. Or: 33 is a divisor of 1212. Or: 33 is a factor of 1212. Or: 1212 is a multiple of 33.

Each phrasing shifts the emphasis — "divides" foregrounds 33, "is divisible by" foregrounds 1212, "factor" and "multiple" name the roles — but the underlying fact is identical in every case: 12=3412 = 3 \cdot 4 for an integer 44.

The negation uses a slashed bar: 5125 \nmid 12 means 55 does not divide 1212.

Basic Properties

Several properties follow immediately from the definition and hold for all integers.

Every nonzero integer divides itself: aaa \mid a, because a=a1a = a \cdot 1.

The number 11 divides everything: 1a1 \mid a for any aa, because a=1aa = 1 \cdot a.

Every nonzero integer divides 00: a0a \mid 0, because 0=a00 = a \cdot 0. Zero is a multiple of every number.

Zero divides nothing except itself: 0b0 \mid b requires b=0k=0b = 0 \cdot k = 0, so the only value bb can take is 00.

Divisibility is transitive. If aba \mid b and bcb \mid c, then aca \mid c. If 3123 \mid 12 and 126012 \mid 60, then 3603 \mid 60.

Divisibility distributes over addition and subtraction. If aba \mid b and aca \mid c, then a(b+c)a \mid (b + c) and a(bc)a \mid (b - c). Since 4204 \mid 20 and 4124 \mid 12, it follows that 4324 \mid 32 and 484 \mid 8.

Divisibility scales with multiplication. If aba \mid b, then a(bk)a \mid (b \cdot k) for any integer kk. Since 3123 \mid 12, it follows that 3363 \mid 36, 3603 \mid 60, 31203 \mid 120, and so on.

Divisibility and Remainders

For any integers aa and nn with n>0n > 0, the division algorithm guarantees:

a=nq+r,0r<na = n \cdot q + r, \qquad 0 \leq r < n


The integer qq is the quotient — how many complete copies of nn fit into aa. The integer rr is the remainder — what is left after those copies are removed.

Divisibility corresponds to the case r=0r = 0. When the remainder vanishes, the division is exact and nan \mid a. When r0r \neq 0, the division is inexact and nan \nmid a.

The operation that extracts rr directly is modulo. The statement amodn=0a \bmod n = 0 is the computational form of nan \mid a. The statement amodn0a \bmod n \neq 0 is the computational form of nan \nmid a. Divisibility poses the question; modulo computes the answer.

Divisibility Rules

Testing whether one number divides another does not always require performing the full division. For certain common divisors, patterns in the decimal digits of a number provide instant answers.

A number is divisible by 22 if its last digit is even. By 55 if its last digit is 00 or 55. By 1010 if its last digit is 00. By 33 if the sum of its digits is divisible by 33. By 99 if the sum of its digits is divisible by 99.

Each rule exploits the structure of base-1010 place value. The last digit determines divisibility by 22 and 55 because 1010 is divisible by both. The digit-sum rule for 99 works because 101(mod9)10 \equiv 1 \pmod{9}, as explained on the modular arithmetic page.

These shortcuts are covered in full — with rules for 2,3,4,5,6,8,9,102, 3, 4, 5, 6, 8, 9, 10, and 1111 — on the divisibility rules page.

Factors and Multiples

Every divisibility relationship names two roles. When aba \mid b, the number aa is a factor (or divisor) of bb, and bb is a multiple of aa.

The factors of a number are finite. The number 2424 has exactly eight factors: 1,2,3,4,6,8,12,241, 2, 3, 4, 6, 8, 12, 24. Every positive integer has at least two factors — 11 and itself — and most have more.

The multiples of a number are infinite. The multiples of 33 are 3,6,9,12,15,3, 6, 9, 12, 15, \ldots — the list extends without end. Every positive integer generates an infinite sequence of multiples.

Factors come in pairs. If aa is a factor of nn, then na\frac{n}{a} is also a factor. For 2424: the pair (3,8)(3, 8) corresponds to 38=243 \cdot 8 = 24, and the pair (4,6)(4, 6) to 46=244 \cdot 6 = 24. Searching for factors only up to n\sqrt{n} is sufficient — every factor above the square root is already paired with one below it.

The full treatment, including counting formulas and systematic methods, appears on the factors and multiples page.

Prime Numbers

A prime number is an integer greater than 11 whose only factors are 11 and itself. The number 77 is prime — no integer other than 11 and 77 divides it. The number 1212 is not prime — it has factors 2,3,42, 3, 4, and 66 beyond 11 and 1212.

Primes are the atoms of multiplication. Every integer greater than 11 is either prime or can be built by multiplying primes together. The number 12=22312 = 2^2 \cdot 3 is assembled from the primes 22 and 33. The number 30=23530 = 2 \cdot 3 \cdot 5 from three primes.

The first primes are 2,3,5,7,11,13,17,19,23,29,2, 3, 5, 7, 11, 13, 17, 19, 23, 29, \ldots — an infinite sequence with no largest member. The number 22 is the only even prime; every other even number is divisible by 22 and therefore composite.

The number 11 is not prime. It has only one factor (itself), while the definition requires exactly two. Excluding 11 is not a technicality — it is necessary to preserve the uniqueness of prime factorization.

The full treatment, including primality testing and the Sieve of Eratosthenes, appears on the prime numbers page.

Prime Factorization

The Fundamental Theorem of Arithmetic guarantees that every integer greater than 11 can be expressed as a product of primes, and that this expression is unique up to the order of the factors.

The number 360360 factors as 233252^3 \cdot 3^2 \cdot 5. No other combination of primes produces 360360. The number 8484 factors as 22372^2 \cdot 3 \cdot 7. The factorization is a fingerprint — it identifies the number completely.

Prime factorization reveals the divisor structure of a number. The number of factors of n=p1a1p2a2n = p_1^{a_1} \cdot p_2^{a_2} \cdots is (a1+1)(a2+1)(a_1 + 1)(a_2 + 1) \cdots — a formula that reads the answer directly from the exponents.

Factorization also underpins the computation of GCD and LCM. The GCD takes the minimum exponent of each shared prime; the LCM takes the maximum. These connections are developed on the prime factorization page.

GCD and LCM

Two numbers may share common factors, and the largest of these is their greatest common divisor. The numbers 4848 and 3636 are both divisible by 1,2,3,4,61, 2, 3, 4, 6, and 1212. The largest — 1212 — is gcd(48,36)\gcd(48, 36).

The least common multiple runs in the opposite direction. It is the smallest positive integer that both numbers divide into. For 44 and 66, the multiples of 44 are 4,8,12,16,4, 8, 12, 16, \ldots and the multiples of 66 are 6,12,18,6, 12, 18, \ldots. The smallest number in both lists is 1212, so lcm(4,6)=12\text{lcm}(4, 6) = 12.

The two quantities are linked by a clean identity:

ab=gcd(a,b)lcm(a,b)a \cdot b = \gcd(a, b) \cdot \text{lcm}(a, b)


For 44 and 66: 46=244 \cdot 6 = 24, and gcd(4,6)lcm(4,6)=212=24\gcd(4,6) \cdot \text{lcm}(4,6) = 2 \cdot 12 = 24.

Three methods exist for computing the GCD: listing factors, prime factorization, and the Euclidean algorithm — which uses modulo repeatedly to reduce the problem. The full treatment appears on the GCD and LCM pages.

Related Concepts

Divisibility connects outward to several areas that approach the same ideas from different angles.

Modulo is the computational counterpart. Where divisibility asks a yes-or-no question — does nn divide aa? — modulo computes the remainder that answers it. The statement amodn=0a \bmod n = 0 and the statement nan \mid a are two forms of the same fact.

Fractions arise when division is not exact. The expression ab\frac{a}{b} in lowest terms requires dividing both numerator and denominator by their GCD — a divisibility operation. Simplifying fractions is, at its core, factoring out common divisors.

Modular arithmetic extends divisibility into a full arithmetic system where numbers are classified by their remainders. The divisibility rules for 33, 99, and 1111 are consequences of how 1010 behaves under modular arithmetic — shortcuts derived from congruence properties of the base of our number system.