On Euclid's algorithm and elementary number theory

From MaRDI portal
Publication:627201

DOI10.1016/J.SCICO.2010.05.006zbMATH Open1246.11187arXiv1506.05981OpenAlexW2145752266MaRDI QIDQ627201FDOQ627201


Authors: João F. Ferreira, Roland C. Backhouse Edit this on Wikidata


Publication date: 21 February 2011

Published in: Science of Computer Programming (Search for Journal in Brave)

Abstract: 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.


Full work available at URL: https://arxiv.org/abs/1506.05981




Recommendations




Cites Work


Cited In (10)

Uses Software





This page was built for publication: On Euclid's algorithm and elementary number theory

Report a bug (only for logged in users!)Click here to report a bug for this page (MaRDI item Q627201)