The sequence now widely known as the Fibonacci sequence (1, 1, 2, 3, 5, 8, 13, 21, 34, 55, …) was first systematically studied by Sanskrit prosodists working on the enumeration of metrical patterns in poetry. The earliest reference is in Pingala’s Chandahshastra (datable variously between the 3rd and 2nd centuries BCE), with substantial development by Virahanka (c. 600–800 CE), Gopala (c. 1135 CE) and Acharya Hemachandra (c. 1150 CE). Leonardo of Pisa, called Fibonacci, introduced the sequence to European mathematics in 1202 CE in his Liber Abaci through the rabbit-population problem. The Indian work predates Fibonacci’s by between 350 and 1400 years depending on which source is taken as the earliest. In modern Indian mathematical history, the sequence is sometimes called the Pingala-Hemachandra sequence.
The prosody problem that produced the sequence
Sanskrit verse is built on syllables of two durations: laghu (light, one mora, marked U) and guru (heavy, two morae, marked −). A line of total duration n morae can be formed by various arrangements of laghu and guru syllables; the number of arrangements is a question of combinatorial enumeration. If a line has n morae:
- A line of 1 mora has one arrangement: U (a single laghu). Total = 1.
- A line of 2 morae has two arrangements: UU (two laghus) or − (one guru). Total = 2.
- A line of 3 morae has three arrangements: UUU, U−, −U. Total = 3.
- A line of 4 morae has five arrangements: UUUU, UU−, U−U, −UU, −−. Total = 5.
- A line of 5 morae has eight arrangements. Total = 8.
The pattern 1, 2, 3, 5, 8, 13, 21, … emerges directly from the prosody problem. The recurrence relation is straightforward: an arrangement of n morae either ends in a laghu (preceded by an arrangement of n−1 morae) or ends in a guru (preceded by an arrangement of n−2 morae). Thus F(n) = F(n−1) + F(n−2).
Pingala’s matrameru
Pingala, dated to roughly the 3rd to 2nd century BCE, wrote the Chandahshastra (Treatise on Metre) in eight chapters of Sanskrit sutras. The text gave the first systematic enumeration of Sanskrit poetic meters and developed the combinatorial methods to count them. Pingala’s specific contribution to the sequence appears in the eighth chapter under the term matrameru (the “mountain of morae”), a tabular arrangement that enumerates the count of arrangements of n morae. The cryptic Pingala sutra misau cha (“the two are mixed”, chapter 8, sutra 32) refers to combining the previous two terms to obtain the next, which is the Fibonacci recurrence.
Pingala’s Chandahshastra also contains, in the same eighth chapter, what is now recognised as a binary number system used to enumerate metres, and a procedure (the meru-prastara) that is mathematically equivalent to Pascal’s triangle (predating Pascal by roughly 1800 years).
Virahanka, Gopala and Hemachandra
Pingala’s compressed sutra form left room for later commentators to elaborate the enumeration explicitly.
- Virahanka (c. 600–800 CE): in his Vrttajatisamuccaya, a treatise on Prakrit metres, explicitly stated the recurrence rule for the sequence. He wrote that the number of moric metres of n morae equals the sum of the numbers for (n−1) and (n−2) morae. This is the first explicit statement of the Fibonacci recurrence in any source.
- Gopala (c. 1135 CE): Jain mathematician who computed values in the sequence up to F(7) = 21 in his work on metres.
- Acharya Hemachandra (1089–1172 CE): a Jain polymath at the court of the Chaulukya king Kumarapala in Gujarat. In his Chhandonushasana (c. 1150 CE), Hemachandra wrote: “The sum of the last and the one before it is the number of the next mātrā-vṛtta,” extending the sequence further. Hemachandra worked roughly 50 years before Fibonacci.
The Indian historical mathematics community now commonly uses the name Pingala-Hemachandra sequence when discussing the priority, with Pingala for the sutra origin and Hemachandra for the most accessible exposition.
Fibonacci’s 1202 problem
Leonardo of Pisa, known as Fibonacci, encountered Indian mathematical methods through Arabic translations during his travels in the Mediterranean. His 1202 Liber Abaci (“Book of Calculation”) introduced Hindu-Arabic numerals to European mathematics and contained the famous rabbit-population problem: starting with one pair of rabbits that produces a new pair each month and assumes that each new pair starts producing after one month, how many pairs are there after n months? The answer follows the same recurrence as the Sanskrit moric enumeration.
Whether Fibonacci had direct knowledge of the Indian prosodists is not documented; his sources are the Arab mathematicians and the broader Mediterranean mathematical tradition, who themselves had access to Indian mathematical results through the 8th to 12th century transmissions. Independent rediscovery is also plausible, since the recurrence is simple enough that several mathematical traditions might arrive at it.
For what it’s worth, on the priority claim
For what it’s worth, the priority claim is uncontested in academic mathematics history: Pingala, Virahanka, Gopala and Hemachandra all wrote about the sequence before Fibonacci. What is less commonly noted is that the Indian context was prosody (a combinatorial problem about poetry) while the European context was demographic modelling. The two problems map onto the same recurrence but originate in different intellectual concerns. The Sanskrit work also stayed embedded in linguistics and metre theory rather than evolving into number-theoretic abstraction, which is what Fibonacci numbers became in 19th and 20th century European mathematics.
Related Sanskrit prosody mathematics
Pingala’s Chandahshastra is rich enough that several mathematical objects appear in it beyond the Fibonacci sequence:
- Binary representation: Pingala used a binary system (laghu and guru) to enumerate metres, two thousand years before Leibniz’s binary arithmetic of 1679.
- Meru-prastara: a triangular arrangement counting the number of metres of n morae with exactly k laghus; the rows of meru-prastara are the rows of what is now called Pascal’s triangle.
- Sankhya: the enumeration of the total count of metres of n morae.
- Lagakriya: counting the metres with exactly k laghus.
Each of these is now in modern combinatorics under different names; the Sanskrit prosody work anticipated several distinct combinatorial concepts.
Common questions
Was Pingala definitely 200 BCE?
Pingala’s dating is debated. Traditional sources identify him as a brother of Panini, placing him in the 4th to 3rd century BCE. Modern scholars usually date the Chandahshastra somewhere between the 3rd and 2nd centuries BCE based on text-historical evidence. Some place it as late as the 2nd century CE. The dating affects how many centuries he predates Fibonacci by, but not the priority itself; Pingala definitely precedes Fibonacci by at least a thousand years on any plausible dating.
Did Fibonacci know about the Indian work?
Direct evidence is absent. Fibonacci’s stated sources are Arab mathematicians he encountered during his Mediterranean travels, and Indian mathematical results had been transmitted through Arabic translations from the 9th century onward (al-Khwarizmi’s work on Hindu numerals being the most famous channel). Whether the specific prosody-derived sequence reached the Arab transmission stream is not documented, so Fibonacci’s “rediscovery” remains formally independent but textually intertwined with the earlier Indian work.
Why is the sequence still called Fibonacci?
The name “Fibonacci sequence” was popularised by the French mathematician Édouard Lucas in the 1870s. Lucas was working in the European tradition and used the European name. The Indian sources had not been studied in detail in European mathematics history until the 19th century, and the renaming has only happened gradually in modern India-aware sources. “Pingala-Hemachandra sequence” is now used by some Indian mathematics historians; “Fibonacci sequence” remains the dominant English name in mathematics.
A limitation worth noting
The specific Pingala sutra misau cha is cryptic; its identification with the Fibonacci recurrence depends on the commentaries of Halayudha (10th century) and other later commentators, who provide the interpretation. The interpretation is the conventional and well-supported one, but it does mean that the “Pingala discovered Fibonacci numbers” claim rests on the validity of the standard commentarial reading of an aphoristic source. The Virahanka and Hemachandra statements of the recurrence are explicit and not in doubt.
For further reading, the Fibonacci sequence entry on Wikipedia covers the Indian history in its dedicated section, and the entry on the Sanskrit prosodist Pingala documents the Chandahshastra and its modern mathematical reception.
