## Music and Mathematics

**A ***musical scale* is a set of notes, usually not arbitrary, of which most notes in a piece of music might be chosen.

*musical scale*is a set of notes, usually not arbitrary, of which most notes in a piece of music might be chosen.

**There exist many scales with highly distinctive sounds, though some are much more common than others. the term "scale" comes from the latin word 'scala' meaning 'ladder'. Thus a scale is a ladder of notes. **

**Combinatorics is a branch of mathematics concerning the study of finite or countable discrete structures. Aspects of combinatorics include counting the structures of a given kind and size (enumerative combinatorics), deciding when certain criteria can be met, and constructing and analyzing objects meeting the criteria (as in combinatorial designs and matroid theory), finding "largest", "smallest", or "optimal" objects (extremal combinatorics and combinatorial optimization), and studying combinatorial structures arising in an algebraic context, or applying algebraic techniques to combinatorial problems (algebraic combinatorics).**

**Scales may also be identified by using a binary system of twelve zeros or ones to represent each of the twelve notes of 12 note equal temperament, assuming the tonic to be in the leftmost position. **

**For example 101011010101 would represent C-D-E-F-G-A-B, which can be shown as the decimal number 2773. This system includes scales from 100000000000 (2048) to 111111111111 (4095), providing a total of 2048 possible species, 352 unique intervalic scales, and 4096 possible combinations of 0 to 12 notes.**

**Scales may be shown as semitones (or fret positions) from the tonic. For instance, 0 2 4 5 7 9 11 denotes any major scale such as C-D-E-F-G-A-B, in which the first degree is, obviously, 0 semitones from the tonic (and therefore coincides with it), the second is 2 semitones from the tonic, the third is 4 semitones from the tonic, and so on. **