Skip to main content
Live Pandit Ji
LIVE

the classical texts

Ganita Kaumudi of Narayana Pandita: 14 Chapters, AD 1356

Published 2026-11-04 | Live Pandit Ji

The Ganita Kaumudi is a Sanskrit book of arithmetic in verse by Narayana Pandita. It counts, measures, factors and arranges numbers, and it says nothing about charts, planets or the right hour to begin anything. This site files it with the ganita side of jyotish, the calculating branch, beside Bhaskara’s two mathematical books, the Lilavati and the Bijaganita, and reads it as mathematics. The text followed below is the first printed edition, prepared by Padmakara Dvivedi in Benares. Part I came out in 1936 as number 57 of the Princess of Wales Sarasvati Bhavana Texts, and Part II followed in 1942. Both volumes were read here as archive.org scans; wherever the scanned text came out garbled, the page images themselves were checked.

Who Wrote the Ganita Kaumudi?

The colophon at the end of each chapter describes the author as Narayana Pandita, नरसिंहनन्दन, the son of Narasimha. Two verses after the last chapter fill in the family. The first praises Narasimha for his learning in the Vedic and smriti texts, in the crafts, in arms and in logic; the second calls his son Narayana a helmsman on the ocean of calculation and says he composed this book of arithmetic for the learned. The colophons speak of the work as the Kaumudi, a pati or arithmetic, and the editor’s English introduction uses both forms of the title, Ganita-Kaumudi and Ganitapati-Kaumudi.

A Date Written in Number Words

The book dates itself in one of those closing verses. The year is given in bhuta-sankhya, words that stand for numbers: gaja, the elephant, for 8; naga, the mountain, for 7; and ravi, the sun, for 12. Number words of this kind run backwards, the last word supplying the first digit, so the three give Shaka 1278, and the edition prints that figure in numerals beside the words. Adding the 78 years between the Shaka count and the Common Era gives 1356, the year the editor’s introduction names for the composition. The verse also names the samvatsara, the month, the fortnight and the weekday on which the work was finished; this page converts the year only.

From Two Chapters to the Whole Book

Before this edition, the introduction says, the book was known only in part. The catalogued manuscripts held just the last two chapters, XIII and XIV, on combinations and on magic squares, and copies of that kind are kept at the India Office Library in London and at Cambridge. Colebrooke had reported such a manuscript, and Ganesa Daivajna’s Buddhivilasini, a commentary on the Lilavati, mentions the author. A complete copy surfaced among the books of the editor’s late father, Sudhakara Dvivedi. The Sanskrit preface to Part I adds a second copy from the state library of Nepal, which agreed with the press copy, and owns up to a mishap: a leaf holding verses 28, 29 and 30 of page 22 went missing at the press, so the preface prints those three verses for the reader to put back in place.

Readers of the Lilavati page will meet the name once more. Among the commentaries its 1893 edition names is a “Ganitakaumudi” known only through quotations. That edition does not say whether it means Narayana’s book, and this page leaves the question open.

Fourteen Chapters, and Where Each Number Comes From

The book calls its chapters vyavaharas. The edition prints no table of contents, so the table here is put together from the chapter endings. Six colophons print a number: the first chapter calls itself the first, and chapters IX to XIII carry theirs. Chapters II to IV come next after the first, in that order, each closed by a full colophon. Chapter XIV, on magic squares, is numbered in the editor’s introduction. That accounts for every place except V to VIII, where the printing is less tidy. After the chapter on plane figures come five headed sections, on excavations, piles of bricks, sawing, heaps of grain and shadows. They close with short endings that print no number, and their rules and examples run on one continuous count of verses. The edition does not say how the five make up four chapters, so the table keeps them together.

