โ๏ธ 1. Divisibility rules based on the last digits (2, 4, 5, 8, 10)
๐ฏ Last Digit Shortcuts
- A number is divisible by 2 if its last digit is 0, 2, 4, 6, or 8.
- A number is divisible by 5 if its last digit is 0 or 5.
- A number is divisible by 10 if its last digit is 0.
- A number is divisible by 4 if its last two digits form a number divisible by 4.
- A number is divisible by 8 if its last three digits form a number divisible by 8.
Example: 3456 is divisible by 2 (ends in 6), by 4 (56 รท 4 = 14), and by 8 (456 รท 8 = 57).
๐ก Memory hook: Powers of 2 check the tail โ bigger power, longer tail!
1. Divisibility rules based on the last digits (2, 4, 5, 8, 10)
Divisibility by Last Digits
A number is divisible by certain divisors if its last one or more digits satisfy specific conditions. This method exploits the structure of our base-10 number system, where powers of 10 share common factors with these divisors.
Intuition: Since , higher powers of 10 are divisible by 2, 5, and 10. The remainder when dividing by these numbers depends only on the trailing digits.
Core Rules:
- Divisible by 2: Last digit is 0, 2, 4, 6, or 8 (even)
- Divisible by 5: Last digit is 0 or 5
- Divisible by 10: Last digit is 0
- Divisible by 4: Last two digits form a number divisible by 4
- Divisible by 8: Last three digits form a number divisible by 8
Consequence: These rules allow instant divisibility checks without full division, since for .
Example: 3456 is divisible by 2 (last digit 6 is even), by 4 (56 รท 4 = 14), but not by 8 (456 รท 8 = 57 remainder 0).
Which of the following numbers is divisible by 4?
โ๏ธ 2. Divisibility rules based on the sum of digits (3, 9) and alternating sums (11)
โ Digit Sum Magic
- A number is divisible by 3 if the sum of its digits is divisible by 3.
- A number is divisible by 9 if the sum of its digits is divisible by 9.
- A number is divisible by 11 if the alternating sum (first digit minus second plus third minus fourth...) is divisible by 11.
- You can repeat the digit sum process until you get a single digit.
Example: 5427 โ 5+4+2+7 = 18 โ 1+8 = 9, so 5427 is divisible by both 3 and 9. For 11: 5-4+2-7 = -4, not divisible by 11.
๐ก Memory hook: Add for 3 and 9, alternate for 11!
2. Divisibility rules based on the sum of digits (3, 9) and alternating sums (11)
Divisibility by Digit Sums
A number is divisible by 3 or 9 if the sum of its digits is divisible by the same number. For 11, use the alternating sum (subtract and add digits alternately).
Intuition: In base 10, and , so each digit contributes its face value to the remainder. For 11, , creating alternating signs.
Core Rules:
- Divisible by 3: Sum of all digits is divisible by 3
- Divisible by 9: Sum of all digits is divisible by 9
- Divisible by 11: Alternating sum (rightmost digit positive, then subtract next, add next, etc.) is divisible by 11
- The digit sum rule can be applied repeatedly until a small number is reached
Consequence: These rules reduce large number checks to simple arithmetic on single digits.
Example: 2457 has digit sum , divisible by 9, so 2457 is divisible by 9. Alternating sum: , not divisible by 11.
Find the missing digit such that the four-digit number is divisible by 9.
โ๏ธ 3. Factor-based reasoning and combining rules for composite divisors (e.g., 6, 15)
๐ Combo Rules
- A number is divisible by 6 if it passes both the 2-test and the 3-test.
- A number is divisible by 15 if it passes both the 3-test and the 5-test.
- For any composite number, check divisibility by all its prime factors.
- The factors must be coprime (share no common factors) for this shortcut to work perfectly.
Example: 120 is divisible by 6 because it ends in 0 (divisible by 2) and 1+2+0 = 3 (divisible by 3).
๐ก Memory hook: Split composites into prime pieces, check each piece!
3. Factor-based reasoning and combining rules for composite divisors (e.g., 6, 15)
Composite Divisibility Rules
A number is divisible by a composite number if it is divisible by all prime factors (or coprime factor pairs) of that composite. This follows from the fundamental theorem of arithmetic.
Intuition: If where , then divisibility by requires simultaneous divisibility by both and . We combine simpler tests to check composite divisors.
Core Rules:
- Divisible by 6: Must be divisible by both 2 and 3 (even number with digit sum divisible by 3)
- Divisible by 15: Must be divisible by both 3 and 5 (digit sum divisible by 3, last digit 0 or 5)
- Divisible by 12: Must be divisible by both 3 and 4
- This method works only when factors are coprime; otherwise use LCM logic
Consequence: Composite divisibility reduces to checking multiple simpler rules simultaneously, avoiding complex division.
Example: 120 is divisible by 6 because it is even (divisible by 2) and (divisible by 3).
Which of the following numbers is divisible by 6?
โ๏ธ 4. Basic intuition and proofs behind why divisibility rules work
๐ง Why It Works
- Our number system uses base 10, so each digit position is a power of 10.
- For divisibility by 2 or 5: since 10 = 2 ร 5, all higher place values are automatically divisible.
- For divisibility by 3 or 9: powers of 10 leave remainder 1 when divided by 3 or 9, so only digit sums matter.
- For divisibility by 11: powers of 10 alternate between remainder 1 and -1 when divided by 11.
Example: 234 = 2ร100 + 3ร10 + 4ร1. Since 100 โก 1 (mod 3) and 10 โก 1 (mod 3), we get 2+3+4 (mod 3).
๐ก Memory hook: Place values hide patterns โ divisibility rules reveal them!
4. Basic intuition and proofs behind why divisibility rules work
Why Divisibility Rules Work
Divisibility rules are consequences of modular arithmetic applied to the decimal representation , where are digits. The behavior of determines which digits matter.
Intuition: Each digit contributes to the total. The remainder modulo depends on . When or , simple patterns emerge.
Core Principles:
- For : Only the last digits matter (e.g., 4, 8, 5, 10)
- For : All digits contribute equally, so digit sum matters (e.g., 3, 9)
- For : Digits alternate in sign (e.g., 11)
- Proofs use the fact that
Consequence: All divisibility rules derive rigorously from properties of powers of 10 in modular arithmetic.
Example: For , since , we have , so .
According to the theory, if a number divides , which digits of a large number determine its divisibility by ?
โ๏ธ 5. Applications: Packaging optimization algorithms and load balancing in IT
๐ฆ Real-World Speed Hacks
- Packaging: Check if 1248 items can be packed into boxes of 6 without opening a calculator (yes: even number, digit sum 15 divisible by 3).
- Load balancing: Distribute 5427 tasks across 9 servers evenly (yes: digit sum 18 divisible by 9, so 603 tasks per server).
- Batch processing: Quickly verify if data chunks are divisible by 10 for decimal alignment.
- Inventory systems: Instantly check if stock quantities split evenly across warehouses.
Example: A warehouse has 3600 units. Divisible by 2, 3, 5, 9, 10 โ can split into 2, 3, 4, 5, 6, 9, 10, 12, 15, 18, 20... boxes.
๐ก Memory hook: Divisibility = instant yes/no without division!
5. Applications: Packaging optimization algorithms and load balancing in IT
Practical Applications of Divisibility
Divisibility rules enable rapid feasibility checks in resource allocation problems, where items must be grouped evenly without remainder. These appear in logistics, computing, and manufacturing.
Intuition: When distributing items into groups of size , divisibility of by determines whether perfect partitioning is possible without waste or splitting.
Core Applications:
- Packaging optimization: Checking if 1248 items fit exactly into boxes of 12 (test: divisible by 3 and 4)
- Load balancing: Distributing tasks across 8 servers requires total task count divisible by 8
- Batch processing: Verifying dataset sizes are multiples of batch size (e.g., 64, 128) before training
- Inventory management: Ensuring stock quantities align with case pack sizes
Consequence: Quick mental divisibility checks prevent costly computational overhead or physical waste in large-scale operations.
Example: A warehouse has 4560 units. To pack in boxes of 15, check: last digit 0 (divisible by 5) and digit sum (divisible by 3), so yes.
A warehouse needs to pack items into boxes of . According to the divisibility rules for , which of the following total item counts will fit exactly into the boxes without any items left over?