A mathematical study uncovers patterns in creativity, revealing how ideas emerge through discovery and recombination.