Number Play | A

Question 3

Explore

Take different 4-digit numbers and try carrying out these steps. Find out what happens. Check with your friends what they got.

Question diagram 1
Check your answer with HomiSolve it yourself, then let Homi check your steps and spot mistakes.
Solution
Understand the Question
  • To carry out this process (known as Kaprekar's routine):
    1. Take any 44-digit number (with at least two different digits).
    2. Rearrange the digits in descending order to form the largest number (AA).
    3. Rearrange the digits in ascending order to form the smallest number (BB), including leading zeros if any.
    4. Subtract BB from AA to get a new number CC.
    5. Repeat the process with the digits of CC.
  • Repeating these steps will always lead to the constant number 61746174.

Step 1 · First Iteration Starting with 1234

Let the starting 44-digit number be 12341234.Diagram 1

Largest number from digits: A=4321A = 4321

Smallest number from digits: B=1234B = 1234

Subtract BB from AA:

C=AB=43211234=3087\begin{aligned} C &= A - B \\ &= 4321 - 1234 \\ &= 3087 \end{aligned}

Step 2 · Second Iteration with 3087

Using the digits of 30873087:

Largest number: A=8730A = 8730

Smallest number: B=0378B = 0378

Subtract BB from AA:

C=AB=87300378=8352\begin{aligned} C &= A - B \\ &= 8730 - 0378 \\ &= 8352 \end{aligned}

Step 3 · Third Iteration with 8352

Using the digits of 83528352:

Largest number: A=8532A = 8532

Smallest number: B=2358B = 2358

Subtract BB from AA:

C=AB=85322358=6174\begin{aligned} C &= A - B \\ &= 8532 - 2358 \\ &= 6174 \end{aligned}

Step 4 · Fourth Iteration with 6174

Using the digits of 61746174:

Largest number: A=7641A = 7641

Smallest number: B=1467B = 1467

Subtract BB from AA:

C=AB=76411467=6174\begin{aligned} C &= A - B \\ &= 7641 - 1467 \\ &= 6174 \end{aligned}

Repeating the process on 61746174 will always yield 61746174.

Answer

Carrying out these steps always reaches 61746174 (the Kaprekar constant), which then repeats indefinitely.

Common Mistakes
  • Omitting Leading Zeros: Forgetting to use leading zero(s) when arranging digits to form the smallest 44-digit number (e.g. for digits 3,0,8,73, 0, 8, 7, the smallest 44-digit combination is 03780378, not 30783078).
  • Numbers with All Identical Digits: Trying this routine with numbers like 11111111 or 22222222 results in 00000000. The routine requires at least two distinct digits.

More questions in A

Q1

Complete Table 2 with 5-digit numbers whose digits are ‘1’, ‘0’, ‘6’, ‘3’, and ‘9’ in some order. Only a coloured cell should have a number greater than all its neighbours.

The biggest number in the table is _________ . The smallest even number in the table is _________ . The smallest number greater than 50,00050,000 in the table is _________ . Once you have filled the table above, put commas appropriately after the thousands digit.

Q2

Will reversing and adding numbers repeatedly, starting with a 2-digit number, always give a palindrome? Explore and find out.*

Q3

Explore

Take different 4-digit numbers and try carrying out these steps. Find out what happens. Check with your friends what they got.

Q4

Explore

Carry out these same steps with a few 3-digit numbers. What number will start repeating?

Q5

Make some more Collatz sequences like those above, starting with your favourite whole numbers. Do you always reach 11?

Do you believe the conjecture of Collatz that all such sequences will eventually reach 11? Why or why not?

Q6

The first player says 1, 2 or 3. Then the two players take turns adding 1, 2, or 3 to the previous number said. The first player to reach 21 wins!

Play this game several times with your classmate. Are you starting to see the winning strategy? Which player can always win if they play correctly? What is the pattern of numbers that the winning player should say?

Q7

The first player says a number between 1 and 10. Then the two players take turns adding a number between 1 and 10 to the previous number said. The first player to reach 99 wins!

Play this game several times with your classmate. See if you can figure out the corresponding winning strategy in this case! Which player can always win? What is the pattern of numbers that the winning player should say this time?

← Back to Number Play