 In 640, the Raja of Tripura Dharma Fa planned a ceremony and invited five Brahmans from Etawah, Mithila and Kannauj.To compensate for their long journey, the Raja granted the Brahmans land in a place which came to be known as Panchakhanda (meaning five parts).One of the five Brahmans, Ananda Shastri of Mithila, was the ancestor of Nidhipati Shastri.