If you're looking for a book, Music: A Mathematical Offering https://www.amazon.com/Music-Mathematical-Offering-Dave-Bens... is pretty good. But you're nearly a the end of your recursion, though. Wikipedia ought to take you the rest of the way to answering those basic questions. More complex questions like why certain combinations sound good whe next to one another, on the other hand...