Katapayadi system


Kaṭapayādi system of numerical notation is an ancient Indian alphasyllabic numeral system to depict letters to numerals for easy remembrance of numbers as words or verses. Assigning more than one letter to one numeral and nullifying certain other letters as valueless, this system provides the flexibility in forming meaningful words out of numbers which can be easily remembered.

History

The oldest available evidence of the use of Kaṭapayādi system is from Grahacāraṇibandhana by Haridatta in 683 CE. It has been used in Laghu·bhāskarīya·vivaraṇa written by Śaṅkara·nārāyaṇa in 869 CE.
In some astronomical texts popular in Kerala planetary positions were encoded in the Kaṭapayādi system. The first such work is considered to be the Chandra-vakyani of Vararuci, who is traditionally assigned to the fourth century CE. Therefore, sometime in the early first millennium is a reasonable estimate for the origin of the Kaṭapayādi system.
Aryabhata, in his treatise Ārya·bhaṭīya, is known to have used a similar, more complex system to represent astronomical numbers. There is no definitive evidence whether the Ka-ṭa-pa-yā-di system originated from Āryabhaṭa numeration.

Geographical spread of the use

Almost all evidences of the use of Ka-ṭa-pa-yā-di system is from South India, especially Kerala. Not much is known about its use in North India. However, on a Sanskrit astrolabe discovered in North India, the degrees of the altitude are marked in the Kaṭapayādi system. It is preserved in the Sarasvati Bhavan Library of Sampurnanand Sanskrit University, Varanasi.
The Ka-ṭa-pa-yā-di system is not confined to India. Some Pali chronograms based on the Ka-ṭa-pa-yā-di system have been discovered in Burma.

Rules and practices

Following verse found in Śaṅkaravarman's Sadratnamāla explains the mechanism of the system.

नञावचश्च शून्यानि संख्या: कटपयादय:।

मिश्रे तूपान्त्यहल् संख्या न च चिन्त्यो हलस्वर:॥

Transliteration:

nanyāvachaścha śūnyāni sankhyāḥ kaṭapayādayaḥ

miśre tūpāntyahal sankhyā na cha chintyo halasvaraḥ

Translation: na, ña and a -s, i.e., vowels represent zero. The nine integers are represented by consonant group beginning with ka, ṭa, pa, ya. In a conjunct consonant, the last of the consonants alone will count. A consonant without a vowel is to be ignored.
Explanation: The assignment of letters to the numerals are as per the following arrangement
1234567890
ka क ಕ క കkha ख ಖ ఖ ഖga ग ಗ గ ഗgha घ ಘ ఘ ഘnga ङ ಙ
ఙ ങ
ca च ಚ చ ചcha छ ಛ ఛ ഛja ज ಜ జ ജjha झ ಝ ఝ ഝnya ञ ಞ ఞ ഞ
ṭa ट ಟ ట ടṭha ठ ಠ ఠ ഠḍa ड ಡ డ ഡḍha ढ ಢ ఢ ഢṇa ण ಣ ణ ണta त ತ త തtha थ ಥ థ ഥda द ದ ద ദdha ध ಧ ధ ധna न ನ న ന
pa प ಪ ప പpha फ ಫ ఫ ഫba ब బ ബbha भ ಭ భ ഭma म ಮ మ മ
ya य ಯ య യra र ರ ర രla ल ల ల ലva व ವ వ വśa श ಶ శ ശṣa ष ಷ ష ഷsa स ಸ స സha ह ಹ హ ഹ

  • Consonants have numerals assigned as per the above table. For example, ba is always 3 whereas 5 can be represented by either nga or ṇa or ma or śha.
  • All stand-alone vowels like a and are assigned to zero.
  • In case of a conjunct, consonants attached to a non-vowel will be valueless. For example, kya is formed by, k + y + a. The only consonant standing with a vowel is ya. So the corresponding numeral for kya will be 1.
  • There is no way of representing the decimal separator in the system.
  • Indians used the Hindu–Arabic numeral system for numbering, traditionally written in increasing place values from left to right. This is as per the rule "अङ्कानां वामतो गतिः" which means numbers go from right to left.

    Variations

  • The consonant, ḷ is employed in works using the Kaṭapayādi system, like Mādhava's sine table.
  • Late medieval practitioners do not map the stand-alone vowels to zero. But, it is sometimes considered valueless.

    Usage

Mathematics and astronomy




vyāsastadarddhaṃ tribhamaurvika syāt

  • Śaṅkara·varman's Sad·ratna·mālā uses the Kaṭapayādi system. The first verse of Chapter 4 of the Sad·ratna·mālā ends with the line:




