The Rashtrakuta kings supported the popular religions of the day in the traditional spirit of religious tolerance. Scholars have offered various arguments regarding which specific religion the Rashtrakutas favoured, basing their evidence on inscriptions, coins and contemporary literature. Some claim the Rashtrakutas were inclined towards Jainism since many of the scholars who flourished in their courts and wrote in Sanskrit, Kannada and a few in Apabhramsha and Prakrit were Jains. The Rashtrakutas built well-known Jain temples at locations such as Lokapura in Bagalkot district and their loyal feudatory, the Western Ganga Dynasty, built Jain monuments at Shravanabelagola and Kambadahalli. Scholars have suggested that Jainism was a principal religion at the very heart of the empire, modern Karnataka, accounting for more than 30% of the population and dominating the culture of the region. King Amoghavarsha I was a disciple of the Jain acharya Jinasena and wrote in his religious writing, "Prashnottara Ratnamalika", "having bowed to Varaddhamana (Mahavira), I write Prashnottara Ratnamalika". The mathematician Mahaviracharya wrote in his "Ganita Sarasangraha", "The subjects under Amoghavarsha are happy and the land yields plenty of grain. May the kingdom of King Nripatunga Amoghavarsha, follower of Jainism ever increase far and wide." Amoghavarsha may have taken up Jainism in his old age.