Just For Fun

6174 – Kaprekar’s Constant

Here’s a random 4-digit number that I bet you didn’t know was special.

6174. 

Follow these instructions and you will (if you have done things correctly), ALWAYS end up with 6174.

1. Pick any four numbers between 0 – 9. The only rule here is you must pick at least two different numbers. For example, 5556 is fine, but 5555 is not. 
2. Arrange the four numbers in order largest to smallest to create a number.
3. Arrange the four numbers in order smallest to largest to create another number.
4. Take away the smaller number from the larger number.
5. Repeat steps 2 to 4.

Keep doing this and you will notice you will always end up with the same number – 6174.

Let’s do a couple of examples:

Example 1:

Say I chose 8352.

Arrange them largest to smallest – 8532.
Arrange them smallest to largest – 2358.

8532 – 2358 = 6174

If you try to do it for 6174, look what happens:

Arrange them largest to smallest – 7641.
Arrange them smallest to largest – 1467.

7641 – 1467 = 6174

So the process will repeat forever and ever! I’ll save you all a lot of time and just tell you that now!

Example 2:

Say I chose 1989.

Arrange them largest to smallest – 9981.
Arrange them smallest to largest – 1899.

9981 – 1899 = 8082

Arrange them largest to smallest – 8820.
Arrange them smallest to largest – 0288.

8820 – 288 = 8532

Arrange them largest to smallest – 8532.
Arrange them smallest to largest – 2358.

8532 – 2358 = 6174.

And we know what happens next!

The number 6174 has a name. It is known as Kaprekar’s Constant, named after the man who discovered this interesting property. D.R. Kaprekar (full name Dattatreya Ramchandra Kaprekar) was an Indian mathematician, who unfortunately passed away in the mid 1980s. Interestingly, Kaprekar was a school maths teacher, and all of his mathematical discoveries were made in his spare time! 

So there it is, try it for yourself. This will work for any four numbers you choose (where there are at least two different numbers). You will notice that some numbers you choose will take longer to converge to Kaprekar’s Constant. Example 1 from earlier took only two, whereas Example 2 took three. It has been shown that the maximum number of times that it will take is 8. So don’t worry, you won’t be sat there for too long! It’s just down to pot luck how many times you need to repeat the process. 

As an exercise, how many times do you need to repeat the process for the following numbers?

1. 4903
2. 7712
3. 4995
4. 5871
5. 2362

BONUS:

As a bonus, try to work out if the same phenomenon occurs with a 3-digit number. And if so, what is the special 3 digit number that you end up with?

If you think you have it, send it to me via email on sam@metatutor.co.uk and I will let you know if you got it right!

Other posts

5 common numerical mistakes – don’t make these!
In this blog, I will outline the five most common numerical mistakes …
The Kolakoski Sequence
In previous blogs, we’ve looked at some interesting integer sequences. We’ve looked …
Mastering standard deviation: a step-by-step guide
Standard deviation is the process that involves calculating the squared difference between …
How to use multipliers
In the previous blog, I explained the difference between simple and compound …
The difference between simple and compound interest
In both the foundation and higher tiers of GCSE maths, interest questions …
Times Table App Review – TimesTablesHero
Today’s blog is another review of a times tables app. I’ve already …
GCSE and A-Level Results 2023
As expected, the summer 2023 GCSE and A-Level grade attainments dropped significantly …
The Lazy Caterer’s Sequence
In previous blogs, we’ve looked at some interesting integer sequences. We’ve looked …
Ranking Bristol’s secondary schools by GCSE maths attainment
It’s nearly time for students in Bristol to go back to school …
Rounding errors
In the previous blog, in which I calculated the arc length of …
Calculating the arc length of the Clifton Suspension Bridge
In this blog, I’m going to use mathematics to calculate the arc …
How to use the table function on a calculator
The non-calculator GCSE maths exam is now out of the way, and …
5 common mistakes in higher GCSE maths – don’t make these!
Following on from the last blog, in which I discussed 5 common …
5 common mistakes in foundation GCSE maths – don’t make these!
We’re now fully in exam season. I hope your revision is going …
Times Table App Review – 10 Minutes A Day
Today’s blog is another review of a times tables app. I’ve already …
Van Eck’s Sequence
In previous blogs, we’ve looked at some interesting integer sequences. We started …
5 reasons why online tutoring doesn’t work for maths
At Metatutor, we only offer face-to-face tutoring. Even during the pandemic, when …
How to rationalise the denominator of a fraction
This blog will be a guide to rationalising the denominator of a …
GCSE and A-Level Results 2022
For the first time since 2019, GCSE and A-Level students sat their …
A guide to comparing fractions
Comparing fractions can sometimes be really easy. Take for example these two …

7 thoughts on “6174 – Kaprekar’s Constant”

  1. Pingback: Hailstone Numbers
    1. Next step is to do 5553-3555=1998, then 9981-1899=7993, then 9973-3799=6174, and then you’re done

  2. Nice article, about a fascinating topic, but there are two errors: in your first bullet point, you say “5566 is fine, but 5556 is not.” This also works for 5556 (it reaches 6174 in 5 operations) and the only 4-digit numbers that will not eventually return 6174 are repdigits. So you can have eg 1110, but not 1111. And the maximum number of operations is 7, not 8. Otherwise, good article on a very interesting topic!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.