14th century Jain writer Merutunga, in his Vichara-shreni, states that king Chandra Pradyota of Avanti died on the same night as the Jain leader Mahavira. He was succeeded by his son Palaka, who ruled for 60 years. After that, the Nandas rose to power at Pataliputra and captured the Avanti capital Ujjayini. The Nanda rule, spanning the reigns of nine kings, lasted for 155 years, after which the Mauryas came to power. According to the Shvetambara Jain tradition, Mahavira died in 527 BCE, which would mean that the Nanda rule—according to Merutunga's writings—lasted from 467 BCE to 312 BCE. According to historian R. C. Majumdar, while all the chronological details provided by Merutunga cannot be accepted without corroborative evidence, they cannot be dismissed as entirely unreliable unless contradicted by more reliable sources. Nanda kings The Buddhist, Jain, and Puranic traditions all state that there were 9 Nanda kings, but the sources differ considerably on the names of these kings. According to the Greco-Roman accounts, the Nanda rule spanned two generations. For example, the Roman historian Curtius (1st century CE) suggests that the dynasty's founder was a barber-turned-king, and that his son was the dynasty's last king, who was overthrown by Chandragupta. The Greek accounts name only one Nanda king—Agrammes or Xandrames—who was a contemporary of Alexander. "Agrammes" may be a Greek transcription of the Sanskrit word "Augrasainya" (literally "son or descendant of Ugrasena", Ugrasena being the name of the dynasty's founder according to the Buddhist tradition). The Puranas, compiled in India in c. 4th century CE (but probably based on earlier sources), also state that the Nandas ruled for two generations. According to the Puranic tradition, the dynasty's founder was Mahapadma: the Matsya Purana assigns him an incredibly long reign of 88 years, while the Vayu Purana mentions the length of his reign as only 28 years. The Puranas further state that Mahapadma's 8 sons ruled in succession after him for a total of 12 years, but name only one of these sons: Sukalpa. A Vayu Purana script names him as "Sahalya", which apparently corresponds to the "Sahalin" mentioned in the Buddhist text Divyavadana. Dhundhi-raja, an 18th-century Puranic commentator, names one of the Nanda kings as Sarvatha-siddhi, and states that his son was Maurya, whose son was Chandragupta Maurya. However, the Puranas themselves do not talk of any relation between the Nanda and the Maurya dynasties. According to the Sri