PlaceVyavaharaSubjectNumber from
IPrakirnakameasures, the eight operations, fractions, zero, and mixed rules including the rule of threeits colophon
IIMishrakamixtures: interest, gold of different fineness and similar sumsorder
IIIShredhiseries, ending with counts of verse metresorder
IVKshetraplane figures: triangles, four-sided figures, circlesorder
V to VIIIKhata, Chiti, Krakacha, Rashi, Chhayaexcavations, piles of bricks, sawing timber, heaps of grain, and shadows cast by a lampnot stated
IXKuttakathe pulverizer: whole-number answers to linear problemsits colophon
XVargaprakritithe affected square: whole numbers making a multiple of a square, plus a number, into a squareits colophon
XIBhagadanasplitting a number into factorsits colophon
XIIRupadyamshavatarawriting one, or another number, as a sum of unit fractionsits colophon
XIIIAnkapashacombinations and arrangements of digits and objectsits colophon
XIVBhadraganitamagic squares and other magic figuresthe introduction

Set beside Bhaskara’s books, the plan follows the Lilavati closely. The Lilavati page’s chapters run through mixtures, progressions, plane figures, excavations, stacks of bricks, the saw, heaps of grain, shadows, the pulverizer and combinations of digits in this same order, and the affected square of chapter X is a subject of the Bijaganita. Factors, unit fractions and magic squares have no chapter of their own in either of Bhaskara’s books.

Measures at the Start, Set Against Bhaskara’s

Before any arithmetic, the first chapter fixes its units, and the edition’s notes and introduction compare them with the Lilavati’s. For money, 20 cowries make a kakini, four kakinis a pana, 12 panas a dramma and 36 drammas a nishka; the verse writes that last figure as shad-varga, six squared. Bhaskara, as the introduction gives him, has 16 panas to the dramma and 16 drammas to the nishka, so a nishka holds 432 panas in one book and 256 in the other.

Length tells a different story. Both authors make a hasta of 24 angulas. Narayana then puts 10 hastas in a danda and 800 dandas in a krosha, where Bhaskara has 4 and 2,000, and a footnote in the edition observes that the two routes arrive at the same 8,000 hastas to a krosha. Four kroshas make a yojana.

For grain, 20 kudavas make a khari, and a padika is the 16th part of a kudava; the verse gives that number as nripa, king, a word that stands for 16. It sets a padika at 216 cubic angulas, again in number words, rasa, shashi and nayana, 6, 1 and 2, taken last word first. The site’s code redoes the introduction’s reckoning: a cubic hasta is 24 × 24 × 24 = 13,824 cubic angulas, or 64 padikas, so a khari of 320 padikas comes to 5 cubic hastas. That is five times the Magadha khari of a single cubic hasta that the introduction takes from Bhaskara.

Zero, and the Algebra That Took Its Place

The rules for zero come with a small example on 100. With zero added or taken away it stays 100; multiplied by zero it becomes zero; and zero’s square, its square root, its cube and its cube root are all zero. The prose after the example explains a gap. Division by zero, khahara, is left out of this arithmetic because ordinary dealings never call for it, the text says, and it has been treated in “our Bijaganita”, where algebra has a use for it. Bhaskara’s algebra deals with a number divided by zero in its own first chapter, as the Bijaganita page describes.

The editor’s introduction reads Narayana’s remark as evidence that he wrote an algebra before this book. It reports an incomplete manuscript of that algebra, running as far as the affected square, in the Sarasvati Bhavana library at Benares under the title Narayaniya Bijam. It also parts company with Sudhakara Dvivedi’s Ganakatarangini, which had assigned that algebra to a later Narayana, and points to the manuscript’s own colophon, which describes its author in the words the Ganita Kaumudi uses.

Chapter XII: One as a Sum of Unit Fractions

Chapter XII, the Rupadyamshavatara, writes one, and other amounts, as sums of fractions whose top number is one. Two of its methods give six-part answers whose figures can be read off the page images.

  • By verse 2, the first and last denominators are doubled and the rest climb by threes: 1/2 + 1/3 + 1/9 + 1/27 + 1/81 + 1/162. The same pattern with every denominator doubled is then printed for one half: 1/4 + 1/6 + 1/18 + 1/54 + 1/162 + 1/324.
  • By verses 3 and 4, taking one as the chosen number, each step removes the unit fraction whose denominator is one more than the remainder’s, and the last remainder stays as the final part: 1/2 + 1/3 + 1/7 + 1/43 + 1/1,807 + 1/3,263,442. Every denominator from the second to the fifth is one more than the product of those before it, and the sixth is the product of the other five.

