QQ登录

只需一步,快速开始

神秘数字6174(转帖)

[复制链接]
kson 发表于 2010-6-15 08:43 | 显示全部楼层 |阅读模式 来自: 中国–广东–佛山–南海区 电信

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?加入牧夫(请注明天文爱好者,否则无法通过审核,请勿使用gmail/outlook/aol/icloud邮箱注册)

×


神秘数字6174

6174 初看一点也不起眼,也许你会问它有什么神秘的呢?

我们先进行一番计算,选择一个4位数,每位上的数都不能相同(也就是不能是1111,2222,3333,4444..),

例如选择2009(今年年份),先对这个数上的每位数字重新洗一下,得到最大的数是9200,最小的数是0029,两者相减,对结果再按照上述规则继续下去

9200— 0029=9171

9711—1179= 8532

8532—2358= 6174

7641—1467= 6174

.........
现在我们再随机选一个数:比如1234,那么

4321—1234 =3087

8730—0378= 8352

后面就不用再算了。6174这个数就是印度数学家Dattaraya Ramchandra Kaprekar发现的Kaprekar常数——任何4位数,你都可以在7步内计算得到6174(如果没得到,肯定算错了;-))。

其它位数有的也有相应的Kaprekar常数
2(位数)         无
3         495
4         6174
5         无
6         549945, 631764
7         无
8         63317664, 97508421
9         554999445, 864197532
10           6333176664, 9753086421, 9975084201

Kaprekar还发现过很多奇异的Kaprekar数(平方后,按位数相加得到原数),如下(引用维基百科):

9^2 = 81 ... 8+1 = 9

45^2 = 2025 ... 20+25 = 45

55^2 = 3025 ... 30+25 = 55

99^2 = 9801 ... 98+01 = 99

703^2 = 494209 ... 494+209 = 703

999^2 = 998001 ... 998+001 = 999

2728^2 = 7441984 ... 744+1984 = 2728

4950^2 = 24502500 ... 2450+2500 = 4950

5050^2 = 25502500 ... 2550+2500 = 5050

7272^2 = 52881984 ... 5288+1984 = 7272

7777^2 = 60481729 ... 6048+1729 = 7777

9999^2 = 99980001 ... 9998+0001 = 9999

17344^2 = 300814336 ... 3008+14336 = 17344

22222^2 = 493817284 ... 4938+17284 = 22222

77778^2 = 6049417284 ... 60494+17284 = 77778

82656^2 = 6832014336 ... 68320+14336 = 82656

95121^2 = 9048004641 ... 90480+04641 = 95121

99999^2 = 9999800001 ... 99998+00001 = 99999

187110^2 = 35010152100 ... 35010+152100 = 187110

318682^2 = 101558217124 ... 101558+217124 = 318682

329967^2 = 108878221089 ... 108878+221089 = 329967

351352^2 = 123448227904 ... 123448+227904 = 351352

356643^2 = 127194229449 ... 127194+229449 = 356643

390313^2 = 152344237969 ... 152344+237969 = 390313

461539^2 = 213018248521 ... 213018+248521 = 461539

466830^2 = 217930248900 ... 217930+248900 = 466830

499500^2 = 249500250000 ... 249500+250000 = 499500

500500^2 = 250500250000 ... 250500+250000 = 500500

533170^2 = 284270248900 ... 284270+248900 = 533170

538461^2 = 289940248521 ... 289940+248521 = 538461

609687^2 = 371718237969 ... 371718+237969 = 609687

643357^2 = 413908229449 ... 413908+229449 = 643357

648648^2 = 420744227904 ... 420744+227904 = 648648

670033^2 = 448944221089 ... 448944+221089 = 670033

681318^2 = 464194217124 ... 464194+217124 = 681318

791505^2 = 626480165025 ... 626480+165025 = 791505

812890^2 = 660790152100 ... 660790+152100 = 812890

818181^2 = 669420148761 ... 669420+148761 = 818181

