There are plenty of resources about the structural and symbolic role of mathematics in aesthetic/literary works. Instead, I am looking for histories going the other way: how aesthetic/literary/philosophical ideas contributed to the development of mathematics. For example, one of the themes of *The Game of Probability* is how games of chance and the accompanying rhetoric around chance shaped the field of mathematical probability. I am struggling to find other examples that talk about the history of mathematics in this way.
Would anybody know of more texts that discuss how aesthetics contributed to mathematical development? Or at least places to look?