Number System & Divisibility

RoadmapsAptitude

Scenario

Type one wrong digit into a credit card field and it rejects you before any bank is contacted. The card's last digit is a check digit, chosen so the whole number satisfies the Luhn rule (a divisibility-style checksum) - a property a CPU verifies in microseconds.

Mental model

Numbers are just modular clocks.

Every number system operation breaks down into repeating cycles. Divisibility is simply checking if a number lands perfectly at the '12 o'clock' mark of a specific cycle.

Formula

Divisibility rules: by 2 -> last digit even. By 3 -> digit sum divisible by 3. By 4 -> last 2 digits divisible by 4. By 5 -> ends in 0 or 5. By 6 -> divisible by both 2 and 3. By 8 -> last 3 digits divisible by 8. By 9 -> digit sum divisible by 9. By 11 -> alternating digit sum (odd positions - even positions) divisible by 11. Unit digit cyclicity: powers of 2 cycle in 4 steps (2,4,8,6), 3 cycles (3,9,7,1), 7 cycles (7,9,3,1), 8 cycles (8,4,2,6). Remainder theorem: x^n / (x+1) -> remainder 1 if n is even, x if n is odd.

Because 10^n is perfectly divisible by 2^n, higher place values do not affect the remainder for powers of 2. For 3 and 9, 10^n always leaves remainder 1, so only the digit sum matters. For unit digits, every power cycle repeats every 4 steps - find exponent mod 4 to find position in cycle.

Pattern discovery

Find remainders when powers of 10 are divided by 8.

Since 1000 is divisible by 8, what does that mean for any number ending in the same 3 digits?

Rule: Since 1000 is perfectly divisible by 8, any multiple of 1000 is too. So to check if a huge number is divisible by 8, just look at its last 3 digits.

Worked example

Problem: Find the unit digit of 7^53 + 3^29.

  1. Unit digits of powers of 7 cycle every 4 steps: 7, 9, 3, 1, 7, 9, 3, 1 ...
  2. 53 mod 4 = 1 (since 52 is divisible by 4). So 7^53 has the same unit digit as 7^1 = 7.
  3. Unit digits of powers of 3 cycle every 4 steps: 3, 9, 7, 1, 3, 9, 7, 1 ...
  4. 29 mod 4 = 1. So 3^29 has the same unit digit as 3^1 = 3.
  5. Unit digit of 7^53 + 3^29 = unit digit of (7 + 3) = unit digit of 10 = 0.

Answer: The unit digit is 0.

Problem: Is 847392 divisible by 4? By 3? By 6?

  1. Divisible by 4? Check last 2 digits: 92. Is 92 divisible by 4? 92 / 4 = 23. Yes.
  2. Divisible by 3? Sum of digits: 8+4+7+3+9+2 = 33. Is 33 divisible by 3? Yes (33 = 3 x 11).
  3. Divisible by 6? Must be divisible by BOTH 2 and 3. Last digit 2 is even (divisible by 2). Digit sum 33 divisible by 3. So yes, divisible by 6.

Answer: 847392 is divisible by 4, 3, and 6.

Shortcuts

Common mistakes

Glossary

modular
Operating in repeating cycles, like how a clock goes back to 12.
divisibility
Checking if one number can be perfectly divided by another without leaving any remainder.
exponent
A small number written above and to the right of another, showing how many times to multiply it by itself.

Recall questions

Questions & answers

If a 9-digit number 985x3678y is divisible by 72, find the value of (4x - 3y).

4

Approach: 72 = 8 x 9. For divisibility by 8: last 3 digits 78y must be divisible by 8 -> y = 4. For divisibility by 9: digit sum = 9+8+5+x+3+6+7+8+4 = 50+x must be divisible by 9 -> x = 4. So 4(4) - 3(4) = 4.

What is the remainder when 17^200 is divided by 18?

1

Approach: 17 = 18 - 1 = (-1) mod 18. So 17^200 = (-1)^200 = 1 mod 18. Remainder is 1.

Continue learning

Next: HCF & LCM

Next: Simplification & Approximation

Return to Aptitude Roadmap