851851^2 = 725650126201 ... 725650+126201 = 851851

857143^2 = 734694122449 ... 734694+122449 = 857143

961038^2 = 923594037444 ... 923594+037444 = 961038

994708^2 = 989444005264 ... 989444+005264 = 994708

999999^2 = 999998000001 ... 999998+000001 = 999999
 楼主| kson 发表于 2010-6-15 08:44 | 显示全部楼层 来自: 中国–广东–佛山–南海区 电信
Features
icon
Mysterious number 6174
by Yutaka Nishiyama


Anyone can uncover the mystery

Anyone can uncover the mystery

The number 6174 is a really mysterious number. At first glance, it might not seem so obvious. But as we are about to see, anyone who can subtract can uncover the mystery that makes 6174 so special.
Kaprekar's operation

In 1949 the mathematician D. R. Kaprekar from Devlali, India, devised a process now known as Kaprekar's operation. First choose a four digit number where the digits are not all the same (that is not 1111, 2222,...). Then rearrange the digits to get the largest and smallest numbers these digits can make. Finally, subtract the smallest number from the largest to get a new number, and carry on repeating the operation for each new number.

It is a simple operation, but Kaprekar discovered it led to a surprising result. Let's try it out, starting with the number 2005, the digits of last year. The maximum number we can make with these digits is 5200, and the minimum is 0025 or 25 (if one or more of the digits is zero, embed these in the left hand side of the minimum number). The subtractions are:

5200 - 0025 = 5175
7551 - 1557 = 5994
9954 - 4599 = 5355
5553 - 3555 = 1998
9981 - 1899 = 8082
8820 - 0288 = 8532
8532 - 2358 = 6174
7641 - 1467 = 6174

When we reach 6174 the operation repeats itself, returning 6174 every time. We call the number 6174 a kernel of this operation. So 6174 is a kernel for Kaprekar's operation, but is this as special as 6174 gets? Well not only is 6174 the only kernel for the operation, it also has one more surprise up it's sleeve. Let's try again starting with a different number, say 1789.

9871 - 1789 = 8082
8820 - 0288 = 8532
8532 - 2358 = 6174

We reached 6174 again!
6174: a very mysterious number...

A very mysterious number...

When we started with 2005 the process reached 6174 in seven steps, and for 1789 in three steps. In fact, you reach 6174 for all four digit numbers that don't have all the digits the same. It's marvellous, isn't it? Kaprekar's operation is so simple but uncovers such an interesting result. And this will become even more intriguing when we think about the reason why all four digit numbers reach this mysterious number 6174.
Only 6174?

The digits of any four digit number can be arranged into a maximum number by putting the digits in descending order, and a minimum number by putting them in ascending order. So for four digits a,b,c,d where

9 ≥ a ≥ b ≥ c ≥ d ≥ 0

and a, b, c, d are not all the same digit, the maximum number is abcd and the minimum is dcba.

We can calculate the result of Kaprekar's operation using the standard method of subtraction applied to each column of this problem:
        a        b        c        d
-        d        c        b        a
                               
        A        B        C        D

which gives the relations
D = 10 + d - a (as a > d)
C = 10 + c - 1 - b = 9 + c - b (as b > c - 1)
B = b - 1 - c (as b > c)
A = a - d

for those numbers where a>b>c>d.

A number will be repeated under Kaprekar's operation if the resulting number ABCD can be written using the initial four digits a,b,c and d. So we can find the kernels of Kaprekar's operation by considering all the possible combinations of {a, b, c, d} and checking if they satisfy the relations above. Each of the 4! = 24 combinations gives a system of four simultaneous equations with four unknowns, so we should be able to solve this system for a, b, c and d.

It turns out that only one of these combinations has integer solutions that satisfy 9 ≥ a ≥ b ≥ c ≥ d ≥ 0. That combination is ABCD = bdac, and the solution to the simultaneous equations is a=7, b=6, c=4 and d=1. That is ABCD = 6174. There are no valid solutions to the simultaneous equations resulting from some of the digits in {a,b,c,d} being equal. Therefore the number 6174 is the only number unchanged by Kaprekar's operation — our mysterious number is unique.

