The Psychology of Invention in the Mathematical Field