FP2 5.5 - Divisibility tests

FP2 5.5 - Divisibility tests

Derive and use the decimal divisibility tests for 2,3,4,5,6,9,10,112,3,4,5,6,9,10,11. Choose a suitable test, justify it with congruences, and use digit restrictions without confusing a divisibility test with ordinary equality.

Replace a number by a smaller congruent expression

Why is 584 584584\,584 divisible by 1111, and why would replacing 584584 by any other three-digit block still work? You do not need to divide a six-digit number each time. Decimal place value turns the question into a short remainder calculation.

You already know

For a positive modulus mm, a≡b(modm)a\equiv b\pmod m means m∣(a−b)m\mid(a-b). Addition, multiplication and positive integer powers preserve congruences. In particular, m∣am\mid a exactly when a≡0(modm)a\equiv0\pmod m. Coprime factors can be cancelled while keeping the modulus fixed.

For example, 8420=8(1000)+4(100)+2(10)+08420=8(1000)+4(100)+2(10)+0. Reducing the place-value weights modulo a chosen divisor can make most terms vanish, make all weights 11, or make them alternate between 1,−11,-1.

Divisibility test

A divisibility test replaces an integer by a simpler quantity that is divisible by the proposed divisor exactly when the original integer is. If N≡R(modm)N\equiv R\pmod m, then

m∣N⟺m∣Rm\mid N\quad\Longleftrightarrow\quad m\mid R

The replacement need not equal the original integer.

The tests below apply to non-negative decimal integers, including zero. For a negative integer, use its positive magnitude: m∣Nm\mid N exactly when m∣(−N)m\mid(-N). Also 00 is divisible by each nonzero divisor, since 0=m×00=m\times0; the tests correctly allow this boundary case.

Key idea

Look at the remainder of 1010, or a convenient power of 1010, modulo the divisor. That remainder explains which digits matter.

The decimal tests and their congruence derivations are not in the formula booklet. Each family below states the rule you need to know.

Use the last digit or the last two digits

Write N=10q+dN=10q+d, where dd is the units digit. Because 1010 is divisible by 2,5,102,5,10, the whole term 10q10q disappears modulo each of those divisors. Only dd remains.

Tests for two, five and ten

A non-negative decimal integer is divisible by

  • 22 exactly when its last digit is 0,2,4,6,80,2,4,6,8;
  • 55 exactly when its last digit is 00 or 55;
  • 1010 exactly when its last digit is 00.

Not in the formula booklet: learn it.

For 44, one digit is not enough: 1010 is not a multiple of 44. Use N=100q+rN=100q+r, with 0≤r<1000\le r<100, since 100≡0(mod4)100\equiv0\pmod4. The two-digit ending may begin with zero; for example, an ending 0404 represents r=4r=4.

Test for four

A non-negative decimal integer is divisible by 44 exactly when the integer formed by its last two digits is divisible by 44:

100q+r≡r(mod4)100q+r\equiv r\pmod4

For an integer with fewer than two digits, use the whole integer as rr.

Not in the formula booklet: learn it.

Test all four divisors together, keeping the reason for each decision visible.

Worked example 1: four tests from the ending

Question. Determine which of 2,4,5,102,4,5,10 divide 84208420, without carrying out four long divisions.

Plan. Use the last digit for 2,5,102,5,10, and the last two digits for 44.

last digit=0passes the 2,5,10 testslast two digits=20=4×5passes the 4 test\begin{aligned} \text{last digit}&=0 && \text{passes the }2,5,10\text{ tests}\\ \text{last two digits}&=20=4\times5 && \text{passes the }4\text{ test} \end{aligned}

Why this step? Earlier digits contribute multiples of the divisor in each respective test, so they do not affect these decisions.

Answer. All four divisors 2,4,5,102,4,5,10 divide 84208420.

Check. 8420/2=42108420/2=4210, 8420/4=21058420/4=2105, 8420/5=16848420/5=1684, 8420/10=8428420/10=842, all integers.

