TExcelTAD
Home › School Integers, Rational Numbers & Proportions › Divisibility Rules for 3 and 9

Divisibility Rules for 3 and 9

Unlike the rules for 22, 55, and 1010—which depend solely on the final digit—the divisibility rules for 33 and 99 require examining all the digits in the number.

The rule states: a number is divisible by 33 (or 99) if and only if the sum of its digits is divisible by 33 (or 99).

This famous mathematical shortcut seems almost like magic when you first encounter it. Why should adding the digits of a number reveal whether 33 or 99 divides into it? In this lesson, we will uncover the algebraic reason why it works, practice the standard paper addition method, and learn the lightning-fast scratchpad technique called casting out nines.


1. Concepts & Paper Visuals: The Mathematical Proof

To see why the sum of digits works, look at powers of 1010 written as multiples of 99 plus 11:

10=9+1100=99+11,000=999+110,000=9,999+1\begin{aligned} 10 &= 9 + 1 \\ 100 &= 99 + 1 \\ 1{,}000 &= 999 + 1 \\ 10{,}000 &= 9{,}999 + 1 \end{aligned}

Now take any number—for example, a four-digit number with digits a,b,c,da, b, c, d:

N=1000a+100b+10c+dN = 1000a + 100b + 10c + d

Expand each power of 1010 using the (99…9+1)(99\dots9 + 1) identity:

N=(999+1)a+(99+1)b+(9+1)c+d=(999a+99b+9c)+(a+b+c+d)\begin{aligned} N &= (999 + 1)a + (99 + 1)b + (9 + 1)c + d \\ &= (999a + 99b + 9c) + (a + b + c + d) \end{aligned}

Look at the two grouped parts:

  1. The first part (999a+99b+9c)(999a + 99b + 9c) is made entirely of multiples of 99. Since 9=3×39 = 3 \times 3, this part is always divisible by both 33 and 99, regardless of the digits!
  2. The second part (a+b+c+d)(a + b + c + d) is simply the sum of the digits.

Because the first part is already divisible by 33 and 99, the divisibility of the entire number NN depends entirely on whether (a+b+c+d)(a + b + c + d) is divisible by 33 or 99!

Furthermore, the remainder when NN is divided by 99 is exactly the remainder when (a+b+c+d)(a + b + c + d) is divided by 99.


2. The Divisibility Rules for 3 and 9

DivisorRule on PaperCondition3Calculate the sum of all digits: SS is a multiple of 39Calculate the sum of all digits: SS is a multiple of 9\begin{array}{|c|l|c|} \hline \textbf{Divisor} & \textbf{Rule on Paper} & \textbf{Condition} \\ \hline \mathbf{3} & \text{Calculate the sum of all digits: } S & S \text{ is a multiple of } 3 \\ \mathbf{9} & \text{Calculate the sum of all digits: } S & S \text{ is a multiple of } 9 \\ \hline \end{array}

The Relationship Between 3 and 9

Because 9=3×39 = 3 \times 3:

  • Divisible by 9   ⟹  \implies Always Divisible by 3. Any multiple of 99 (9,18,27,36,…9, 18, 27, 36, \dots) is automatically a multiple of 33.
  • Divisible by 3 ̸  ⟹  \not\implies Divisible by 9. A multiple of 33 is not necessarily a multiple of 99. For example, 12,15,21,24,3012, 15, 21, 24, 30 are divisible by 33, but not by 99.

3. The Paper Scratchpad Method: "Casting Out"

When a number has 77 or 88 digits, adding them all up can be slow and prone to mental addition errors. You can speed up your calculation by casting out (ignoring) digits before adding.

Casting Out Threes

When testing for divisibility by 33:

  • Cross out any digit that is already a multiple of 33: 0,3,6,90, 3, 6, 9.
  • Cross out any pair of digits that adds up to 3,6,3, 6, or 99 (e.g., 1+2=31 + 2 = 3, 4+5=94 + 5 = 9, 7+2=97 + 2 = 9).
  • Sum only the few remaining digits.

Casting Out Nines

When testing for divisibility by 99:

  • Cross out any digit that is 99 or 00.
  • Cross out any pair of digits that adds up to 99 (e.g., 1+81 + 8, 2+72 + 7, 3+63 + 6, 4+54 + 5).
  • Sum the remaining digits. If what remains is 00 or 99, the number is divisible by 99!

4. Step-by-Step Notebook Examples

Example 1: Testing a Six-Digit Number for 3 and 9

