Patterns in the digits
A number like is not just one thing , it is a string of digits: , , , . When we play with those digits, surprises pop out.
Concept
Every whole number written in our familiar system uses ten digits: . The place of a digit tells us its value. In :
- is in the thousands place, worth .
- is in the hundreds place, worth .
- is in the tens place, worth .
- is in the ones place, worth .
- So .
This is place value, and it lets digits work as a team.
Now for some games. The digit sum of a number is what you get by adding all its digits. For the digit sum is . If you take the digit sum of you get . Mathematicians call this final one-digit answer the digital root.
Digit sums are not just play. They give a quick test for divisibility by and :
- A number is divisible by if its digit sum is divisible by .
- A number is divisible by if its digit sum is divisible by .
Try : digit sum , and is divisible by . So is divisible by , check: .
Another playful pattern: reverse and subtract. Take any 3-digit number, like . Reverse the digits to get . Subtract the smaller from the bigger: . Reverse and add: . Try it with or , you keep landing on ! This is sometimes called Kaprekar's magic for digits.
For -digit numbers there is Kaprekar's constant, . Take any -digit number with at least two different digits , say . Rearrange to make the biggest and smallest possible: and . Subtract: . Repeat: rearrange to and , subtract: . Keep going. Eventually, no matter what number you started with, you reach and get stuck there.
There are dozens of such digit games. They show that numbers, like atoms, have hidden structure waiting to be poked.
Worked examples
Example 1. Find the digit sum and digital root of .
- Digit sum .
- Digital root: .
Example 2. Is divisible by ?
- Digit sum . Divisible by ? Yes.
- So is divisible by . Check: . ✓
Example 3. Take the number . Apply the "reverse and subtract" step.
- Reverse: .
- Subtract: (or ).
- Reverse the result and add: . Magic!
Example 4. Show that any 2-digit number minus its reverse is a multiple of .
- Let the number be . Reverse .
- Difference .
- So it is always a multiple of .
Try it yourself
- Find the digit sum and digital root of .
- Is divisible by ? By ?
- Try the "reverse and subtract then reverse and add" trick on . Do you reach ?
- Find the largest 4-digit number whose digit sum is .
- Find the smallest 4-digit number whose digit sum is .
- Write the number "five thousand two hundred and seven" in figures and find its digit sum.
- Challenge: Try a few rounds of the Kaprekar process from . Do you reach ?
Activity
Digit-sum check. Pick any five 3-digit numbers from a calendar, a phone book, or your textbook. Find the digit sum of each. Now divide each number by (using long division) and note the remainder. You should always find that the remainder equals the digit sum modulo (the remainder when the digit sum is divided by ). This is a beautiful, ancient trick.