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.

Key Terms

Divisor (Factor)— the integer that divides another exactly
Multiple— the result of multiplying a number by any integer
Prime Number— an integer greater than 1 with no divisors other than 1 and itself
Composite Number— an integer with at least one divisor beyond 1 and itself
Prime Factorization— the unique decomposition into a product of primes
Coprime— two integers sharing no common factor other than 1
Greatest Common Divisor— the largest integer dividing both of two given integers
Least Common Multiple— the smallest positive integer divisible by both of two given integers

See All Arithmetic Definitions →


What is Divisibility?

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

a∣bmeansb=a⋅k   for some integer ka \mid b \quad \text{means} \quad b = a \cdot k \;\text{ for some integer } k


The expression 3∣123 \mid 12 is true because 12=3⋅412 = 3 \cdot 4. The expression 5∣125 \mid 12 is false because no integer kk satisfies 12=5⋅k12 = 5 \cdot k — the closest are 5⋅2=105 \cdot 2 = 10 and 5⋅3=155 \cdot 3 = 15, neither of which equals 1212.

The expression 4∣204 \mid 20 is true because 20=4⋅520 = 4 \cdot 5. The expression 7∣307 \mid 30 is false because 30=7⋅4+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."
Number line scene (single track)03691215+3+3+3+33 | 1212 = 3 · 4Four jumps of 3 landexactly on 12.
Number line scene (single track)05101512+5+5overshoots12 falls in this gap5 ∤ 125·2 = 10, 5·3 = 15No multiple of 5 landson 12: 10 < 12 < 15.
4 groups of 5 — Divisible ✓5555
20 tiles in 4 groups of 5: divisible

Twenty tiles fill four complete rows of five with nothing left over, so 5 divides 20 and 20 = 5 · 4 with k = 4: the definition a | b drawn as a full rectangle. A single leftover tile would break the rectangle and the divisibility with it. Change the number or the divisor and watch the rows fill or fail on the divisibility tiles visualizer.

Divisibility is a statement about rectangles: b tiles can be arranged in rows of exactly a.

Divisibility Notation

Notation

Divisibility Notation

One vertical stroke carries the whole subtree: the bar that states, the slash that denies, and the remainder spelling that computes the same fact. Every symbol here is catalogued among the arithmetic symbols with its LaTeX code, and the mathematical keyboard types them directly. The table below collects the five spoken phrasings of one statement.
gcd⁡(a,b)\gcd(a,b) and lcm⁡(a,b)\operatorname{lcm}(a,b) are introduced on their own pages; the congruence triple-bar ≡\equiv belongs to modulo.
a∣ba \mid b
a divides b
A statement, not an operation: a∣ba \mid b is true or false — it claims b=a⋅kb = a \cdot k for some integer kk and produces no number, unlike ÷\div, which computes. What is Divisibility? above sets the definition.
CasesFive spoken phrasings share the one mark — divides, is divisible by, is a divisor of, is a factor of, is a multiple of — each shifting emphasis, none changing the fact; the table below lines them up for 3∣123 \mid 12.
Do not confuseDivision's argument order. In 3∣123 \mid 12 the small number leads; in 12÷312 \div 3 it trails — the bar and the division sign read their operands in opposite directions, the subtree's most reliable misreading.
Same glyph elsewhereThe identical stroke is "such that" inside set-builder braces and, doubled, the absolute value fence — position decides the job.
5∤125 \nmid 12
five does not divide twelve
The slashed bar denies: 5∤125 \nmid 12 because no integer kk gives 12=5k12 = 5k. One stroke through the mark manufactures the negation — the same slash-negation family that builds ≠\neq and ∉\notin.
CasesThe negation stays a statement — false claims become true denials; proofs by contradiction lean on it, assuming a∣ba \mid b and deriving a∤ba \nmid b.
Do not confuseA fraction slash. The stroke negates the bar, it does not divide anything — 5∤125 \nmid 12 has no numeric value, while 5/125/12 is a number.
b mod a=0b \bmod a = 0
b mod a equals zero
The computational spelling of the same fact: a∣ba \mid b exactly when the remainder vanishes — one statement, two dialects, as Divisibility and Remainders below works out. The  mod \bmod operator itself is owned by the modulo page.
CasesThe bridge runs both ways: theory prefers the bar (3∣123 \mid 12), computation the remainder test (12 % 3 == 0 in code) — choosing the dialect is choosing the audience.
Do not confuseThe congruence triple-bar. b mod a=0b \bmod a = 0 is an equation about a computed remainder; b≡0(moda)b \equiv 0 \pmod a states the same thing in congruence dress — interchangeable in content, different in grammar.
Phrasing Example (with 3 ∣ 12) What it foregrounds
"a divides b" 3 divides 12 the divisor a — the one doing the dividing
"b is divisible by a" 12 is divisible by 3 the dividend b — the perspective of the number being divided
"a is a divisor of b" 3 is a divisor of 12 a's role as one of b's divisors
"a is a factor of b" 3 is a factor of 12 a as a multiplicative building block of b
"b is a multiple of a" 12 is a multiple of 3 b as a product of a and some integer

