A great pop song might feel like magic, but it's actually melodic math (and the helping hand of prolific producer Max Martin) ...