Mathematics
T1
In Pingala's Chandahsutra (~200 BCE), four short aphorisms describe a recursive algorithm: halve the number, double when zero, square when halved, subtract one when odd. The output is 2ⁿ for n syllables of a Sanskrit metre. Leibniz publishes binary arithmetic in 1703. Modern exponentiation-by-squaring (the cryptographic core of every TLS handshake) follows the same recurrence. Pingala wrote it down 1,900 years earlier, for poetic prosody.
From the source
“multiply by two when zero ”
Well-supported
Featured in 3 articles
- The Buddha's math exam: counting to 10⁵³ in the Lalitavistara
Published July 5, 2026
- Counting to a trillion in the Vedic era: the Yajurveda's ladder of tens
Published July 5, 2026
- Pingala's binary exponentiation algorithm — ~200 BCE, for counting Sanskrit metres
Published May 26, 2026