The story of the invention of the love song, the world’s first algorithm, and the mathematics of transcendence.