A prosodist, not a mathematician
Piṅgala is remembered as the author of the Chandaḥśāstra, a technical treatise on Sanskrit poetic metre (chandas) — one of the six Vedāṅgas, the auxiliary sciences that support correct recitation and composition of Vedic verse. Tradition sometimes identifies him as the younger brother of Pāṇini, though the dating remains uncertain, with estimates ranging from the 5th to the 2nd century BCE. He was not, by his own framing, a mathematician at all — the mathematics emerged as a by-product of solving a purely prosodic problem.
Counting metres with two symbols
Sanskrit metre is built from syllables classified as laghu (light) or guru (heavy) — a strict binary distinction. Piṅgala needed a systematic way to enumerate every possible pattern of light and heavy syllables for a verse of a given length, so that a poet or reciter could look up any metre by its exact syllabic signature. His solution was, in effect, a binary numeral system: light and heavy syllables map onto what a modern reader would recognise instantly as 0 and 1, and his method for generating and ordering all possible combinations is a genuine algorithm for binary enumeration.
The Meru Prastara — Pascal's triangle, centuries early
To count how many metres of a given length contain a given number of heavy syllables, Piṅgala describes a triangular arrangement of numbers — the Meru Prastara ('mountain of expansion') — in which each entry is the sum of the two entries above it. This is the same construction later known in Europe as Pascal's triangle, and the same combinatorial coefficients that describe binomial expansion. Later commentators, notably Halāyudha in the 10th century CE, made the connection between Piṅgala's metre-counting device and general combinatorics explicit, extending it toward what modern readers would recognise as recursive, Fibonacci-like sequences.
A hidden mathematics inside a poetics manual
The Chandaḥśāstra's influence runs in two directions at once. Within Sanskrit literary tradition, it remained the standard reference for classifying metre for over two thousand years, shaping how poets composed and how reciters were trained. Within the history of mathematics, it stands as one of the earliest attested instances of binary notation and combinatorial reasoning anywhere — arrived at not as abstract number theory, but as the working tool of a scholar solving a very concrete problem in verse.
