Well, this particular mathematician, Scott Rickard, started with the premise (which he attributed to “most musicologists”) that “repetition is a key aspect of beauty.” Then, as he explains in this 2011 TED talk, he employed the math behind sonar pings to create a work employing all 88 notes on the piano keyboard and avoiding any sort of repetition. (video)