4-digit trick, predicting a final number

  • Thread starter checkitagain
  • Start date
  • Tags
    Final
In summary, the 4-digit trick is a mathematical strategy that involves selecting four digits and performing a series of operations to predict a final number within a specific range. It is not a reliable method for predicting a final number and has no practical application. There are also variations of the trick that may have different levels of success.
  • #1
checkitagain
138
1
Ask someone to pick 4 digits, but not all of them be the same.

Zeroes are allowed as digits

Form the largest number possible and the smallest number
possible, including annexing any 0-digits to the left,
Subtract the smaller number from the larger number,
Write the difference as a 4-digit number, with any zeroes
written on the left as part of the difference. Then,
again, form the largest number and the smallest numbers
possible, respectively, and subtract them. Repeat the
process as above.

Keep repeating this process until the resulting number
doesn't change anymore.



Then tell the person that their final number they end up

with is 6174.


Example:

The person chooses 0, 0, 0, and 1.


1000
-0001
------
0999


Then:

9990
-0999
------
8991



And then the person who chose the digits would continue
in this manner until one unchanging number is reached...
 
Last edited:
Mathematics news on Phys.org
  • #2
checkitagain said:
until one unchanging number is reached...

Is it?
The very example you give of 999 seems to fall into a loop:

9990 - 0999 = 8991
8991 - 1998 = 6993
6993 - 3996 = 2997
7992 - 2997 = 4995
5994 - 4995 = 999
9990 - 0999 = 8991
...

Edit: quick computer search on all 4-digit numbers (in this case, including numbers with all digits the same, palindromes, etc. - all numbers from 0000 to 9999):

206 cases end with the loop ['0000']
704 cases end with the loop ['8712', '6534']
1594 cases end with the loop ['9090', '8181', '6363', '7272', '5454']
3748 cases end with the loop ['0900', '0810', '0630', '0720', '0540']
3748 cases end with the loop ['9990', '8991', '6993', '7992', '5994']
 
Last edited:
  • #3
Dodo said:
Is it?
The very example you give of 999 seems to fall into a loop:

9990 - 0999 = 8991

8991 - 1998 = 6993 . . . . . This should be 9981 - 1899, and the other corrections
would be similar to this.


6993 - 3996 = 2997

7992 - 2997 = 4995

5994 - 4995 = 999

9990 - 0999 = 8991
...

checkitagain said:
Form the largest number possible and the smallest number
possible, including annexing any 0-digits to the left,...


No, for each subtraction, the first number must be composed
of nonincreasing digits and the second number must be composed
of nondecreasing digits.
 
Last edited:
  • #4
Ahhh, sorry. So you sort the digits down, then up, and subtract.

I repeated the experiment, this time obtaining:
10 cases end with the loop ['0000'] (presumably, the all-digits-equal cases)
9990 cases end with the loop ['7641']

I was curious about how long it takes to reach the fixed number, and got this, for the above 9990 cases:
24 cases took 0 steps (presumably, the 4! permutations of '6174')
648 cases took 1 step
1008 cases took 2 steps
2184 cases took 3 steps
1152 cases took 4 steps
1830 cases took 5 steps
2064 cases took 6 steps
1080 cases took 7 steps

But the question, of course, is *why* does it always end with 6174.

Edit: removed comment about no other permutation of 6174 being reached first. Program bug, sorry.

Edit 2: Hand-made diagram (hopefully correct) of the sorted differences.
Edit 3: Working with 3 digits only, the situation is far more simple.
 
Last edited:
  • #5
Dodo said:
Ahhh, sorry. So you sort the digits down, then up, and subtract.

I repeated the experiment, this time obtaining:
10 cases end with the loop ['0000'] (presumably, the all-digits-equal cases)
9990 cases end with the loop ['7641']

I was curious about how long it takes to reach the fixed number, and got this, for the above 9990 cases:
24 cases took 0 steps (presumably, the 4! permutations of '6174')
648 cases took 1 step
1008 cases took 2 steps
2184 cases took 3 steps
1152 cases took 4 steps
1830 cases took 5 steps
2064 cases took 6 steps
1080 cases took 7 steps

But the question, of course, is *why* does it always end with 6174.

Edit: removed comment about no other permutation of 6174 being reached first. Program bug, sorry.

Edit 2: Hand-made diagram (hopefully correct) of the sorted differences.
Edit 3: Working with 3 digits only, the situation is far more simple.

Nice Dodo!

Could you perhaps do the same with 5 digits and 6 digits and see if they also end in the same number??
 
  • #6
If I'm not mistaken, they don't. Pity that there is not a general rule to be found.

With 5 digits, you can end up with 99954, 98622, 98532, 97731, 97641, 97533, 97443, 96642, 96543 or 95553 (or 00000).

With 6 digits, you end on 995544, 886320, 876420, 875430, 875421, 866322, 885420, 766431 or 665442 (or 000000).

With an odd number of digits, I guess you are bound to end always on a number containing a 9, because the middle digit is the same when sorting up or down...

With 2 digits the situation is easier to understand. The difference of a number minus its reverse is a multiple of 9, and there are only so many possibilities; they happen to lie in a circle, 90 -> 81 -> 63 -> 72 -> 54 -> 90.
 
  • #7
Here is a nice graph:

770px-KaprekarRoutineFlowGraph6174.svg.png


More information at: http://en.wikipedia.org/wiki/6174_(number)
 
  • #8
Ah, nice, Micromass, thanks for the reference (:shame: I forgot to look up Wikipedia).

This problem sounds like a remote cousin of the 3n+1 conjecture, doesn't it? (BTW, I don't have at hand Guy's "Unsolved problems", but I wonder if someone can check if Kaprekar's process is mentioned there, and related to something else. Or maybe is not as much "unsolved" as to merit being there.)
 
  • #9
Dodo said:
Ah, nice, Micromass, thanks for the reference (:shame: I forgot to look up Wikipedia).

This problem sounds like a remote cousin of the 3n+1 conjecture, doesn't it?

It sure does. The level of difficulties involved to prove something meaningful seems the same.
 

1. How does the 4-digit trick work?

The 4-digit trick is a mathematical strategy that involves selecting four digits and performing a series of operations on them to predict a final number. It works by exploiting patterns in mathematics and applying them to the chosen digits.

2. Can the 4-digit trick be used to predict any final number?

No, the 4-digit trick can only be used to predict a final number within a specific range. It is usually limited to numbers between 0 and 9999.

3. Is the 4-digit trick a reliable method for predicting a final number?

The 4-digit trick is not a scientifically proven method for predicting a final number. It is simply a mathematical trick that may work in some cases but is not guaranteed to produce accurate results.

4. Are there any variations of the 4-digit trick?

Yes, there are several variations of the 4-digit trick that involve different operations and patterns. Some variations may work better than others depending on the chosen digits and final number.

5. Is there any practical application for the 4-digit trick?

The 4-digit trick is mostly used for entertainment purposes or as a learning tool to understand mathematical patterns and operations. It does not have any practical application in real-world scenarios.

Similar threads

  • General Math
Replies
2
Views
1K
Replies
3
Views
1K
Replies
4
Views
386
Replies
3
Views
1K
  • Computing and Technology
Replies
4
Views
744
  • Programming and Computer Science
Replies
12
Views
1K
Replies
6
Views
1K
Replies
5
Views
706
Back
Top