Mathematical fiction is a genre of creative fictional work, where mathematics and mathematicians play important roles. It is defined as any work “containing mathematics or mathematicians” but the form and the medium of the work is not important as it can still be treated as mathematical fiction. This genre can be in the form of short stories, novels or plays; comic books; films, videos, or audios.
The oldest extant work of mathematical fiction is The Birds, a comedy by the Ancient Greek playwright Aristophanes, which was performed in 414 BC. One of the earliest, more modern works in this genre is Flatland: A Romance of Many Dimensions by schoolmaster, Edwin Abbott Abbott in 1884.
The genre of mathematical fiction may have existed since ancient times, but was only recently rediscovered as a genre of literature. It has become a growing body of literature attracting a growing body of readers. For example, Abbot’s Flatland spawned a sequel in the 21st century: a novel titled Flatterland by Ian Stewart and published in 2001.
The genre is not seen as a ‘popular’ one, however there are numerous novels, short stories etc. that are under this genre. Take a look at the Goodreads list, I think you will be surprised. https://www.goodreads.com/shelf/show/math-fiction
Have you used math in any of your stories?
Have you read any of the books on the list?