Part 1: Mathematical structure, creativity, and constraint. One, two, buckle my shoe: the patterns of poetry -- The geometry of narrative: how mathematics can structure a story -- A workshop for potential literature: mathematics and the Oulip -- Let me count the ways: the arithmatic of narrative choice -- Part 2: Algebraic allusions: the narrative uses of mathematics. Fairy-tale figures: the symbolism of number in fiction -- Ahab's arithmatic: mathematical metaphors in fiction -- Travels in fabulous realms: the math of myth -- Part 3: Mathematics becomes the story. Taking an idea for a walk: mathematical concepts so compelling they escape into fiction -- The real life of Pi: thematic mathematics in the novel -- Moriarty was a mathemetician: the role of the mathematical genius in literature.