3.2 Divisibility Rules and Modular Principles

Key Takeaways

  • A number is divisible by 3 (or 9) if the sum of its digits is divisible by 3 (or 9).
  • A number is divisible by 4 if its last two digits form a number divisible by 4.
  • The product of integers is even if at least one factor is even (e.g., 2k × (2m+1) = 2(2km+k)).
  • Modulo 7 is used for calendar math: 100 days from Tuesday is 100 mod 7 = 2, so Thursday.
  • The Caesar Cipher shift of 10 applied to Y (24) is (24+10) mod 26 = 8, which is I.
Last updated: July 2026

Divisibility Rules and Their Mathematical Justifications

Divisibility rules are shortcuts that help determine if one integer is exactly divisible by another without actually performing the division. In middle school, teaching not just the rules, but the "why" behind them, builds number sense and algebraic reasoning.

The Ends-In Rules (2, 5, 10):

  • Rule for 2: A number is divisible by 2 if its last digit is even (0, 2, 4, 6, 8).
  • Rule for 5: A number is divisible by 5 if its last digit is 0 or 5.
  • Rule for 10: A number is divisible by 10 if its last digit is 0. Justification: Our number system is base-10. Any whole number can be written as 10k + c, where c is the last digit. Since 10 is divisible by 2, 5, and 10, the term 10k is always divisible by 2, 5, and 10. Therefore, the divisibility of the entire number depends entirely on the last digit, c.

The Sum of Digits Rules (3, 9):

  • Rule for 3: A number is divisible by 3 if the sum of its digits is divisible by 3.
  • Rule for 9: A number is divisible by 9 if the sum of its digits is divisible by 9. Justification: Consider a three-digit number ABC, which means 100a + 10b + c. We can rewrite this as (99a + a) + (9b + b) + c. Regrouping gives (99a + 9b) + (a + b + c). The first part, (99a + 9b), is clearly a multiple of 9 (and thus also 3). Therefore, the divisibility of the original number relies entirely on whether the remaining part, (a + b + c) — which is the sum of the digits — is divisible by 3 or 9.

The Last Digits Rules (4, 8):

  • Rule for 4: A number is divisible by 4 if the number formed by its last two digits is divisible by 4.
  • Rule for 8: A number is divisible by 8 if the number formed by its last three digits is divisible by 8. Justification: Similar to the ends-in rules, 100 is divisible by 4. Thus, any number can be written as 100k + (last two digits). Since 100k is a multiple of 4, only the last two digits matter. For 8, 1000 is divisible by 8, so we look at the last three digits.

Composite Rules (6, 12):

  • Rule for 6: A number must be divisible by both 2 and 3.
  • Rule for 12: A number must be divisible by both 3 and 4. Justification: If a number is divisible by two coprime numbers (numbers that share no common factors other than 1), it is divisible by their product.

Rule for 11:

  • Rule for 11: Subtract and add the digits in an alternating pattern. If the result is 0 or a multiple of 11, the number is divisible by 11. (For example, 2,728: 2 - 7 + 2 - 8 = -11, which is a multiple of 11).

Even and Odd Parity Rules

Understanding the parity (evenness or oddness) of numbers under various operations is a fundamental algebraic concept. Let E represent an even number (2k) and O represent an odd number (2k + 1).

Addition and Subtraction:

  • E ± E = E (e.g., 6 + 4 = 10)
  • O ± O = E (e.g., 7 + 5 = 12)
  • E ± O = O (e.g., 8 + 3 = 11)

Multiplication:

  • E × E = E (e.g., 4 × 6 = 24)
  • O × O = O (e.g., 3 × 5 = 15)
  • E × O = E (e.g., 4 × 7 = 28) A crucial takeaway is that a product of integers will be even if at least one of the factors is even. It will only be odd if all factors are odd.

Modular Arithmetic and Applications

Modular arithmetic, often introduced informally as "clock arithmetic," deals with remainders. In modular arithmetic, numbers "wrap around" upon reaching a certain value, called the modulus.

If two numbers give the same remainder when divided by a modulus n, they are said to be congruent modulo n. For example, 17 and 5 are congruent modulo 12, written as 17 ≡ 5 (mod 12), because both leave a remainder of 5 when divided by 12.

Clock Arithmetic: A standard analog clock operates in modulo 12. If it is currently 8 o'clock, what time will it be in 50 hours? Instead of adding 50 to 8 and trying to decipher the result, we can find 50 mod 12. Since 12 × 4 = 48, the remainder is 2. Therefore, 50 hours is mathematically equivalent to 2 hours on a 12-hour clock. We add the remainder 2 to our starting time of 8 to get 10 o'clock.

Calendar Applications: Calendar problems use modulo 7 since there are 7 days in a week. If today is a Tuesday, what day of the week will it be 100 days from now? We calculate 100 mod 7. Since 7 × 14 = 98, the remainder is 2. We simply add 2 days to Tuesday, which means in 100 days it will be a Thursday. If it is a leap year of 366 days, 366 mod 7 is 2, meaning a date advances by two days of the week in a leap year compared to one day in a normal year.

Teaching Scenario: The Rule of 3

