Explainer
Piṅgala’s mountain
The meru-prastāra
Draw one square on top, two beneath it, three beneath those, and so on. Put one in the top square and in the two end squares of every row; in each other square put the sum of the two squares above it.
Halāyudha’s commentary on Chandaḥśāstra 8.34–35, in paraphrase
Where the triangle comes from
A Sanskrit syllable is light, a laghu, or heavy, a guru. A metre is a pattern of them. Piṅgala’s Chandaḥśāstra, a treatise on prosody of about 300 BCE, asks how many metres of n syllables have exactly k heavy ones, and answers in two terse sūtras that Halāyudha’s tenth-century commentary unpacks into a table: Mount Meru, the mountain at the centre of the world, spread out row by row. Each entry is the sum of the two above it. The table is what later Europe called Pascal’s triangle; Pascal published his Traité in 1665.
The instrument
The first mode counts by syllables. Hover over or tap a cell to see the metres it counts, written as the tradition wrote them, with । for a light syllable and ऽ for a heavy one. The second mode changes the question: a light syllable lasts one mātrā, a heavy one lasts two, so how many metres last m mātrās in all? The counts are 1, 2, 3, 5, 8, 13, each the sum of the two before it. Virahāṅka stated the rule around 700 CE and Hemacandra again in 1150; Fibonacci’s Liber Abaci is from 1202.
The six operations
Piṅgala’s chapter sets out six procedures on metres: listing them all (prastāra), counting them (saṅkhyā), finding the pattern with a given number (naṣṭa), finding the number of a given pattern (uddiṣṭa), counting the light syllables (lagakriyā) and measuring the space needed to write them out (adhvayoga). The third and fourth are, in substance, conversion between a number and its binary expansion, read from the right.
Where it went
Nārāyaṇa Paṇḍita, in the Gaṇitakaumudī of 1356, generalised the mountain to count compositions with bounded parts, and Śārṅgadeva used the same device in the Saṅgītaratnākara to rank the rhythms of music. Two talks at the project’s Gaṇita Sammelan in January 2025, by Aditya Dwivedi and Jay Kant Mandal, were on exactly these two extensions.
Sources
- Piṅgala, Chandaḥśāstra, chapter 8, with Halāyudha’s Mṛtasañjīvanī.
- Jay Kant Mandal, “Naṣṭa and uddiṣṭa of druta-meru in Saṅgītaratnākara”, and Aditya Dwivedi, “An overview of Aṅkapāśa in Gaṇitakaumudī”, Gaṇita Sammelan, 21 January 2025.