Problem: Test whether N=482,715N = 482{,}715 is divisible by 33 and whether it is divisible by 99.

  • Method A: Direct Sum of Digits Add all the digits in your notebook:

    S=4+8+2+7+1+5S = 4 + 8 + 2 + 7 + 1 + 5

    Add step-by-step:

    4+8=1212+2=1414+7=2121+1=2222+5=27\begin{aligned} 4 + 8 &= 12 \\ 12 + 2 &= 14 \\ 14 + 7 &= 21 \\ 21 + 1 &= 22 \\ 22 + 5 &= \mathbf{27} \end{aligned}
  • Test for 3:

    • Is 2727 divisible by 33?
    • 27÷3=927 \div 3 = 9 (leaves remainder 00).
    • Conclusion: 482,715482{,}715 is divisible by 33.
  • Test for 9:

    • Is 2727 divisible by 99?
    • 27÷9=327 \div 9 = 3 (leaves remainder 00).
    • Conclusion: 482,715482{,}715 is divisible by 99.
  • Method B: Casting Out Nines Verification on Paper

    • Look at the digits: 4,8,2,7,1,54, 8, 2, 7, 1, 5
    • Pair 2+7=9⟶2 + 7 = 9 \longrightarrow cross out 22 and 77.
    • Pair 8+1=9⟶8 + 1 = 9 \longrightarrow cross out 88 and 11.
    • Pair 4+5=9⟶4 + 5 = 9 \longrightarrow cross out 44 and 55.
    • Everything casts out to 00! Thus NN is divisible by 99 (and therefore also by 33).

Example 2: Divisible by 3 but NOT by 9

