Kaprekar常规的基础依赖行为:揭示新规律的理论和计算研究
The Base Dependent Behavior of Kaprekar's Routine: A Theoretical and Computational Study Revealing New Regularities
摘要:
考虑以下过程:取任何四位数,其中至少有两个不同的数字。然后,将原始数字的数字按升序和降序重新排列,取这两个数字,并找出两者之间的差异。最后,重复这个程序,使用差值作为新的四位数。1949年,D. R. Kaprekar成为第一个发现这个过程的人,被称为Kaprekar例程,在7次迭代中总是会产生6174。由于这个数字在应用Kaprekar例程后保持不变,因此被称为Kaprekar常数。以前的研究表明,仅有的10进制Kaprekar常数是495和6174,即3位数和4位数的情况。然而,很少有人注意到其他基地或确定哪些数字的情况下,哪些基地有一个Kaprekar常数。本文分析了Kaprekar例程在3位数情况下的行为,推导出所有3位数Kaprekar常数的表达式。此外,作者开发了一系列C++程序来分析整数遵循各自的Kaprekar常数的路径。令人惊讶的是,从这个程序中可以确定,对于3位整数,达到Kaprekar常数所需的最常见的迭代次数始终是3,无论基数如何。当作为矩阵加载时,迭代需求数据展示了一个精确的循环关系,让人想起Pascal三角形。
英文摘要:
Consider the following process: Take any four-digit number which has at least two distinct digits. Then, rearrange the digits of the original number in ascending and descending order, take these two numbers, and find the difference between the two. Finally, repeat this routine using the difference as the new four-digit number. In 1949, D. R. Kaprekar became the first to discover that this process, known as the Kaprekar Routine, would always yield 6174 within 7 iterations. Since this number remains unchanged after an application of the Kaprekar Routine, it became known as Kaprekar's Constant. Previous works have shown that the only base 10 Kaprekar's Constants are 495 and 6174, the 3-digit and 4-digit case. However, little attention has been given to other bases or determining which digit cases and which bases have a Kaprekar's Constant. This paper analyzes the behavior of the Kaprekar Routine in the 3-digit case, deriving an expression for all 3-digit Kaprekar Constants. In addition, the author developed a series of C++ programs to analyze the paths integers followed to their respective Kaprekar's Constant. Surprisingly, it was determined from this program that the most commonly required number of iterations required to reach Kaprekar's Constant for 3-digit integers was consistently 3, regardless of base. When loaded as a matrix, the iteration requirement data demonstrates a precise recurring relationship reminiscent of Pascal's Triangle.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。