For three digit numbers the same phenomenon occurs. For example applying Kaprekar's operation to the three digit number 753 gives the following:

753 - 357 = 396
963 - 369 = 594
954 - 459 = 495
954 - 459 = 495

The number 495 is the unique kernel for the operation on three digit numbers, and all three digit numbers reach 495 using the operation. Why don't you check it yourself?
How fast to 6174?

It was about 1975 when I first heard about the number 6174 from a friend, and I was very impressed at the time. I thought that it would be easy to prove why this phenomenon occurred but I could not actually find the reason why. I used a computer to check whether all four digit numbers reached the kernel 6174 in a limited number of steps. The program, which was about 50 statements in Visual Basic, checked all of 8991 four digit numbers from 1000 to 9999 where the digits were not all the same.

The table below shows the results: every four digit number where the digits aren't all equal reaches 6174 under Kaprekar's process, and in at most seven steps. If you do not reach 6174 after using Kaprekar's operation seven times, then you have made a mistake in your calculations and should try it again!
Iteration        Frequency
0        1
1        356
2        519
3        2124
4        1124
5        1379
6        1508
7        1980
Which way to 6174?

My computer program checked all 8991 numbers, but in his article Malcolm Lines explains that it is enough to check only 30 of all the possible four digit numbers when investigating Kaprekar's operation.

As before let's suppose that the four digit number is abcd, where

9 ≥ a ≥ b ≥ c ≥ d ≥ 0.

Let us calculate the first subtraction in the process. The maximum number is 1000a+100b+10c+d and the minimum number is 1000d+100c+10b+a. So the subtraction is:

1000a + 100b + 10c + d - (1000d + 100c + 10b + a)
= 1000(a-d) + 100(b-c) + 10(c-b) + (d-a)
= 999(a-d) + 90(b-c)

The possible value of (a-d) is from 1 to 9, and (b-c) is from 0 to 9. By running through all the possibilities, we can see all the possible results from the first subtraction in the process. These are shown in Table 1.
Table 1: Numbers after the first subtraction in Kaprekar's process

Table 1: Numbers after the first subtraction in Kaprekar's process

We are only interested in numbers where the digits are not all equal and

a ≥ b ≥ c ≥ d,

therefore we only need to consider those where (a-d) ≥ (b-c). So we can ignore the grey region in Table 1 which contains those numbers where

(a-d) < (b-c).

Now we arrange the digits of the numbers in the table in descending order, to get the maximum number ready for the second subtraction:
Table 2: Maximum numbers, ready for the second subtraction

Table 2: Maximum numbers, ready for the second subtraction

We can ignore the duplicates in Table 2 (the grey regions), and are left with just 30 numbers to follow through the rest of the process. The following figure shows the routes which these numbers take to reach 6174.
How these 30 numbers reach 6174

How these 30 numbers reach 6174

From this figure you can see how all the four digit numbers reach 6174 and reach it in at most seven steps. Even so I still think it is very mysterious. I guess Kaprekar, who discovered this number, was extremely clever or had a lot of time to think about it!
Two digits, five digits, six and beyond...

We have seen that four and three digit numbers reach a unique kernel, but how about other numbers? It turns out that the answers for those is not quite as impressive. Let try it out for a two digit number, say 28:

82 - 28 = 54
54 - 45 =   9
90 - 09 = 81
81 - 18 = 63
63 - 36 = 27
72 - 27 = 45
54 - 45 =   9

It doesn't take long to check that all two digit numbers will reach the loop 9→81→63→27→45→9. Unlike for three and four digit numbers, there is no unique kernel for two digit numbers.

But what about five digits? Is there a kernel for five digit numbers like 6174 and 495? To answer this we would need to use a similar process as before: check the 120 combinations of {a,b,c,d,e} for ABCDE such that

