Pingala's Syllables
c. 2nd century BC · India

An Indian grammarian, counting the metres of poetry, used a system of just two signs. The idea stayed in treatises on metre; modern binary arithmetic was born in Europe almost two thousand years later.
See it in the room →Walk into the 3D room, in front of this workIn Sanskrit poetry every syllable is short or long, laghu or guru. The grammarian Pingala, around the second century BC, in his treatise on metre, the Chandaḥśāstra, described metres as sequences of shorts and longs: a binary system for describing rhythm.
In the tenth century one of his commentators, Halayudha, elaborated the Meru-prastāra, a triangular table of numbers: what Europe would later call Pascal's triangle.
Those techniques stayed inside metre and poetry. In Europe, base-two arithmetic was developed by Gottfried Leibniz, who wrote on it in 1679 and published it in 1703 in his Explanation of Binary Arithmetic.
What we don't know
Pingala's system is not modern binary numeration, and saying he “invented the computer” is an exaggeration often seen. The date of the treatise is uncertain too.
Sources
- Binary number, Wikipedia
- Pingala, Wikipedia
- Amba Kulkarni, Recursion and Combinatorial Mathematics in Chandashaastra (arXiv; University of Hyderabad)
The Method Beneath the Prayers
The Antikythera Mechanism
Seleucus's tides