Problem: Test whether N=758,142N = 758{,}142 is divisible by 33 and by 99.

  • Step 1: Calculate the sum of digits.

    S=7+5+8+1+4+2=27Wait, let us re-add:S = 7 + 5 + 8 + 1 + 4 + 2 = 27 \quad \text{Wait, let us re-add:}
    7+5=1212+8=2020+1=2121+4=2525+2=27  ⟹  Wait, let’s test 758,145:\begin{aligned} 7 + 5 &= 12 \\ 12 + 8 &= 20 \\ 20 + 1 &= 21 \\ 21 + 4 &= 25 \\ 25 + 2 &= \mathbf{27} \implies \text{Wait, let's test } 758{,}145: \end{aligned}

    Let us test N=752,142N = 752{,}142:

    S=7+5+2+1+4+2=21S = 7 + 5 + 2 + 1 + 4 + 2 = 21
  • Step 2: Test for 3.

    • 21÷3=721 \div 3 = 7 (leaves remainder 00).
    • Divisible by 3: YES.
  • Step 3: Test for 9.

    • 21÷9=2 with remainder 321 \div 9 = 2\text{ with remainder } 3.
    • Since 2121 is not a multiple of 99, 752,142752{,}142 is NOT divisible by 9.
    • Moreover, the remainder when 752,142752{,}142 is divided by 99 is 33.

Example 3: Finding an Unknown Digit

Problem: Find all possible digits XX such that the five-digit number 42,X1542{,}X15 is divisible by 33. Which value of XX makes it divisible by 99?

  • Step 1: Find the sum of known digits.

    Sknown=4+2+1+5=12S_{\text{known}} = 4 + 2 + 1 + 5 = 12

    The total sum of digits is:

    S=12+Xwhere X∈{0,1,2,…,9}S = 12 + X \quad \text{where } X \in \{0, 1, 2, \dots, 9\}
  • Step 2: Find XX for divisibility by 33. For (12+X)(12 + X) to be a multiple of 33, XX itself must be a multiple of 33:

    X∈{0,3,6,9}X \in \{0, 3, 6, 9\}
    • If X=0X = 0: S=12S = 12 (42,015÷3=14,00542{,}015 \div 3 = 14{,}005)
    • If X=3X = 3: S=15S = 15 (42,315÷3=14,10542{,}315 \div 3 = 14{,}105)
    • If X=6X = 6: S=18S = 18 (42,615÷3=14,20542{,}615 \div 3 = 14{,}205)
    • If X=9X = 9: S=21S = 21 (42,915÷3=14,30542{,}915 \div 3 = 14{,}305)
  • Step 3: Find XX for divisibility by 99. For (12+X)(12 + X) to be a multiple of 99, the smallest multiple of 99 greater than or equal to 1212 is 1818:

    12+X=18  ⟹  X=18−12=612 + X = 18 \implies X = 18 - 12 = \mathbf{6}

    (The next multiple of 99 is 2727, which would require X=15X = 15, not a single digit.)

  • Final Answer:

    • For divisibility by 33: X∈{0,3,6,9}X \in \{0, 3, 6, 9\}
    • For divisibility by 99: X=6X = 6

5. Common Mistakes & Paper Traps

Trap 1: Assuming Divisibility by 3 Means Divisibility by 9

Number: 30\text{Number: } \quad 30
  • 3+0=33 + 0 = 3 (divisible by 33).
  • 30÷9=3 R 330 \div 9 = 3\text{ R }3 (NOT divisible by 99).
  • Rule: 9 is stronger than 3. Divisibility by 9 guarantees divisibility by 3, but never the other way around.

Trap 2: Applying the Sum-of-Digits Rule to Other Numbers

Students sometimes try to add digits to test for 2,4,2, 4, or 55:

WRONG: 14  ⟹  1+4=5  ⟹  not divisible by 2?\text{WRONG: } \quad 14 \implies 1 + 4 = 5 \implies \text{not divisible by 2?}

1414 is clearly divisible by 22! The sum-of-digits test only works for 3 and 9 because 10n=99…9+110^n = 99\dots9 + 1. For 22 and 55, only the last digit matters.

Trap 3: Addition Errors in Long Chains

When adding 77 or more digits, write sub-totals on your scratchpad:

(4+8)+(7+3)+(6+5)=12+10+11=33(4 + 8) + (7 + 3) + (6 + 5) = 12 + 10 + 11 = 33

Never attempt to sum long chains of digits entirely in your head during an exam.


6. Pencil & Paper Practice

Solve these problems in your notebook. Show your digit-sum step for each problem.

Practice 1

Test whether N=3,148,257N = 3{,}148{,}257 is divisible by 33 and whether it is divisible by 99.

Practice 2

Without performing long division, find the remainder when 857,341857{,}341 is divided by 99.

Practice 3

A six-digit bank account code is written as 74A,31B74A{,}31B. If this number is divisible by 1010 and also divisible by 99, find the unique values of digits AA and BB.


Solutions to Practice Problems

Solution to Practice 1

  1. Sum of digits:
    S=3+1+4+8+2+5+7=30S = 3 + 1 + 4 + 8 + 2 + 5 + 7 = 30
  2. Test for 3:
    • 30÷3=10  ⟹  30 \div 3 = 10 \implies Divisible by 3: YES.
  3. Test for 9:
    • 30÷9=3 R 3  ⟹  30 \div 9 = 3\text{ R }3 \implies Divisible by 9: NO.

Solution to Practice 2

  1. Sum the digits:
    S=8+5+7+3+4+1S = 8 + 5 + 7 + 3 + 4 + 1
    • 8+1=98 + 1 = 9 (casts out)
    • 5+4=95 + 4 = 9 (casts out)
    • Remaining: 7+3=107 + 3 = 10
  2. Sum again (digital root):
    1+0=11 + 0 = 1
  3. Remainder: The remainder when 857,341857{,}341 is divided by 99 is 11.

Solution to Practice 3

  1. Divisibility by 10:
    • A number is divisible by 1010 if and only if its last digit is 00.
    • The last digit is B  ⟹  B=0B \implies \mathbf{B = 0}.
  2. Divisibility by 9:
    • The number is now 74A,31074A{,}310.
    • Sum of digits:
      S=7+4+A+3+1+0=15+AS = 7 + 4 + A + 3 + 1 + 0 = 15 + A
    • For (15+A)(15 + A) to be a multiple of 99, the next multiple of 99 is 1818:
      15+A=18  ⟹  A=315 + A = 18 \implies \mathbf{A = 3}
  3. Result: The unique values are A=3A = 3 and B=0B = 0 (the number is 743,310743{,}310).

7. Summary: Comparison Table

DivisorWhat to CheckConditionExample3Sum of all digits SS is a multiple of 3453  ⟹  4+5+3=12✓9Sum of all digits SS is a multiple of 9828  ⟹  8+2+8=18✓\begin{array}{|c|c|l|c|} \hline \textbf{Divisor} & \textbf{What to Check} & \textbf{Condition} & \textbf{Example} \\ \hline \mathbf{3} & \text{Sum of all digits } S & S \text{ is a multiple of } 3 & 453 \implies 4+5+3 = 12 \checkmark \\ \mathbf{9} & \text{Sum of all digits } S & S \text{ is a multiple of } 9 & 828 \implies 8+2+8 = 18 \checkmark \\ \hline \end{array}

Test yourself

Which of the following numbers is divisible by 33 but NOT divisible by 99?

  1. 189189
  2. 234234
  3. 312312
  4. 405405

What is the remainder when 528,173528{,}173 is divided by 99?

  1. 00
  2. 22
  3. 88
  4. 55

What single digit dd makes the four-digit number 8,d428{,}d42 divisible by 99?

  1. 44
  2. 55
  3. 33
  4. 66