Back to Divisibility Checker

Theoretical Background: Divisibility Checker

Open the app

What “divisible” means

A whole number \(a\) is divisible by a whole number \(d \neq 0\) when the division leaves no remainder, that is, when there is a whole number \(k\) with

$$ a = k \cdot d \qquad\Longleftrightarrow\qquad a \bmod d = 0 $$

Then \(d\) is a divisor (factor) of \(a\) and \(a\) is a multiple of \(d\). We write \(d \mid a\). Every number is divisible by 1 and by itself.

Divisibility rules

The rules let you decide divisibility from the digits, without long division. They come from the fact that \(10 \equiv 1 \pmod 3\), \(10 \equiv 1 \pmod 9\) and \(10 \equiv -1 \pmod{11}\).

DivisorRuleExample
2Last digit is 0, 2, 4, 6 or 8132 → 2 ✓
3Digit sum is divisible by 3210 → 2+1+0 = 3 ✓
4Number formed by the last two digits is divisible by 4132 → 32 ✓
5Last digit is 0 or 545 ✓
6Divisible by both 2 and 390 ✓
8Number formed by the last three digits is divisible by 81 128 → 128 ✓
9Digit sum is divisible by 945 → 9 ✓
10Last digit is 0210 ✓
11Alternating digit sum is divisible by 11132 → 1 − 3 + 2 = 0 ✓

Why the digit-sum rule works: for \(a = d_2 d_1 d_0\),

$$ a = 100d_2 + 10d_1 + d_0 = 99d_2 + 9d_1 + (d_2 + d_1 + d_0) $$

The first two terms are multiples of 9 (and of 3), so \(a\) and its digit sum leave the same remainder when divided by 3 or 9.

Worked example

Example

Is 132 divisible by 2, 3, 4, 6, 11 and 12?

  • Last digit 2 → divisible by 2.
  • Digit sum 1 + 3 + 2 = 6 → divisible by 3.
  • Last two digits 32 = 4 · 8 → divisible by 4.
  • Divisible by 2 and 3 → divisible by 6.
  • 1 − 3 + 2 = 0 → divisible by 11.
  • Divisible by 3 and by 4 (which share no factor) → divisible by 12; indeed \(132 = 11 \cdot 12\).

The divisors of 132 are 1, 2, 3, 4, 6, 11, 12, 22, 33, 44, 66, 132 – twelve in all.

Combining rules

If \(m\) and \(n\) have no common factor (they are coprime), a number divisible by both is divisible by \(m n\). This is why 6 = 2·3, 12 = 3·4 and 15 = 3·5 can be tested with two simpler rules. It does not work for 2 and 4: 20 is divisible by 2 and 4 but not by 8.

Counting divisors

If \(a = p_1^{e_1} p_2^{e_2} \cdots p_k^{e_k}\) is the prime factorization, the number of divisors is

$$ \tau(a) = (e_1 + 1)(e_2 + 1)\cdots(e_k + 1) $$

For \(132 = 2^2 \cdot 3 \cdot 11\): \(\tau = 3 \cdot 2 \cdot 2 = 12\).

FAQ

Is 0 divisible by every number?

Yes. 0 = 0 · d for every d ≠ 0, so the remainder is 0. Division by 0, however, is not defined.

What is the difference between a factor and a multiple?

A factor divides the number (3 is a factor of 12); a multiple is the number times a whole number (24 is a multiple of 12).

Is there a rule for 7?

Yes: double the last digit and subtract it from the rest; repeat. 343 → 34 − 6 = 28, which is divisible by 7, so 343 is too. The table checks 7 directly by division.

Why does the table stop at 100?

The table is meant for reading divisibility patterns. To get every divisor of a number, look at the divisor list below the table or use the Prime Number Checker.