Mathematicians discover music really can be infectious