Basic Properties

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

Every nonzero integer divides itself: a∣aa \mid a, because a=a⋅1a = a \cdot 1.

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

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

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

Divisibility is transitive. If a∣ba \mid b and b∣cb \mid c, then a∣ca \mid c. If 3∣123 \mid 12 and 12∣6012 \mid 60, then 3∣603 \mid 60.

Divisibility distributes over addition and subtraction. If a∣ba \mid b and a∣ca \mid c, then a∣(b+c)a \mid (b + c) and a∣(b−c)a \mid (b - c). Since 4∣204 \mid 20 and 4∣124 \mid 12, it follows that 4∣324 \mid 32 and 4∣84 \mid 8.

Divisibility scales with multiplication. If a∣ba \mid b, then a∣(b⋅k)a \mid (b \cdot k) for any integer kk. Since 3∣123 \mid 12, it follows that 3∣363 \mid 36, 3∣603 \mid 60, 3∣1203 \mid 120, and so on.
Property Statement Example
Reflexivity every nonzero integer divides itself: a ∣ a 7 ∣ 7, since 7 = 7 · 1
Universal divisor 1 divides everything: 1 ∣ a for any integer a 1 ∣ 100, since 100 = 1 · 100
Zero as multiple every nonzero integer divides 0: a ∣ 0 7 ∣ 0, since 0 = 7 · 0
Transitivity if a ∣ b and b ∣ c, then a ∣ c 3 ∣ 12 and 12 ∣ 60 ⇒ 3 ∣ 60
Distribution if a ∣ b and a ∣ c, then a ∣ (b + c) and a ∣ (b − c) 4 ∣ 20 and 4 ∣ 12 ⇒ 4 ∣ 32 and 4 ∣ 8
Scaling if a ∣ b, then a ∣ (b · k) for any integer k 3 ∣ 12 ⇒ 3 ∣ 36, 3 ∣ 60, 3 ∣ 120, …
Number line scene (single track)0369121518212427303336394245485154576063…3 | 12, 3 | 36, 3 | 60If 3 divides 12, it alsodivides every multiple of 12.

Divisibility and Remainders

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

a=n⋅q+r,0≤r<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 n∣an \mid a. When r≠0r \neq 0, the division is inexact and n∤an \nmid a.

The operation that extracts rr directly is modulo. The statement a mod n=0a \bmod n = 0 is the computational form of n∣an \mid a. The statement a mod n≠0a \bmod n \neq 0 is the computational form of n∤an \nmid a. Divisibility poses the question; modulo computes the answer.
Number line scene (single track)0714212830+7+7+7+7remainder = 230 = 7·4 + 27 ∤ 30Four jumps of 7 reach 28,remainder 2 left over.
4 groups of 5 + 3 leftover5555+3
23 = 5 · 4 + 3: four full rows and three left over

The four complete rows are the quotient q = 4 and the three tiles that could not start a fifth row are the remainder r = 3, with 0 ≤ 3 < 5 exactly as the division algorithm requires. The remainder is what stands between a number and the next multiple below it. Slide the number up by one tile at a time and watch the remainder cycle on the divisibility tiles visualizer.

