What is the connection of math and classical music?

The connection of Math and Classical music has to do with Music Theory.

The way in which the structure of music is developed has to do with subjects like harmonies, counterpoint, intervals, etc. That has to do with the space in between pitches and how the pitches add and subtract to become into different harmonies and melodies.