Every Sanskrit metre is a row of short and long syllables. More than two thousand years ago Piṅgala asked a simple question: how many rows can there be, and how do you find any one of them? A thousand years later Halāyudha drew the answer as a mountain of numbers.1
Two kinds of syllable लघु · गुरु
Say a line of Sanskrit verse aloud and some syllables pass quickly while others are held. The poets called the quick one laghu, light, and the held one guru, heavy. A laghu takes one mātrā, one beat of time; a guru takes two. A metre, chandas, is a fixed row of the two.
In the last chapter of his Chandaḥśāstra, Piṅgala stops naming metres and starts playing with the two marks themselves. He shortens them to two letters, la and ga, and asks: if a metre has a given number of syllables, what are all the rows it could be?
Piṅgala's list प्रस्तार
His way of listing them, prastāra, “spreading out”, needs only one rule, used again and again. Start with the two one-syllable metres, ga and la. To list the metres one syllable longer, write the list out twice: add a ga to the end of every row in the first copy and a la to every row in the second.
Each new syllable doubles the list. Look down the first column of the three-syllable list: ga, la, ga, la. The second goes in pairs, the third in fours. Because the order is fixed, every metre has its own number, and Piṅgala gave two more rules: one to find a metre's number, uddiṣṭa, and one to get a metre back from its number alone, naṣṭa, “the lost”. A list drawn in the sand is easily wiped away; the number is enough to bring any row back.2
Choose how many syllables, then tap each one to switch it between guru and laghu.
Syllables
Number 5of 8
its place in Piṅgala's list of every three-syllable pattern
ग ग लऽऽ।5 mātrāsgaṇas: taत
Uddiṣṭa · from the metre to its number
Start with 1 and read from the right. From the first laghu on, double at each laghu; at a guru, double and take away one.
Start: 1
syllable 3, ल: 1 × 2 = 2
syllable 2, ग: 2 × 2 − 1 = 3
syllable 1, ग: 3 × 2 − 1 = 5
Mahāvīra's shortcut (about 850 CE): write 1, 2, 4, 8 … over the syllables, add the numbers over the laghus, and add one.3
1ऽ2ऽ4।
4 + 1 = 5
Naṣṭa · from the number back to the metre
If the number halves, write laghu and halve it. If not, write guru, add one and halve.
5 is odd: write ग, (5 + 1) ÷ 2 = 3
3 is odd: write ग, (3 + 1) ÷ 2 = 2
2 halves: write ल, 2 ÷ 2 = 1
Read down: ग ग ल, the metre you made.
Saṅkhyā · how many metres of three syllables?
Piṅgala does not double 3 times. Going down, he writes 2 when the number halves and 0, śūnya, when one must be taken away. Coming back up from 1, he doubles at each 0 and multiplies the number by itself at each 2.4
Down:3 → 02 → 21 → 0
Up:1× 2 = 2squared = 4× 2 = 8
See all 8 in Piṅgala's order
Share your metre
Halāyudha's mountain मेरु
Some questions need more than a list. How many three-syllable metres have exactly one short syllable? You could write all eight and count. In the 10th century, at Ujjain, the commentator Halāyudha gave a way to see every such answer at once. He called it the meru-prastāra, the spreading-out like Meru, the mountain at the centre of the world, and he told his readers how to draw it:
Draw one square at the top.
Under it draw two squares, each reaching halfway under the one above. Under those draw three, then four, for as many rows as you need.
Write 1 in the top square.
In every other square, write the sum of the two squares just above it.
Halāyudha's instructions, in our own words, after the translation in Jayant Shah's paper.
That is all. Yet the mountain knows the answer to every counting question about la and ga. Row three reads 1, 3, 3, 1: one metre with no short syllable, three with one, three with two, and one with three. The squares at the edges have only one square above them, so they stay 1: there is only one way to be all guru, and one way to be all laghu.5
Build the mountain
Add a row at a time and watch each number made from the two above it. Tap any number to see the metres it counts.
Tap any number on the mountain.
Add up each row: 2, 4, 8. Each row holds every metre of its length, twice as many as the row before.
Share your mountain
Did Piṅgala draw a mountain?
Piṅgala's book ends with the same two words said twice:
Halāyudha read the second of these as Piṅgala's instruction to build the meru, and later readers mostly followed him. Others read both as the rule you have just seen at the foot of the mountain: each new length is “full”, twice the length before. Scholars have argued over it for well over a century, and the question is still open.6
What is clear is that the mountain did not begin with Halāyudha. Around the 7th century the metrician Virahāṅka already gave two ways to build these counts. One he called the sūci, the “needle”, made by adding up running sums, a method that goes back to the metre chapter of Bharata's Nāṭyaśāstra. The other he called the meru, the “mountain”: two squares at the top, and below them each square the sum of the two above. He noticed that the two give the same numbers. So the idea grew from teacher to student over many centuries, with each writer finding a neater way to draw it.
The later prosodists also learnt the eight three-syllable rows by heart, as the eight gaṇas, in a single memory string: यमाताराजभानसलगाyamātārājabhānasalagā. Each syllable, read with the two after it, gives the gaṇa it names: ya-mā-tā is la ga ga, the ya-gaṇa.
यya।ऽऽ
मmaऽऽऽ
तtaऽऽ।
रraऽ।ऽ
जja।ऽ।
भbhaऽ।।
नna।।।
सsa।।ऽ
The people who counted the metres
Piṅgala पिङ्गल
about the 3rd–2nd century BCE
Wrote the Chandaḥśāstra, the root text on metre, in eight chapters of very short sutras. Its last chapter turns metre into a game of two marks: how to list every pattern, find one from its number, find the number of one, and count them all. Tradition makes him a younger brother of Pāṇini, or the same person as Patañjali; nothing is known of his life.1
A metrician who wrote in Prakrit. His Vṛttajātisamuccaya gives two ways to build the same table of counts: the sūci, the “needle”, made from running sums, and the meru, the “mountain”, where each cell is the sum of the two above. It is the oldest clear account of the mountain in the sources read.
Wrote the Mṛtasañjīvanī, a commentary on Piṅgala, at Ujjain in the time of the Paramāra king Muñja. He gives the plainest recipe for the mountain, and reads it into Piṅgala's last two sutras, pare pūrṇam. He also wrote a well-known Sanskrit word-book, if the two Halāyudhas are one man.1
Piṅgala's two syllables still keep time today, in poetry, in music and in everyday speech.9
chandasछन्दस्
metre, the measure of a verse
Chandas is one of the six Vedāṅgas, the limbs of learning that help keep the Veda: you cannot chant a hymn rightly without knowing its measure.
✦ The Gāyatrī, an old metre of three lines of eight syllables, is still chanted at sunrise in Hindu homes today.
Share this word
laghuलघु
light, short, small
Piṅgala's short syllable, worth one mātrā, and the la of his lists.
✦ In Carnatic music a laghu is still a part of the tāla, the beat cycle; and in Hindi a laghukathā is a short story.
Share this word
guruगुरु
heavy, long, weighty
Piṅgala's long syllable, worth two mātrās, and the ga of his lists. The same word names a teacher: someone whose words carry weight.
✦ Carnatic tāla still counts a guru, a span of eight beats; and “guru” has gone into English and many other languages.
Share this word
mātrāमात्रा
a measure
The time-measure of a syllable: a laghu is one mātrā, a guru two. Later metricians counted whole metres by mātrās instead of syllables, and found a famous row of numbers there too.7
✦ The beats of a tāla are called mātrās, and every child learning to write Hindi learns the vowel signs as mātrās.
Share this word
Notes
Dates are uncertain. For Piṅgala the sources give the 3rd–2nd century BCE, about 200 BCE, or as wide as 600–200 BCE, and one scholar calls the text late. Halāyudha is placed in the 10th century (about 950 in one paper), though one paper puts him in the 13th. Virahāṅka is dated between 600 and 800 CE.
Amba Kulkarni notes that the prastāra was written out on sand, which is why a way to get back a lost row, naṣṭa, was needed.
Today we would see a two-symbol number system here. Write ga as 0 and la as 1 and read the pattern backwards: you get the row number less one, in what is now called binary, the notation Leibniz set out in 1695. Row 5, ga ga la, becomes 100, which is four. Kulkarni points out that Piṅgala's order is the mirror of the modern one and counts from 1; Shah calls Mahāvīra's place-value method the nearest the Indian mathematicians came to binary numbers. Whether Piṅgala meant his lists as numbers is still argued.
Halving and squaring reaches 2 to the power n in far fewer steps than doubling n times. Donald Knuth (1981) calls this method of powers the binary method. Kim Plofker's example, as summarised by Wikipedia, is 2⁷ = 128 by three doublings and two squarings, just as the counter above shows for seven syllables. Sutra 8.29 uses śūnya, “empty”, as a mark in the working; Plofker suggests this may be the first known explicit reference to zero, a claim that is still open.
This triangle of numbers is the one known in Europe as Pascal's triangle. Blaise Pascal wrote on it in 1653 (printed 1665); Montmort (1708) and de Moivre (1730) gave it his name, and Apianus had printed it in 1527. In China it is credited to Jia Xian, whose work is lost, by Yang Hui in 1261, and in Persia it goes back to al-Karajī. Its numbers are what are now called binomial coefficients: Kulkarni gives row 6 as 1, 6, 15, 20, 15, 6, 1, the same as the mountain. Which account is earliest is disputed; the Codex sets out both sides.
Albrecht Weber (19th century) said nothing in Piṅgala's words points to the mountain. Ludwig Alsdorf (1933) defended Halāyudha, suggesting without evidence that the repeated sutra was added later to point to it. Jayant Shah agrees with Weber about these two sutras, which he reads as the rule that each new length has twice the patterns of the last, but traces the counting itself to another sutra of Piṅgala's, ekottarakramaśaḥ pūrvapṛktā lasaṃkhyā, found only in the Yajur recension. The Agni and Garuḍa Purāṇas also join “pare pūrṇaṃ, pare pūrṇaṃ” to the meru-prastāra, which suggests Halāyudha had an older source.
Counted by mātrās, the number of metres runs 1, 2, 3, 5, 8, 13, 21, each the sum of the two before. Parmanand Singh finds these counts in Virahāṅka, in Gopāla's commentary (1133–1135) and in Hemacandra (about 1150), before Leonardo of Pisa wrote of the same numbers in 1202. Today they are called the Fibonacci numbers. No route from the Indian works to Leonardo is known.
The marks । for laghu and ऽ for guru are the ones Indian school books use today. Piṅgala himself writes the syllables as la and ga.
On laghu, guru and mātrā in Carnatic tāla, see the Wikipedia article on tāla: a laghu has a variable number of beats, a guru eight.
References
Piṅgala's sutras are given in IAST from Anandajoti Bhikkhu's edition, which follows the Kāvyamālā text with Halāyudha's commentary. The way each rule is worked follows Jayant Shah's paper and Amba Kulkarni's. The English renderings are our own. See also Jyā: the word that became sine, where Āryabhaṭa packs a whole table into one verse.