Change only the tens digit, from 22 to 33. The last digit stays zero.

Worked example 2: the last digit cannot decide divisibility by four

Question. Which of 2,4,5,102,4,5,10 divide 84308430?

Plan. Retain the three units-digit decisions, then test the changed two-digit ending.

last digit=02,5,10 still divide30=4×7+2nonzero remainder modulo 48430≡2(mod4)earlier hundreds vanish\begin{aligned} \text{last digit}&=0 && 2,5,10\text{ still divide}\\ 30&=4\times7+2 && \text{nonzero remainder modulo }4\\ 8430&\equiv2\pmod4 && \text{earlier hundreds vanish} \end{aligned}

Why this step? An even ending proves divisibility by 22, but does not by itself prove divisibility by 44.

Answer. 2,5,102,5,10 divide 84308430, while 44 does not.

Check. 8430=4(2107)+28430=4(2107)+2, confirming the failed test.

A short ending is enough because of the power of ten that vanishes, not because the leading digits are unimportant for every possible divisor.

Watch out

Wrong: “The number is even, so it is divisible by 44.” Right: test its last two digits; 3030 is even but leaves remainder 22 modulo 44.

Change the tens digit again.

Replace every power of ten by one for three and nine

Modulo either 33 or 99, 10≡110\equiv1, hence 10k≡110^k\equiv1 for every nonnegative integer kk. A decimal expansion therefore has the same remainder as the sum of its digits.

For digits dkd_k, with d0d_0 the units digit,

N=∑k=0sdk10k≡∑k=0sdk(modm),m=3 or 9N=\sum_{k=0}^{s}d_k10^k \equiv\sum_{k=0}^{s}d_k\pmod m, \qquad m=3\text{ or }9

This proves both implications of each test; it is not just a pattern noticed in a few examples.

Tests for three and nine

A non-negative decimal integer is divisible by 33 exactly when its digit sum is divisible by 33, and divisible by 99 exactly when its digit sum is divisible by 99.

Not in the formula booklet: learn it.

The digit sum need not equal the divisor. A sum of 1818, for example, passes both tests. You may apply the digit-sum rule again to a large sum, because it preserves the same congruence.

Worked example 3: a digit sum divisible by both

Question. Test 58325832 for divisibility by 33 and 99, justifying the digit-sum method.

Plan. Reduce the decimal place values to 11, then test the sum.

5832=5(103)+8(102)+3(10)+2decimal expansion≡5+8+3+2=18(mod9)10k≡1(mod9)18=9×2=3×6passes both tests\begin{aligned} 5832&=5(10^3)+8(10^2)+3(10)+2 && \text{decimal expansion}\\ &\equiv5+8+3+2=18\pmod9 && 10^k\equiv1\pmod9\\ 18&=9\times2=3\times6 && \text{passes both tests} \end{aligned}

Why this step? The same place-value argument works modulo 33. Divisibility by 99 also implies divisibility by 33, since 99 is a multiple of 33.

Answer. 58325832 is divisible by both 33 and 99.

Check. 5832=9(648)=3(1944)5832=9(648)=3(1944).

Change only the units digit, from 22 to 55.

Worked example 4: three does not guarantee nine

Question. Test 58355835 for divisibility by 33 and 99.

Plan. Use the changed digit sum to distinguish the two tests.

5+8+3+5=21digit sum21=3×7divisible by 321=9×2+3not divisible by 9\begin{aligned} 5+8+3+5&=21 && \text{digit sum}\\ 21&=3\times7 && \text{divisible by }3\\ 21&=9\times2+3 && \text{not divisible by }9 \end{aligned}

Why this step? A multiple of 33 need not be a multiple of 99. The digit sum tests the chosen divisor, rather than just whether it has a factor of three.

Answer. 33 divides 58355835, but 99 does not.

Check. 5835=3(1945)=9(648)+35835=3(1945)=9(648)+3.

Continue this lesson.

You’re previewing NovaLearn without an account. Create a free account to read the rest.

Create free account