๐Ÿ  Home โ€บ ๐Ÿ” Number Theory โ€บ Lesson 1

๐Ÿš€ Place-Value Algebra + Proving the Divisibility Rules

๐Ÿ“– Lesson 1 of 8

๐Ÿ“Œ Key idea of this section

A number is a SUM of digit ร— place value:  253 = 2ร—100 + 5ร—10 + 3.
Rewrite that sum with distribution, and the divisibility rules prove themselves.

Sixty-second refresher, as promised. A factor divides a number exactly: 7 is a factor of 84 because 84 = 7 ร— 12 with no leftovers. A multiple comes from multiplying: 84 is a multiple of 7 for the same reason. Factors fit inside; multiples grow outside. Done!

Now the honors upgrade. In this course we never just USE a rule โ€” we prove it. The master key to every divisibility proof is writing a number as a sum of its digits times place values:

253 = 2ร—100 + 5ร—10 + 3

The rule for 9, proven

Claim: a number is divisible by 9 exactly when its digit sum is divisible by 9. Watch 231 split apart:

231 = 2ร—100 + 3ร—10 + 1                place-value expansion
    = 2ร—(99 + 1) + 3ร—(9 + 1) + 1      because 100 = 99 + 1 and 10 = 9 + 1
    = 2ร—99 + 2 + 3ร—9 + 3 + 1          distribute: aร—(b + c) = aร—b + aร—c
    = (2ร—99 + 3ร—9) + (2 + 3 + 1)      regroup: multiples of 9 in front
    = 9ร—(2ร—11 + 3ร—1) + 6              factor 9 out of the first group

Read the last line carefully: 231 equals a multiple of 9, PLUS its own digit sum (6). The first chunk is divisible by 9 no matter what, so 231 is divisible by 9 EXACTLY when its digit sum is. Here 6 is not divisible by 9, so 231 isn't either โ€” but it IS divisible by 3, because 99 and 9 are multiples of 3 too, so the very same proof gives the 3-rule for free. One proof, two rules!

The rules for 4 and 8, proven

Any number splits into "whole hundreds" plus its last two digits, and 100 = 4 ร— 25, so the hundreds part is always divisible by 4. Only the last two digits get a vote:

316 = 3ร—100 + 16 = 4ร—(3ร—25) + 16 โ†’ 16 = 4ร—4 โ†’ YES โœ…
530 = 5ร—100 + 30 = 4ร—(5ร—25) + 30 โ†’ 30 รท 4 leaves 2 โ†’ NO โŒ

For 8, go one digit deeper: 1000 = 8 ร— 125, so every whole thousand is divisible by 8, and only the last THREE digits vote:

4,128 โ†’ look at 128 โ†’ 128 = 8 ร— 16 โ†’ YES โœ…

The rule for 11, proven (negative numbers enter the story)

This time rewrite the place values with 11 in mind โ€” and notice that 10 is one LESS than 11, while 100 is one MORE than 99:

253 = 2ร—100 + 5ร—10 + 3
    = 2ร—(99 + 1) + 5ร—(11 โˆ’ 1) + 3     100 = 99 + 1, but 10 = 11 โˆ’ 1
    = 2ร—99 + 2 + 5ร—11 โˆ’ 5 + 3         distribute (watch the minus sign!)
    = (2ร—99 + 5ร—11) + (2 โˆ’ 5 + 3)     multiples of 11 in front
    = (a multiple of 11) + 0

The leftover piece is exactly the zigzag sum: first digit MINUS second, PLUS third. (For four digits it alternates a โˆ’ b + c โˆ’ d, because 1000 = 11ร—91 โˆ’ 1.) A number is divisible by 11 exactly when its zigzag sum is a multiple of 11 โ€” and remember, the multiples of 11 include 0, 11, โˆ’11, 22, โˆ’22, ...

319  โ†’ 3 โˆ’ 1 + 9 = 11      โ†’ YES โœ…   (319 = 11 ร— 29)
1,903 โ†’ 1 โˆ’ 9 + 0 โˆ’ 3 = โˆ’11 โ†’ YES โœ…   (1903 = 11 ร— 173)
245  โ†’ 2 โˆ’ 4 + 5 = 3       โ†’ NO  โŒ

Unknown digits: divisibility meets equations

Here is where honors algebra walks in. Problem: find every digit d that makes 4d2 divisible by 3.

digit sum = 4 + d + 2 = d + 6
need: d + 6 divisible by 3, where d is a digit (0 through 9)
so d + 6 could be 6, 9, 12, or 15 โ€” the multiples of 3 a digit can reach
d + 6 = 6   โ†’  d = 0      subtract 6 from both sides
d + 6 = 9   โ†’  d = 3      same move
d + 6 = 12  โ†’  d = 6
d + 6 = 15  โ†’  d = 9

Four answers: d โˆˆ {0, 3, 6, 9}. Check one: 462 = 3 ร— 154 โœ…. Notice what just happened โ€” a divisibility question turned into a tiny EQUATION, solved the same way every time. The symbol โˆˆ means "is a member of the set," by the way; you'll see it again.

The digit machine: 10a + b

Every two-digit number with tens digit a and ones digit b equals 10a + b. (Example: 54 = 10ร—5 + 4.) That tiny formula cracks a classic puzzle.

Puzzle: a two-digit number is 6 times the sum of its digits. Find it.

10a + b = 6(a + b)        translate the words into algebra
10a + b = 6a + 6b         distribute on the right side
10a โˆ’ 6a = 6b โˆ’ b         subtract 6a and subtract b from BOTH sides
4a = 5b                   simplify each side

Now think like a number theorist. The equation 4a = 5b says 4a is a multiple of 5. Since 4 and 5 share no factor (their GCF is 1), the 5 has nowhere to hide: a itself must be a multiple of 5. But a is a digit from 1 to 9, so a = 5 โ€” and then 4ร—5 = 5b gives b = 4.

The number is 54.  Check: digit sum = 5 + 4 = 9, and 6 ร— 9 = 54 โœ…

โœ๏ธ Your Turn!

  • 1.
    Is 4,128 divisible by 8? By 11?
  • 2.
    Find every digit d that makes 4d4 divisible by 9.
๐Ÿ‘€ Show the answers

Answers: 1. Last three digits: 128 = 8 ร— 16 โ†’ YES for 8. Zigzag: 4 โˆ’ 1 + 2 โˆ’ 8 = โˆ’3, not a multiple of 11 โ†’ NO for 11. 2. Digit sum = 4 + d + 4 = d + 8. Need d + 8 divisible by 9: d + 8 = 9 gives d = 1; d + 8 = 18 gives d = 10, which is not a digit โ€” rejected. So d = 1, the number is 414, and 414 = 9 ร— 46 โœ….

V.3.1