Sturmian word: Difference between revisions

no edit summary
imported>CosmiaNebula
(described the problem)
imported>CosmiaNebula
No edit summary
Line 5:
The Sturmian word can be computed thus as an algorithm:
 
* If <math>x > 1</math>, then it is the inverse of the Sturmian word for (<math>1/x)</math>. So we have reduced to the case of <math>0 < x \leq 1</math>.
* Iterate over <math>floor(1x), floor(2x), floor(3x), \dots </math>
* If <math>kx </math> is an integer, then the program terminates. Else, if <math>floor((k-1)x) = floor(kx)</math>, then the program outputs 0, else, it outputs 10.
Anonymous user