Ganita Kaumudi is a treatise on mathematics written by Indian mathematician Narayana Pandit in 1356. It was an arithmetical treatise alongside the other algebraic treatise called "Bijganita Vatamsa" by Narayana Pandit. It was written as a commentary on the Līlāvatī by Bhāskara II.
Ganita Kaumudi contains many results from combinatorics and continued fractions. In the text Narayana Pandit used the knowledge of simple recurring continued fraction in the solutions of indeterminate equations of the type . Narayana Pandit noted the equivalence of the figurate numbers and the formulae for the number of combinations of different things taken so many at a time.
The book contains a rule to determine the number of permutations of n objects and a classical algorithm for finding the next permutation in lexicographic ordering though computational methods have advanced well beyond that ancient algorithm. Donald Knuth describes many algorithms dedicated to efficient permutation generation and discuss their history in his book The Art of Computer Programming.
Rules for writing a fraction as a sum of unit fractions
Unit fractions were known in Indian mathematics in the Vedic period: the Śulba Sūtras give an approximation of √2 equivalent to . Systematic rules for expressing a fraction as the sum of unit fractions had previously been given in the Gaṇita-sāra-saṅgraha of Mahāvīra (c. 850). Nārāyaṇa's Gaṇita-kaumudi gave a few more rules: the section bhāgajāti in the twelfth chapter named aṃśāvatāra-vyavahāra contains eight rules. The first few are:
- Rule 3. To express a fraction as a sum of unit fractions:
- Pick an arbitrary number i such that is an integer r, write
- and find successive denominators in the same way by operating on the new fraction. If i is always chosen to be the smallest such integer, this is equivalent to the greedy algorithm for Egyptian fractions, but the Gaṇita-Kaumudī's rule does not give a unique procedure, and instead states evam iṣṭavaśād bahudhā" ("Thus there are many ways, according to one's choices.")
- Calculate as , , , and so on, and write
- "Translation of Ganita Kaumudi with Rationale in modern mathematics and historical notes" by S L Singh, Principal, Science College, Gurukul Kangri Vishwavidyalaya, Haridwar
- Ganita Kaumudi, Volume 1 - 2, Nārāyana Pandita (Issue 57 of Princess of Wales Sarasvati Bhavana Granthamala: Abhinava nibandhamālā Padmakara Dwivedi Jyautishacharya 1936)
- Kusuba, Takanori (2004), "Indian Rules for the Decomposition of Fractions", in Charles Burnett; Jan P. Hogendijk; Kim Plofker; et al., Studies in the History of the Exact Sciences in Honour of David Pingree, Brill, ISBN 9004132023, ISSN 0169-8729