The site’s code adds up each set in exact fractions, and this page will not build unless the sums come out. The two sets for one come to exactly one, and the doubled set comes to one half.

Chapter XIII: Counting Without Other Rules

Chapter XIII, the Ankapasha, is about combinations and arrangements, of digits among other things. A verse near its end makes a claim for the chapter: its calculations need no rule of three or of five, no areas or excavations, and no equations in unknown quantities. The Lilavati page already works several counting problems of this family, so none is repeated here.

Bhadraganita: the Chapter on Magic Squares

The last chapter’s name is the book’s own, भद्रगणित, the reckoning of bhadras, which here are magic squares and similar figures. Its first verse says the art was taught by the lord of the three worlds to Manibhadra, and the second sets out its essence to delight those who know diagrams and to puncture the pride of poor calculators. Verse 4 sorts squares by the length of a side. When the side divides by four, the square is samagarbha; when it is two more than a multiple of four, vishamagarbha; and when it is odd, simply vishama. Verse 8 gives the total of each line: add the numbers in all the cells and divide by the side. Its first example puts that question for squares of 16, 36 and 9 cells filled from one upward, and the printed answers are sums of 136, 666 and 45 and line totals of 34, 111 and 15.

SideCellsSum of 1 to cellsEach lineClass by verse 4
394515vishama
41613634samagarbha
52532565vishama
636666111vishamagarbha
7491,225175vishama
8642,080260samagarbha
9813,321369vishama
101005,050505vishamagarbha

The table runs verse 8’s rule over sides from 3 to 10; the three rows the example asks about match its printed answers.

Two Printed Squares, and the Number 384

Verses 10 and 11 give a way of filling the 16-cell samagarbha square that moves like the horse in chess, and verse 12 says that the numbers in every row, every column and every diagonal then come to the same total. The worked example prints two squares of 1 to 16, and the second is the first turned over its main diagonal:

181312
141127
45169
151036
114415
811510
132163
12796

The site’s code checks both squares line by line: the four rows, the four columns, the two main diagonals and the six broken diagonals that wrap around the edges. All 16 lines total 34 in each.

Verses 13 and 14 go on to count the variants: 24 for each placing of the first group of numbers, the word for it being jina, and as many again for the others. The edition’s note on the passage works the whole out as 24 × 16 = 384. The site’s code makes a count of its own by trying every 4 × 4 arrangement of 1 to 16. It finds 7,040 arrangements whose rows, columns and two main diagonals all come to 34, and 384 among them whose broken diagonals do as well. The note’s total and the code’s second figure agree; this page does not claim that the note’s variants and the code’s squares are the same squares one by one, only that the totals match.

The chapter ends by saying that more laborious kinds of square have been left out so that the book would not grow too long. In his foreword to Part II, M.D. Shastri calls the book a work meant to stand in for the Lilavati, and he makes claims for its magic squares that this page does not repeat.

Left Unsaid Here

Sanskrit verse stays off this page. The text layer of both scans garbles the Devanagari, and the three Devanagari words on this page, नरसिंहनन्दन, भद्रगणित and भागादान, the last being the name of chapter XI, were taken from lines where it reads cleanly. No chapter is given a verse count, because the scan’s verse numbers are not reliable enough to add up. The tithi and weekday in the date verse are not converted. Apart from the measures and the example on zero, the problems of chapters I to XI remain unworked here, and neither the foreword nor the introduction is followed in ranking anyone first. This page offers no file to download.

Related Pages

How jyotish divides into three branches, with the calculating books in the first, is the subject of the three skandhas page. Bhaskara’s arithmetic, with its own measures and counting problems, is on the Lilavati page, and his algebra, where the pulverizer and the affected square are worked, is on the Bijaganita page. For a much older book whose mathematics fills one of its four parts, see the Aryabhatiya page. In Hindi: गणित कौमुदी के लेखक नारायण पंडित.

The Algebra That Did Survive

Narayana sends division by zero to an algebra of his own that survives only in part. Bhaskara’s algebra survives whole, and its chapters, its cyclic method and a pair of its problems are worked through on a page of their own.

Go to the Bijaganita