Famous mathematician Srinivasa Ramanujan was a very religious person. So much that, despite having health issues in England, he stuck to his vegetarian diet until his death at young age.
Ramanujan's first Indian biographers describe him as a rigorously orthodox Hindu. He credited his acumen to his family goddess, Mahalakshmi of Namakkal. He looked to her for inspiration in his work and said he dreamed of blood drops that symbolised her male consort, Narasimha. Afterward he would receive visions of scrolls of complex mathematical content unfolding before his eyes.
Is there any specific God / Deity for the Mathematics?
e.g.: "... 'I' am the time among the mathematicians ..." [BG 10.30]. But this is not a specific deity.