Step variety: Difference between revisions

Inthar (talk | contribs)
Inthar (talk | contribs)
Line 12: Line 12:
== Mathematical facts ==
== Mathematical facts ==
=== Counting scales of a given size on a given number of letters ===
=== Counting scales of a given size on a given number of letters ===
For ''r'' &ge; 1, the number of possible patterns (up to rotation) for periodic scales of size ''n'' &ge; ''r'' over ''r'' ordered step sizes ''x''<sub>1</sub> > ''x''<sub>2</sub> > ... > ''x''<sub>''r''</sub> is
For ''r'' &ge; 1, the number of possible patterns (up to rotation) for periodic scales of size ''n'' &ge; ''r'' on ''r'' ordered step sizes ''x''<sub>1</sub> > ''x''<sub>2</sub> > ... > ''x''<sub>''r''</sub> is


<math>\displaystyle{\dfrac{1}{n} \sum_{d\mid n} \phi(d) \sum_{j=1}^r (-1)^{r-j} {r \choose j} j^{n/d},}</math>
<math>\displaystyle{\dfrac{1}{n} \sum_{d\mid n} \phi(d) \sum_{j=1}^r (-1)^{r-j} {r \choose j} j^{n/d},}</math>