A catchy hook, an infectious chant: an earworm is a simple thing. Writing one, however, is not. Here’s why earworms are so effective – and hard to create.