
In
mathematics
Mathematics is a field of study that discovers and organizes methods, Mathematical theory, theories and theorems that are developed and Mathematical proof, proved for the needs of empirical sciences and mathematics itself. There are many ar ...
, a Sturmian word (Sturmian sequence or billiard sequence), named after
Jacques Charles François Sturm, is a certain kind of infinitely long
sequence of characters. Such a sequence can be generated by considering a game of
English billiards on a square table. The struck ball will successively hit the vertical and horizontal edges labelled 0 and 1 generating a sequence of letters. This sequence is a Sturmian word.
Definition
Sturmian sequences can be defined strictly in terms of their combinatoric properties or geometrically as
cutting sequences for lines of irrational slope or codings for
irrational rotations. They are traditionally taken to be infinite sequences on the alphabet of the two symbols 0 and 1.
Combinatorial definitions
Sequences of low complexity
For an infinite sequence of symbols ''w'', let ''σ''(''n'') be the
complexity function of ''w''; i.e., ''σ''(''n'') = the number of distinct
contiguous subwords (factors) in ''w'' of length ''n''. Then ''w'' is Sturmian if ''σ''(''n'') = ''n'' + 1 for all ''n''.
Balanced sequences
A set ''X'' of binary strings is called ''balanced'' if the
Hamming weight
The Hamming weight of a string (computer science), string is the number of symbols that are different from the zero-symbol of the alphabet used. It is thus equivalent to the Hamming distance from the all-zero string of the same length. For the mo ...
of elements of ''X'' takes at most two distinct values. That is, for any
, ''s'',
1 = ''k'' or , ''s'',
1 = ''k where , ''s'',
1 is the number of 1s in ''s''.
Let ''w'' be an infinite sequence of 0s and 1s and let
denote the set of all length-''n'' subwords of ''w''. The sequence ''w'' is Sturmian if
is balanced for all ''n'' and ''w'' is not eventually periodic.
Geometric definitions
Cutting sequence of irrational
Let ''w'' be an infinite sequence of 0s and 1s. The sequence ''w'' is Sturmian if for some
and some irrational
, ''w'' is realized as the
cutting sequence of the line
.
Difference of Beatty sequences
Let ''w'' = (''w''
''n'') be an infinite sequence of 0s and 1s. The sequence ''w'' is Sturmian if it is the difference of non-homogeneous
Beatty sequences, that is, for some
and some irrational
:
for all
or
:
for all
.
Coding of irrational rotation

For
, define
by
. For
define the ''θ''-coding of ''x'' to be the sequence (''x''
''n'') where
:
Let ''w'' be an infinite sequence of 0s and 1s. The sequence ''w'' is Sturmian if for some
and some irrational
, ''w'' is the ''θ''-coding of ''x''.
Discussion
Example
A famous example of a (standard) Sturmian word is the Fibonacci word;
its slope is
, where
is the golden ratio.
Balanced aperiodic sequences
A set ''S'' of finite binary words is ''balanced'' if for each ''n'' the subset ''S''
''n'' of words of length ''n'' has the property that the
Hamming weight
The Hamming weight of a string (computer science), string is the number of symbols that are different from the zero-symbol of the alphabet used. It is thus equivalent to the Hamming distance from the all-zero string of the same length. For the mo ...
of the words in ''S''
''n'' takes at most two distinct values. A balanced sequence is one for which the set of factors is balanced. A balanced sequence has at most ''n''+1 distinct factors of length ''n''.
An aperiodic sequence is one which does not consist of a finite sequence followed by a finite cycle. An aperiodic sequence has at least ''n'' + 1 distinct factors of length ''n''.
[ A sequence is Sturmian if and only if it is balanced and aperiodic.][
]
Slope and intercept
A sequence
In mathematics, a sequence is an enumerated collection of objects in which repetitions are allowed and order matters. Like a set, it contains members (also called ''elements'', or ''terms''). The number of elements (possibly infinite) is cal ...
over is a Sturmian word if and only if there exist two real number
In mathematics, a real number is a number that can be used to measure a continuous one- dimensional quantity such as a duration or temperature. Here, ''continuous'' means that pairs of values can have arbitrarily small differences. Every re ...
s, the ''slope'' and the ''intercept'' , with irrational
Irrationality is cognition, thinking, talking, or acting without rationality.
Irrationality often has a negative connotation, as thinking and actions that are less useful or more illogical than other more rational alternatives. The concept of ...
, such that
:
for all . Thus a Sturmian word provides a discretization
In applied mathematics, discretization is the process of transferring continuous functions, models, variables, and equations into discrete counterparts. This process is usually carried out as a first step toward making them suitable for numeri ...
of the straight line with slope and intercept ''ρ''. Without loss of generality, we can always assume , because for any integer ''k'' we have
:
All the Sturmian words corresponding to the same slope have the same set of factors; the word corresponding to the intercept is the standard word or characteristic word of slope .[ Hence, if , the characteristic word is the first difference of the Beatty sequence corresponding to the irrational number .
The standard word is also the limit of a sequence of words defined recursively as follows:
Let ]