भ bhaद् dरा rāम् mबु buद् dधि dhiसि siद् dध dhaज jaन् nम maग gaणि ṇiत taश् śर raद् dधा dhāस् sम maय yaद् dभू bhūप paगी gī
423979853562951413

  • This verse encrypts the value of pi up to 31 decimal places.
गोपीभाग्यमधुव्रात-शृङ्गिशोदधिसन्धिग॥
खलजीवितखाताव गलहालारसंधर॥
ಗೋಪೀಭಾಗ್ಯಮಧುವ್ರಾತ-ಶೃಂಗಿಶೋದಧಿಸಂಧಿಗ ||
ಖಲಜೀವಿತಖಾತಾವ ಗಲಹಾಲಾರಸಂಧರ ||
This verse directly yields the decimal equivalent of pi divided by 10: pi/10 = 0.31415926535897932384626433832792
గోపీభాగ్యమధువ్రాత-శృంగిశోదధిసంధిగ |
ఖలజీవితఖాతావ గలహాలారసంధర ||
Traditionally, the order of digits are reversed to form the number, in katapayadi system. This rule is violated in this sloka.

Carnatic music

  • The melakarta ragas of the Carnatic music are named so that the first two syllables of the name will give its number. This system is sometimes called the Ka-ta-pa-ya-di sankhya. The Swaras 'Sa' and 'Pa' are fixed, and here is how to get the other swaras from the melakarta number.
  1. Melakartas 1 through 36 have Ma1 and those from 37 through 72 have Ma2.
  2. The other notes are derived by noting the quotient and remainder when one less than the melakarta number is divided by 6. If the melakarta number is greater than 36, subtract 36 from the melakarta number before performing this step.
  3. 'Ri' and 'Ga' positions: the raga will have:
  4. * Ri1 and Ga1 if the quotient is 0
  5. * Ri1 and Ga2 if the quotient is 1
  6. * Ri1 and Ga3 if the quotient is 2
  7. * Ri2 and Ga2 if the quotient is 3
  8. * Ri2 and Ga3 if the quotient is 4
  9. * Ri3 and Ga3 if the quotient is 5
  10. 'Da' and 'Ni' positions: the raga will have:
  11. * Da1 and Ni1 if remainder is 0
  12. * Da1 and Ni2 if remainder is 1
  13. * Da1 and Ni3 if remainder is 2
  14. * Da2 and Ni2 if remainder is 3
  15. * Da2 and Ni3 if remainder is 4
  16. * Da3 and Ni3 if remainder is 5
The katapayadi scheme associates dha9 and ra2, hence the raga's melakarta number is 29. 29 less than 36, hence Dheerasankarabharanam has Ma1. Divide 28 by 6, the quotient is 4 and the remainder 4. Therefore, this raga has Ri2, Ga3 and Da2, Ni3. Therefore, this raga's scale is Sa Ri2 Ga3 Ma1 Pa Da2 Ni3 SA.

Raga MechaKalyani">Kalyani (raga)">MechaKalyani

From the coding scheme Ma 5, Cha 6. Hence the raga's melakarta number is 65. 65 is greater than 36. So MechaKalyani has Ma2. Since the raga's number is greater than 36 subtract 36 from it. 65–36=29. 28 divided by 6: quotient=4, remainder=4. Ri2 Ga3 occurs. Da2 Ni3 occurs. So MechaKalyani has the notes Sa Ri2 Ga3 Ma2 Pa Da2 Ni3 SA.

Exception for [Simhendramadhyamam]

As per the above calculation, we should get Sa 7, Ha 8 giving the number 87 instead of 57 for Simhendramadhyamam. This should be ideally Sa 7, Ma 5 giving the number 57. So it is believed that the name should be written as Sihmendramadhyamam.

Representation of dates

Important dates were remembered by converting them using Kaṭapayādi system. These dates are generally represented as number of days since the start of Kali Yuga. It is sometimes called kalidina sankhya.
  • The Malayalam calendar known as kollavarsham was adopted in Kerala beginning from 825 CE, revamping some calendars. This date is remembered as āchārya vāgbhadā, converted using Kaṭapayādi into 1434160 days since the start of Kali Yuga.
  • Narayaniyam, written by Melpathur Narayana Bhattathiri, ends with the line, āyurārogyasaukhyam which means long-life, health and happiness.
In Malayalamആയുരാരോഗ്യസൌഖ്യം
In Devanagariआयुरारोग्यसौख्यम्
In IASTāyurārogyasaukhyam
Value as per Kaṭapayādi1712210