Three hundred years after the death of Gottfried Wilhelm Leibniz and seven hundred years after the death of Ramon Llull, Jonathan Gray looks at how their early visions of computation and the “combinatorial art” speak to our own age of data, algorithms, and artificial intelligence.