Random Finds

The Number That Almost Every Four-Digit Number Turns Into

ほぼすべての4桁の数がたどり着く不思議な数

Pick almost any four-digit number, do a simple subtraction trick a few times, and you will land on the same number every time: 6174.

ほぼどんな4桁の数を選んでも、簡単な引き算のトリックを数回繰り返すと、必ず同じ数、6174に行きつく。

日本語で読む

Tip: select any English words to see them in Japanese.

  • #Mathematics
  • #Puzzles
  • #History

In three lines

  • Take almost any four-digit number, repeatedly subtract its smallest digit-arrangement from its largest, and you always end at 6174.
  • Every starting number reaches 6174 in at most seven steps, and 6174 then stays fixed forever.
  • An Indian schoolteacher found this in the 1940s or 1950s, but it stayed obscure until Martin Gardner wrote about it in Scientific American in 1975.

What is it?

Pick any four-digit number whose digits are not all the same, say 3524. Arrange its digits from largest to smallest (5432) and from smallest to largest (2345), then subtract: 5432 − 2345 = 3087. Do the same thing to the result, again and again. This process is called the Kaprekar routine. No matter which number you start with, you always arrive at the same place: 6174. Once you reach it, you are stuck there, because sorting 6174’s digits gives 7641 and 1467, and 7641 − 1467 = 6174 again.

The surprising part

Following 3524 through the routine takes only three steps to reach 6174. More strikingly, mathematicians have checked every possible four-digit number and found that every one reaches 6174 in seven steps or fewer; none take longer. The only numbers that never arrive are “repdigits,” like 1111 or 7777, where every digit is the same, because sorting them largest-to-smallest and smallest-to-largest gives the same number both times, so the subtraction collapses straight to zero. A similar trick works on three-digit numbers, but their fixed point is a different number, 495. The discovery is credited to D. R. Kaprekar, a schoolteacher in Devlali, India, with no formal advanced training in mathematics, who published it around 1949–1955. His work stayed largely unknown outside India until Martin Gardner featured it in his Scientific American column in 1975, which made 6174 famous worldwide.

Why I find it inspiring

It is strange that simple subtraction can act like a magnet, pulling thousands of different starting numbers toward one single number. That kind of behavior, many paths leading to one outcome, usually comes up in chaos theory or complex systems, not basic arithmetic homework. I like that an amateur found it just by playing with numbers for fun, with no research grant or formal training behind it. It makes me want to try the trick on my own phone number, and wonder what other everyday patterns are hiding in plain sight, waiting for someone curious enough to notice them.

Key phrases

  • descending order — 降順
  • converge — 収束する
  • repdigit — 全ての桁が同じ数字の数
  • iteration — 繰り返し
  • funnel into — 一点に集まっていく

日本語版

3行でいうと

  • ほぼどんな4桁の数でも、桁を並べ替えた最大の数から最小の数を繰り返し引いていくと、必ず6174に行きつく。
  • どの数から始めても、7回以内の計算で6174に到達し、以降はずっとそのままになる。
  • インドの学校教師が1940年代か1950年代にこれを見つけたが、1975年にマーティン・ガードナーが『サイエンティフィック・アメリカン』誌で紹介するまで、ほとんど知られていなかった。

それは何か

桁がすべて同じではない4桁の数を選ぶ。例えば3524とする。桁を大きい順に並べた数(5432)と小さい順に並べた数(2345)を作り、引く:5432 − 2345 = 3087。この結果にも同じ操作を繰り返す。これを「カプレカーの操作」と呼ぶ。どの数から始めても、最終的に行き着く場所は同じで、それが6174だ。6174に到達すると、そこから動かなくなる。6174の桁を並べ替えると7641と1467になり、7641 − 1467 = 6174と、また同じ数に戻るからだ。

驚きのポイント

3524からこの操作を行うと、わずか3回で6174に到達する。さらに驚くべきことに、数学者たちはあり得るすべての4桁の数を調べ、どの数も7回以内の計算で6174に到達することを確認している。それより長くかかる数は一つもない。この操作が決して6174に行き着かない唯一の例外は、1111や7777のように、すべての桁が同じ数字でできた数だ。大きい順と小さい順に並べても同じ数になってしまい、引き算が最初からゼロになってしまうためだ。3桁の数でも似た操作が成り立つが、その場合の行き着く先は別の数、495だ。この発見は、インドのデヴラリで学校教師をしていたD・R・カプレカーによるもので、彼には数学の正式な高等教育の経験はなく、1949年から1955年ごろにこれを発表したとされる。彼の研究はインド国外ではほとんど知られていなかったが、1975年にマーティン・ガードナーが『サイエンティフィック・アメリカン』誌のコラムで取り上げたことで、6174は世界的に有名になった。

なぜ心を動かされるか

単純な引き算が、まるで磁石のように、何千もの異なる数を一つの数へと引き寄せていくというのは不思議なことだ。多くの道筋が一つの結果に集まっていくという現象は、通常カオス理論や複雑系の話であって、基本的な算数の宿題で出てくるようなものではない。研究費も専門教育もない中で、一人のアマチュアが単に数で遊んでいるうちにこれを見つけたという点も好きだ。自分の電話番号でこのトリックを試してみたくなるし、好奇心を持った誰かに気づかれるのを待っているだけの、他の身近なパターンがまだどこかに隠れているのではないかと考えさせられる。

Sources

  1. 6174 (Kaprekar's constant) — Wikipedia
  2. Kaprekar's routine — Wikipedia
  3. D. R. Kaprekar — Wikipedia
  4. Dattatreya Ramachandra Kaprekar — MacTutor Biography, University of St Andrews
  5. Kaprekar's Constant — Math Fun Facts, Harvey Mudd College