On the History of the Square and Multiply Algorithm

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Aydin, Nuh, Azarian, Mohammad K., Khormali, Omid, Mtimet, Ghaya
Natura: Preprint
Pubblicazione: 2026
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866913176703991808
author Aydin, Nuh
Azarian, Mohammad K.
Khormali, Omid
Mtimet, Ghaya
author_facet Aydin, Nuh
Azarian, Mohammad K.
Khormali, Omid
Mtimet, Ghaya
contents The square-and-multiply algorithm, also known as binary exponentiation or repeated squaring, is a technique for fast exponentiation commonly used in modern cryptography and computational number theory. Despite its prominence, the historical origins of the algorithm are not known with certainty. This paper critically examines the origins and formalization of the algorithm through primary source analysis. We focus on Jamshid al-Kashi's fifteenth-century Miftah al-Hisab where the algorithm is articulated explicitly as a general method and claimed by al-Kashi as his own innovation. To contextualize this, we trace earlier instances of successive squaring in the works of al-Uqlidisi and al-Biruni, who applied these techniques for specific calculations, but did not formalize them into a general procedure. The earliest known work on this method of computation is found in Pingala's prosodic studies in ancient India (c. 200 BCE). Even though it was not fully developed as a general technique, Pingala's work seems to contain the conceptual foundation of the algorithm which is to employ the binary representation of a positive integer. By mapping this intellectual progression, the paper illustrates the historical background of an algorithm that is prominent in modern computation.
format Preprint
id arxiv_https___arxiv_org_abs_2606_00958
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle On the History of the Square and Multiply Algorithm
Aydin, Nuh
Azarian, Mohammad K.
Khormali, Omid
Mtimet, Ghaya
History and Overview
Cryptography and Security
01A30, 01A32, 11Y16, 94A60
The square-and-multiply algorithm, also known as binary exponentiation or repeated squaring, is a technique for fast exponentiation commonly used in modern cryptography and computational number theory. Despite its prominence, the historical origins of the algorithm are not known with certainty. This paper critically examines the origins and formalization of the algorithm through primary source analysis. We focus on Jamshid al-Kashi's fifteenth-century Miftah al-Hisab where the algorithm is articulated explicitly as a general method and claimed by al-Kashi as his own innovation. To contextualize this, we trace earlier instances of successive squaring in the works of al-Uqlidisi and al-Biruni, who applied these techniques for specific calculations, but did not formalize them into a general procedure. The earliest known work on this method of computation is found in Pingala's prosodic studies in ancient India (c. 200 BCE). Even though it was not fully developed as a general technique, Pingala's work seems to contain the conceptual foundation of the algorithm which is to employ the binary representation of a positive integer. By mapping this intellectual progression, the paper illustrates the historical background of an algorithm that is prominent in modern computation.
title On the History of the Square and Multiply Algorithm
topic History and Overview
Cryptography and Security
01A30, 01A32, 11Y16, 94A60
url https://arxiv.org/abs/2606.00958