This quick TED talk entry is courtesy of TED.com. Scott Rickard set out to engineer the ugliest possible piece of music, devoid of repetition, using a mathematical concept known as the Costas Array. In this talk, he shares the math behind musical beauty (and its opposite).