Proof: Let
and
. First, we prove that
and its shift
are images of words that are cyclic shifts of one another. There are two cases
and
depending on the first symbol of
. We put
.
In the first case,
. Proposition 5 gives
. Thus
and
are images of cyclic shifts of one another.
In the second case,
. Since
is odd,
is even, so that proposition 5 gives
. As before,
and
are images of cyclic shifts of one another.
For the converse part, the difficulty is that
not necessarily belongs to
for all
. We can prove that for
and
being the least integer such that
, the images of
and
are cyclic shifts of one another. The proof is a little long though straightforward and we leave it to the interested reader.
The problem in the computation of words satisfying the rhythmic oddity property is that cyclic shifts of one another are considered as the same solution, since they correspond to rhythmic patterns repeated as a loop.
The conjugacy relation on words is the equivalence between words being cyclic shifts of one another, and the classes of conjugate elements are the orbits of the permutation
. Lyndon words are minimal elements in the conjugacy classes regarding the lexicographic order, with the additional condition that they are primitive (words of length
, which have exactly
different cyclic shifts).
They can be computed efficiently in a recursive way thanks to the fact that Lyndon words not reduced to a single letter can be factorized into shorter Lyndon words
such that
for the lexicographic order Lothaire (1983). For instance, the Lyndon word
can be factorized into
.
Lyndon words provide a powerful tool for enumerating repetitive musical structures. It is sometimes convenient to replace
by a smaller set
with an ad hoc mapping
. The enumeration of words satisfying the rhythmic oddity property illustrates the same method, which relies on the following simple set theoretic proposition.