论 Euclid 算法与初等数论
On Euclid's Algorithm and Elementary Number Theory
AI总结:
本文以 Euclid 算法和不变性为统一接口,验证并构造数论结论,提出 gcd 分配性质及两种等价的高效正有理数枚举算法。
摘要:
算法既可用于证明定理,也可用于发现新定理。本文展示了一般意义上的算法技能,尤其是不变性(invariance)概念,如何能够从 Euclid 算法导出许多结果。我们说明如何把该算法用作验证接口(即如何验证定理)以及构造接口(即如何研究并导出新定理)。我们所验证的定理均为众所周知的结果,其中大多数都包含在标准数论教材中。新结果涉及最大公约数的分配性质,以及一种以两种不同方式高效枚举正有理数的新算法。其中一种方式是已知的,由 Moshe Newman 提出;第二种是全新的,对应于有理数 Stern-Brocot 树的去森林化(deforestation)。我们证明这两种枚举都源于同一个简单算法。通过这种方式,我们构造了一个 Stern-Brocot 枚举算法,其时间和空间复杂度与 Newman 算法相同。文中还简要回顾了 Stern 和 Brocot 的原始论文。
英文摘要:
Algorithms can be used to prove and to discover new theorems. This paper shows how algorithmic skills in general, and the notion of invariance in particular, can be used to derive many results from Euclid's algorithm. We illustrate how to use the algorithm as a verification interface (i.e., how to verify theorems) and as a construction interface (i.e., how to investigate and derive new theorems). The theorems that we verify are well-known and most of them are included in standard number theory books. The new results concern distributivity properties of the greatest common divisor and a new algorithm for efficiently enumerating the positive rationals in two different ways. One way is known and is due to Moshe Newman. The second is new and corresponds to a deforestation of the Stern-Brocot tree of rationals. We show that both enumerations stem from the same simple algorithm. In this way, we construct a Stern-Brocot enumeration algorithm with the same time and space complexity as Newman's algorithm. A short review of the original papers by Stern and Brocot is also included.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。