9 ≥ a ≥ b ≥ c ≥ d ≥ e ≥ 0

and

abcde - edcba = ABCDE.

Thankfully the calculations have already been done by a computer, and it is known that there is no kernel for Kaprekar's operation on five digit numbers. But all five digit numbers do reach one of the following three loops:

71973→83952→74943→62964→71973
75933→63954→61974→82962→75933
59994→53955→59994

As Malcolm Lines points out in his article, it will take a lot of time to check what happens for six or more digits, and this work becomes extremely dull! To save you from this fate, the following table shows the kernels for two digit to ten digit numbers (for more see Mathews Archive of Recreational Mathematics). It appears that Kaprekar's operation takes every number to a unique kernel only for three and four digit numbers.
Digits        Kernel
2        None
3        495
4        6174
5        None
6        549945, 631764
7        None
8        63317664, 97508421
9        554999445, 864197532
10          6333176664, 9753086421, 9975084201

Beautiful, but is it special?

We have seen that all three digit numbers reach 495, and all four digit numbers reach 6174 under Kaprekar's operation. But I have not explained why all such numbers reach a unique kernel. Is this phenomenon incidental, or is there some deeper mathematical reason why this happens? Beautiful and mysterious as the result is, it might just be incidental.

Let's stop and consider a beautiful puzzle by Yukio Yamamoto in Japan.

If you multiply two five digit numbers you can get the answer 123456789. Can you guess the two five digit numbers?
If you multiply two five digit numbers you can get the answer 123456789. Can you guess the two five digit numbers?

This is a very beautiful puzzle and you might think that a big mathematical theory should be hidden behind it. But in fact it's beauty is only incidental, there are other very similar, but not so beautiful, examples. Such as:
If you multiply two five digit numbers you can get the answer 123456784. Can you guess the two five digit numbers?

(We can give you a hint to help you solve these puzzles, and here are the answers.)

If I showed you Yamamoto's puzzle you would be inspired to solve it because it is so beautiful, but if I showed you the second puzzle you might not be interested at all. I think Kaprekar's problem is like Yamamoto's number guessing puzzle. We are drawn to both because they are so beautiful. And because they are so beautiful we feel there must be something more to them when in fact their beauty may just be incidental. Such misunderstandings have led to developments in mathematics and science in the past.

Is it enough to know all four digit numbers reach 6174 by Kaprekar's operation, but not know the reason why? So far, nobody has been able to say that all numbers reaching a unique kernel for three and four digit numbers is an incidental phenomenon. This property seems so surprising it leads us to expect that a big theorem in number theory hides behind it. If we can answer this question we could find this is just a beautiful misunderstanding, but we hope not.

Note from the editors: many readers noticed that repeatedly adding up the digits of any of the kernels of Kaprekar's operation always equals 9. Find out why in this follow-up to the article.
References

    * Kaprekar, D. R., "Another Solitaire Game", Scripta Mathematica, vol 15, pp 244-245 (1949)
    * Gardner, Martin, "The Magic Numbers of Doctor Matrix", Japanese version, Tokyo: Kinokuniya (1978)
    * Lines, Malcolm E., A number for your thoughts: facts and speculations about numbers..., Bristol: Hilger (1986)
    * Nishiyama, Yutaka, Kurashi no Algorithm, Kyoto: Nakanishiya (1993)
開信光電 見地高遠
回复 顶~ 砸~

使用道具 举报

大众天文 发表于 2010-6-15 22:33 | 显示全部楼层 来自: 中国–北京–北京 光环新网
没明白 脑袋大
回复 顶~ 砸~

使用道具 举报

本版积分规则

APP下載|手机版|爱牧夫天文淘宝店|牧夫天文网 ( 公安备案号21021102000967 )|网站地图|辽ICP备19018387号

GMT+8, 2024-12-22 13:08 , Processed in 0.067100 second(s), 6 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表