Imagine you are guiding middle school students to prove why the rule for 3 works. Instead of just memorizing the rule, you can lead a discovery lesson. Start by writing the number 432 on the board. Teacher: "What does the 4 in 432 really mean?" Student: "It means 4 hundreds, or 400." Teacher: "Excellent. So 432 is 400 + 30 + 2. Now, I want to pull out multiples of 3. Can we write 100 in a way that shows a multiple of 3 nearby?" Student: "100 is 99 + 1." Teacher: "Right! So 4 hundreds is the same as 4 groups of (99 + 1). Let's write that out. 4(99 + 1) + 3(9 + 1) + 2(1)." Through expanding and distributing, students see: 4(99) + 4(1) + 3(9) + 3(1) + 2. Rearranging the terms: [4(99) + 3(9)] + [4 + 3 + 2]. The teacher then points out that the first bracket is always a multiple of 9 (and thus 3). The only part that determines if the whole number is a multiple of 3 is the second bracket, which is precisely the sum of the digits. This transforms magic into rigorous, understandable mathematics.

Detailed Worked Examples and Teaching Scenarios

Worked Example 1: Complex Divisibility Application

Let's apply multiple divisibility rules simultaneously. Is the number 4,128,306 divisible by 36? To be divisible by 36, a number must be divisible by its coprime factors, which are 4 and 9. (We do not use 6 and 6 because they are not coprime). Step 1: Check divisibility by 4. The last two digits are 06. Since 6 is not divisible by 4, the number 4,128,306 is not divisible by 4. Therefore, it cannot be divisible by 36. This demonstrates the efficiency of divisibility rules—we avoided a massive long division problem with a two-second check.

Let's try another: Is 5,231,520 divisible by 45? We need to check divisibility by 5 and 9 (since 5 and 9 are coprime and 5 * 9 = 45). Step 1: Check divisibility by 5. The number ends in 0, so it is divisible by 5. Step 2: Check divisibility by 9. Sum the digits: 5 + 2 + 3 + 1 + 5 + 2 + 0 = 18. Since 18 is divisible by 9, the number is divisible by 9. Conclusion: Since 5,231,520 is divisible by both 5 and 9, it is divisible by 45.

Worked Example 2: Finding Missing Digits

A common middle school enrichment problem is finding a missing digit to satisfy a rule. "Find all possible single digits 'd' such that the number 54,d28 is divisible by 9." The rule for 9 is that the sum of the digits must be a multiple of 9. Sum = 5 + 4 + d + 2 + 8 = 19 + d. We need 19 + d to be a multiple of 9. The multiples of 9 are 9, 18, 27, 36... Since 'd' is a single digit (0-9), 19 + d must be between 19 and 28. The only multiple of 9 in that range is 27. So, 19 + d = 27, which means d = 8. The number is 54,828.

Teaching Scenario: Discovering Modulo Arithmetic through Cryptography

To make modular arithmetic engaging, introduce it through the lens of basic cryptography, specifically the Caesar Cipher. In a Caesar Cipher, each letter in a message is shifted a certain number of places down the alphabet. Since there are 26 letters, this is an application of modulo 26. Assign A=0, B=1, C=2 ... Z=25. Suppose the shift key is 10. To encrypt the letter 'Y' (which is 24), we calculate: (24 + 10) mod 26 34 mod 26 = 8. Letter 8 is 'I'. So 'Y' encrypts to 'I'. Have students create their own secret messages and trade them with partners. To decrypt, they must subtract the key (modulo 26). This hands-on activity solidifies the concept of "wrapping around" a number line, which is the essence of modular arithmetic. It also provides a fantastic cross-curricular link to computer science and history.

Deep Dive: Fermat's Little Theorem (Enrichment)

For advanced students, you can introduce a simplified version of Fermat's Little Theorem, which states that if p is a prime number, then for any integer a, the number a^p - a is an integer multiple of p. In the notation of modular arithmetic, this is expressed as: a^p ≡ a (mod p) For example, let p = 5 and a = 2. 2^5 = 32. 32 - 2 = 30. 30 is indeed a multiple of 5. Or, 32 ≡ 2 (mod 5). While the proof is beyond middle school, testing the theorem with different numbers is excellent practice for exponents, subtraction, and divisibility checking. It also exposes students to famous mathematical theorems, sparking curiosity about higher-level mathematics.

Further Applications of Parity

Parity is not just about addition and multiplication; it applies to geometry and logic puzzles too. Consider a chessboard with two opposite corners removed. Can you cover the remaining 62 squares with 31 dominoes (where each domino covers exactly two adjacent squares)? A standard chessboard has 32 white and 32 black squares. The two opposite corners are the same color (say, white). Removing them leaves 30 white squares and 32 black squares. Every time you place a domino, it MUST cover exactly one white square and exactly one black square (due to the alternating pattern of the board). Therefore, 31 dominoes will cover exactly 31 white squares and 31 black squares. Since our modified board has 30 white and 32 black squares, it is impossible to cover it! This elegant proof relies entirely on parity (matching pairs of colors) and is a classic example of mathematical reasoning.

Test Your Knowledge

If it is currently Wednesday, what day of the week will it be exactly 250 days from now?

A
B
C
D
Test Your Knowledge

Which of the following numbers is divisible by 12?

A
B
C
D
Test Your Knowledge

Consider the product of five integers: a × b × c × d × e. The product is an even number. What is the minimum number of these integers that MUST be even?

A
B
C
D