IndianSanskriti
Mathematics was first used in Music by Ancient Indians

Mathematics was first used in Music by Ancient Indians

By Vedveer Arya

Pingala (1800 BCE) of Chandasastra pioneered the mathematical study of meters. He developed advanced mathematical concepts for explaining prosody and its characteristics. Pingala was the first to establish the relationship between the theory of poetic rhythm and combinatorics much earlier than Marin Mersenne (1588-1648 AD) a French music theorist.

Shārgadeva, a Kashmiri Pandit, authored Sangitaratnākara which is a greatest treatise on Indian music (vocal & instrumental) and dance after Bharata’s Nātya Shāstra. His grandfather, Bhāskara was a Kashmiri Brāhmin and Ayurveda scholar. Yādava King Bhillama (523-530 AD) invited Bhāskara to his capital Devagiri and appointed him as Rājavaidya or royal physician. Bhāskara’s son Sodhala became Accountant-General in the court of King Bhillama. Shārgadeva was the son of Sodhala and also became Accountant-General in the court of Yādava King Singhana (541-585 AD).

ANCIENT INDIANS WERE THE FIRST TO USE MATHEMATICS IN MUSIC

In his Sangitaratnākara, Shārngadeva defined almost 264 rāgas as combination of swaras. He mathematically analyzed the permutations and combinations of swaras. He classified rāgas as Janaka rāga (parent rāga) and Janya rāga (child rāga). Seven basic swaras i.e. must be used once in Ārohanam (ascending order) and also, the seven swaras must be used once in Avarohanam (descending order) in every Janaka rāga. Each Janaka rāga can have many Janya rāgas derived from them but Janya rāga need not use seven swaras compulsorily in ascending and descending orders. He also mapped 22 shruti (octave) into seven swaras.

Shārngadeva worked extensively on the subject of permutations and combinations. He described various algorithms to list all permutations and combinations of seven swaras and notes. Shārngadeva mentioned a method of singing called “Merukhanda” which consists of varied permutations and combinations of swara patterns. Merukhanda is a mathematically sequenced prastāra of all 5040 swara patterns (7×6×5×4×3×2×1 = 5040) that can be generated from seven swaras. Actually, these combinations of swaras are factorial and can be derived mathematically.

According to Shārngadeva, the 1st row of prastāra of seven swaras starts with the natural order of swaras as s,r,g,m,p,d,n and the last 5040th row ends with the reverse order as n,d,p,m,g,r,s. He gave a mathematical formula (as shown in image) for the construction of intermediate rows. Interestingly, the algorithms described by Shārngadeva are now being used in computer programming.

You may also like

Search the website

Like us on Facebook

Get daily updates via Email

Enter your email address:

Recent Posts

Padmini Ekadashi 2026 — The Ekadashi Even the Devas Descend to Keep

Padmini Ekadashi 2026 — The Ekadashi Even the Devas Descend to Keep

The rarest Ekadashi of the entire Hindu calendar is three days away. The Padma Purana preserves a conversation between Bhagavan Krishna and Yudhishthira about a single Ekadashi the great Rishis spend lifetimes waiting for — Padmini. The Vrat Katha of Queen Padmini of Mahishmati, the lotus teaching, and why May 27, 2026 is the morning Vaishnavas across Bharata are preparing for.

Varada Chaturthi 2026 — The Rare Ganesha Day of Purushottam Maas

Varada Chaturthi 2026 — The Rare Ganesha Day of Purushottam Maas

Once every 2.5–3 years — when the rare 13th month of Adhika Maas opens — a thirteenth Vinayaka Chaturthi appears. The Mudgala Purana calls it Varada Chaturthi, the “boon-giving” Chaturthi, and holds it as the most fruit-bearing Ganesha day of the entire calendar. Today, Wednesday May 20, 2026, is that day.

Padmini Ekadashi 2026 — The Rare Ekadashi That Comes Only in Purushottam Maas

Padmini Ekadashi 2026 — The Rare Ekadashi That Comes Only in Purushottam Maas

Padmini Ekadashi 2026 falls on Wednesday, May 27 — the Shukla Paksha Ekadashi of Adhika Maas, the rarest Ekadashi in the entire Hindu calendar (it appears only every 2.5–3 years). The Padma Purana conversation between Bhagavan Krishna and Yudhishthira, the Vrat Katha of Queen Padmini, complete vrat vidhi with jagrana, mantras, and the lotus symbolism that gives the Ekadashi its name.

Ganga Dussehra 2026 — The Day Maa Ganga Came Down to Bhagiratha

Ganga Dussehra falls on Monday, May 25, 2026 — commemorating the day Maa Ganga descended from Vaikuntha to the earth through the millennia-long tapasya of King Bhagiratha. The full account from the Valmiki Ramayana, snan vidhi, dana traditions, mantras, and the teaching of sustained sincerity.

Adhik Jyeshtha Maas 2026 — The Hidden Month That Belongs to Lord Vishnu

Once every 2.5–3 years, the Hindu calendar opens a quiet thirteenth chamber — the intercalary month Lord Vishnu took for His own. A Puranic look at Adhik Jyeshtha Maas 2026 (May 2–31), the Padma Purana account of how it became Purushottam Maas, and a complete householder’s guide for its closing days.

css.php