Mathematicians in LoveMathematicians in Love is a book by Rudy Rucker. The protagonist is a graduate student in mathematics, as is his rival. The ideas he is trying to put into his thesis turn out to be the keys to altering reality.
Rudy Rucker has written nonfiction about mathematics, so I expect that many of his other fictional works are influenced by mathematics.