Ramanujan’s religious practice was centered around the Hindu deity of Namagiri, a form of the goddess Lakshmi. He believed that Namagiri was his guiding spirit, and that his mathematical discoveries were divinely inspired. According to Ramanujan, his work was a way of seeking a deeper understanding of the divine order that governed the universe.
Ramanujan’s faith in Namagiri inspired him to pursue his mathematical studies with a deep sense of purpose and devotion. He would spend hours meditating and contemplating mathematical problems, often going without food or sleep for days at a time. His intense focus and dedication to his work were fueled by his belief that he was engaging in a sacred activity that would bring him closer to the divine.