Modulo arithmetic, treated on its own page, is the study of this leftover on its own.

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 10≡1(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.
Learn More

Factors and Multiples

Every divisibility relationship names two roles. When a∣ba \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 3⋅8=243 \cdot 8 = 24, and the pair (4,6)(4, 6) to 4⋅6=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.
Factor pairsfactors of 24 — found by testing 1 to √24 ≈ 4.901 · 24 = 242 · 12 = 243 · 8 = 244 · 6 = 241234681224factors of 24 (in pairs)(1, 24), (2, 12),(3, 8), (4, 6)search stops at √24
The full treatment, including counting formulas and systematic methods, appears on the factors and multiples page.
Learn More

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=22⋅312 = 2^2 \cdot 3 is assembled from the primes 22 and 33. The number 30=2⋅3⋅530 = 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.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
The sieve finished: only the primes remain unmarked

Every multiple of 2, 3, 5 and 7 has been struck out in turn, and the numbers still standing are exactly those with no divisor other than 1 and themselves. A prime is what the sieve cannot remove. Run the crossing-out one prime at a time on the Sieve of Eratosthenes visualizer.

Primes are the atoms the next section builds every other integer from.

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 23⋅32⋅52^3 \cdot 3^2 \cdot 5. No other combination of primes produces 360360. The number 8484 factors as 22⋅3⋅72^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=p1a1⋅p2a2⋯n = 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:

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


For 44 and 66: 4⋅6=244 \cdot 6 = 24, and gcd⁡(4,6)⋅lcm(4,6)=2⋅12=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.
252 = 105 · 2 + 42105 = 42 · 2 + 2142 = 21 · 2 + 0stopgcd = 21
gcd(252, 105) = 21 by repeated division

Each row divides the previous divisor by the previous remainder: 252 = 105 · 2 + 42, then 105 = 42 · 2 + 21, then 42 = 21 · 2 + 0. The last nonzero remainder, 21, is the greatest common divisor, found without factoring either number. Enter any pair and watch the remainders shrink to zero on the Euclidean algorithm visualizer.

The GCD and LCM pages develop each method in full, including the one this picture runs.

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 a mod n=0a \bmod n = 0 and the statement n∣an \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.

Summary: A Map of the Divisibility Subtree

The sections above have surveyed the full territory of divisibility: the definition itself, the terminology variants, the basic properties, the link to remainders and modulo, and the major sub-topics (rules, factors, primes, GCD, LCM). Each sub-topic has its own dedicated page where the details, methods, and worked examples live. The table below collects those pages with a one-line indication of what each covers — use it as a map for what to explore next.
Topic What you'll find there Page
Divisibility rules digit-based shortcuts for testing divisibility by 2, 3, 4, 5, 6, 8, 9, 10, and 11 without performing the full division /divisibility/rules
Factors and multiples listing all factors of a number using pair-search up to √n; counting formulas via prime factorization /divisibility/factors
Greatest common divisor (GCD) three methods — listing factors, prime factorization, and the Euclidean algorithm /divisibility/gcd
Least common multiple (LCM) the smallest shared multiple; the identity a · b = gcd(a, b) · lcm(a, b) /divisibility/lcm
Modulo  (computational counterpart) the remainder operation that computes the answer to every divisibility question — and powers the Euclidean algorithm and divisibility rules /arithmetic/modulo

Divisibility FAQ

What does the notation a | b mean?

+
The vertical bar a | b is read 'a divides b' and means b = a × k for some integer k. It is a statement (true or false), not an operation, and order matters: 3 | 12 is true but 12 | 3 is false. The negation a ∤ b means 'a does not divide b.' This differs from a ÷ b, which computes a quotient.Read more →

How are GCD and LCM related?

+
For any two positive integers a and b: a × b = gcd(a, b) × lcm(a, b). For 4 and 6: 4 × 6 = 24, and gcd(4,6) × lcm(4,6) = 2 × 12 = 24. Knowing one allows you to compute the other from the product. See the GCD page for the ways to compute it.Read more →

Why is 1 not considered prime?

+
A prime must have exactly two distinct factors: 1 and itself. The number 1 has only one factor (itself). Excluding 1 preserves the uniqueness of prime factorization — otherwise 12 could be written as 2² × 3 or 1 × 2² × 3 or 1² × 2² × 3, and so on without end.Read more →