Jump to content

Thue–Morse sequence: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Rmrichman (talk | contribs)
Rmrichman (talk | contribs)
Equitable sequencing: Spells out what it means to apply T-M to real situations
Line 117: Line 117:


===Equitable sequencing===
===Equitable sequencing===
In their book<ref>{{cite book| title=The Win-Win Solution: Guaranteeing Fair Shares to Everybody |last1 = Brams | first1 = Steven J. | last2 = Taylor | first2 = Alan D. |pages=36–44 |isbn=0-393-04729-6 |publisher=W. W. Norton & Co., Inc. |year=1999}}</ref> on the problem of [[fair division]], [[Steven Brams]] and [[Alan D. Taylor]] invoked the Thue–Morse sequence but did not identify it as such. When allocating a contested pile of items between two parties who agree on the items' relative values, Brams and Taylor suggested a method they called ''balanced alternation'', or ''taking turns taking turns taking turns'', as a way to circumvent the favoritism inherent when one party chooses before the other.
In their book<ref>{{cite book| title=The Win-Win Solution: Guaranteeing Fair Shares to Everybody |last1 = Brams | first1 = Steven J. | last2 = Taylor | first2 = Alan D. |pages=36–44 |isbn=0-393-04729-6 |publisher=W. W. Norton & Co., Inc. |year=1999}}</ref> on the problem of [[fair division]], [[Steven Brams]] and [[Alan D. Taylor]] invoked the Thue–Morse sequence but did not identify it as such. When allocating a contested pile of items between two parties who agree on the items' relative values, Brams and Taylor suggested a method they called ''balanced alternation'', or ''taking turns taking turns taking turns'', as a way to circumvent the favoritism inherent when one party chooses before the other. An example showed how a divorcing couple might reach a fair settlement when distributing jointly-owned items, allowing the parties to take turns to be the first chooser at different points in the selection process: Ann chooses one item, then Ben does, then Ben chooses one item, then Ann does.


[[Lionel Levine]] and [[Katherine Stange]], in their discussion of how to fairly share a meal,<ref>{{cite journal|last1=Levine|first1=Lionel|last2=Stange| first2=Katherine E.|title=How to Make the Most of a Shared Meal: Plan the Last Bite First|journal=The American Mathematical Monthly|year=2012| volume=119|issue=7|pages=550–565|url=http://math.colorado.edu/~kstange/papers/EthiopianDinner.pdf|accessdate=11 February 2013}}</ref> proposed the Thue–Morse sequence as a way to reduce the advantage of moving first. They suggested that “it would be interesting to quantify the intuition that the Thue-Morse order tends to produce a fair outcome.”
[[Lionel Levine]] and [[Katherine Stange]], in their discussion of how to fairly share a meal,<ref>{{cite journal|last1=Levine|first1=Lionel|last2=Stange| first2=Katherine E.|title=How to Make the Most of a Shared Meal: Plan the Last Bite First|journal=The American Mathematical Monthly|year=2012| volume=119|issue=7|pages=550–565|url=http://math.colorado.edu/~kstange/papers/EthiopianDinner.pdf|accessdate=11 February 2013}}</ref> proposed the Thue–Morse sequence as a way to reduce the advantage of moving first. They suggested that “it would be interesting to quantify the intuition that the Thue-Morse order tends to produce a fair outcome.”

Revision as of 14:48, 14 July 2013

This graphic demonstrates the repeating and complementary makeup of the Thue–Morse sequence.
5 logical matrices that give the beginning of the T.-M. sequence, when read line by line

Either in set A (vertical index) or in set B (horizontal index)
is an odd number of elements.

In mathematics, the Thue–Morse sequence, or Prouhet–Thue–Morse sequence, is the binary sequence (an infinite sequence of 0s and 1s) obtained by starting with 0 and successively appending the Boolean complement of the sequence obtained thus far. This procedure yields 0 then 01, 0110, 01101001, 0110100110010110, and so on. The infinite sequence begins:

01101001100101101001011001101001.... (sequence A010060 in the OEIS)

Any other ordered pair of symbols may be used instead of 0 and 1; the logical structure of the Thue–Morse sequence does not depend on the symbols that are used to represent it.

Definition

There are several equivalent ways of defining the Thue–Morse sequence.

Direct definition

To compute the nth element tn, write the number n in binary. If the number of ones in this binary expansion is odd then tn = 1, if even then tn = 0.[1] For this reason John H. Conway et al. call numbers n satisfying tn = 1 odious (for odd) numbers and numbers for which tn = 0 evil (for even) numbers.

Recurrence relation

The Thue–Morse sequence is the sequence tn satisfying

t0 = 0,
t2n = tn, and
t2n+1 = 1 − tn.

for all positive integers n.[1]

L-system

The Thue–Morse sequence is a morphic word:[2] it is the output of the following Lindenmayer system:

  variables  0  1
  constants  none
  start      0
  rules      (0 → 01), (1 → 10)

Characterization using bitwise negation

The Thue–Morse sequence in the form given above, as a sequence of bits, can be defined recursively using the operation of bitwise negation. So, the first element is 0. Then once the first 2n elements have been specified, forming a string s, then the next 2n elements must form the bitwise negation of s. Now we have defined the first 2n+1 elements, and we recurse.

Spelling out the first few steps in detail:

  • We start with 0.
  • The bitwise negation of 0 is 1.
  • Combining these, the first 2 elements are 01.
  • The bitwise negation of 01 is 10.
  • Combining these, the first 4 elements are 0110.
  • The bitwise negation of 0110 is 1001.
  • Combining these, the first 8 elements are 01101001.
  • And so on.

So

  • T0 = 0.
  • T1 = 01.
  • T2 = 0110.
  • T3 = 01101001.
  • T4 = 0110100110010110.
  • T5 = 01101001100101101001011001101001.
  • T6 = 0110100110010110100101100110100110010110011010010110100110010110.
  • And so on.

Infinite product

The sequence can also be defined by:

where tj is the jth element if we start at j = 0.

Some properties

Nested squares generated by successive iterations of Thue–Morse

Because each new block in the Thue–Morse sequence is defined by forming the bitwise negation of the beginning, and this is repeated at the beginning of the next block, the Thue–Morse sequence is filled with squares: consecutive strings that are repeated. That is, there are many instances of XX, where X is some string. However, there are no cubes: instances of XXX. There are also no overlapping squares: instances of 0X0X0 or 1X1X1.[3][4] The critical exponent is 2.[5]

Notice that T2n is palindrome for any n > 1. Further, let qn be a word obtain from T2n by counting ones between consecutive zeros. For instance, q1 = 2 and q2 = 2102012 and so on. The words Tn do not contain overlapping squares in consequence, the words qn are palindrome squarefree words.

The statement above that the Thue–Morse sequence is "filled with squares" can be made precise: It is a uniformly recurrent word, meaning that given any finite string X in the sequence, there is some length nX (often much longer than the length of X) such that X appears in every block of length n.[6][7] The easiest way to make a recurrent sequence is to form a periodic sequence, one where the sequence repeats entirely after a given number m of steps. Then nX can be set to any multiple of m that is larger than twice the length of X. But the Morse sequence is uniformly recurrent without being periodic, not even eventually periodic (meaning periodic after some nonperiodic initial segment).[8]

We define the Thue–Morse morphism to be the function f from the set of binary sequences to itself by replacing every 0 in a sequence with 01 and every 1 with 10.[9] Then if T is the Thue–Morse sequence, then f(T) is T again; that is, T is a fixed point of f. The function f is a prolongable morphism on the free monoid {0,1} with T as fixed point: indeed, T is essentially the only fixed point of f; the only other fixed point is the bitwise negation of T, which is simply the Thue–Morse sequence on (1,0) instead of on (0,1). This property may be generalized to the concept of an automatic sequence.

The generating series of T over the binary field is the formal power series

This power series is algebraic over the field of formal power series, satisfying the equation[10]

In combinatorial game theory

The set of evil numbers (numbers with ) forms a subspace of the nonnegative integers under nim-addition (bitwise exclusive or). For the game of Kayles, the evil numbers form the sparse space—the subspace of nim-values which occur for few (finitely many) positions in the game—and the odious numbers are the common coset.

The Prouhet–Tarry–Escott problem

The Prouhet–Tarry–Escott problem can be defined as: given a positive integer N and a non-negative integer k, partition the set S = { 0, 1, ..., N-1 } into two disjoint subsets S0 and S1 that have equal sums of powers up to k, that is:

for all integers i from 1 to k.

This has a solution if N is a multiple of 2k+1, given by:

  • S0 consists of the integers n in S for which tn = 0,
  • S1 consists of the integers n in S for which tn = 1.

For example, for N = 8 and k = 2,

0 + 3 + 5 + 6 = 1 + 2 + 4 + 7,
02 + 32 + 52 + 62 = 12 + 22 + 42 + 72.

The condition requiring that N be a multiple of 2k+1 is not strictly necessary: there are some further cases for which a solution exists. However, it guarantees a stronger property: if the condition is satisfied, then the set of kth powers of any set of N numbers in arithmetic progression can be partitioned into two sets with equal sums. This follows directly from the expansion given by the binomial theorem applied to the binomial representing the nth element of an arithmetic progression.

Fractals and Turtle graphics

A Turtle Graphics is the curve that is generated if an automaton is programmed with a sequence. If the Thue–Morse Sequence members are used in order to select program states:

  • If t(n) = 0, move ahead by one unit,
  • If t(n) = 1, rotate counterclockwise by an angle of π/3,

the resulting curve converges to the Koch snowflake, a fractal curve of infinite length containing a finite area. This illustrates the fractal nature of the Thue–Morse Sequence.

Equitable sequencing

In their book[11] on the problem of fair division, Steven Brams and Alan D. Taylor invoked the Thue–Morse sequence but did not identify it as such. When allocating a contested pile of items between two parties who agree on the items' relative values, Brams and Taylor suggested a method they called balanced alternation, or taking turns taking turns taking turns, as a way to circumvent the favoritism inherent when one party chooses before the other. An example showed how a divorcing couple might reach a fair settlement when distributing jointly-owned items, allowing the parties to take turns to be the first chooser at different points in the selection process: Ann chooses one item, then Ben does, then Ben chooses one item, then Ann does.

Lionel Levine and Katherine Stange, in their discussion of how to fairly share a meal,[12] proposed the Thue–Morse sequence as a way to reduce the advantage of moving first. They suggested that “it would be interesting to quantify the intuition that the Thue-Morse order tends to produce a fair outcome.”

Robert Richman addressed this problem, but he too did not identify the Thue–Morse sequence as such at the time of publication.[13] He presented the sequences Tn as step functions on the interval [0,1] and described their relationship to the Walsh and Rademacher functions. He showed that the nth derivative can be expressed in terms of Tn. As a consequence, the step function arising from Tn is orthogonal to polynomials of order n − 1. A consequence of this result is that a resource whose value is expressed as a monotonically decreasing continuous function is most fairly allocated using a sequence that converges to Thue-Morse as the function becomes flatter. An example showed how to pour cups of coffee of equal strength from a carafe with a nonlinear concentration gradient, prompting a whimsical article in the popular press.[14]

Joshua Cooper and Aaron Dutle showed why the Thue-Morse order provides a fair outcome for discrete events.[15] They considered the fairest way to stage a Galois duel, in which each of the shooters has equally poor shooting skills. Cooper and Dutle postulated that each dueler would demand a chance to fire as soon as the other’s a priori probability of winning exceeded their own. They proved that, as the duelers’ hitting probability approaches zero, the firing sequence converges to the Thue-Morse sequence.

Sports competitions form an important class of equitable sequencing problems, because strict alternation often gives an unfair advantage to one team. Richman suggested that the fairest way for “captain A” and “captain B” to choose sides for a pick-up game of basketball mirrors T3: captain A has the first, fourth, sixth, and seventh choices, while captain B has the second, third, fifth, and eighth choices.[13] Ignacio Palacios-Huerta proposed using the Thue–Morse sequence to increase the fairness of various tournament competitions.[16] For example, he suggested that the ex post fairness of a penalty shoot-out in soccer would be improved by changing the sequential order from strict alternation to Thue-Morse.

History

The Thue–Morse sequence was first studied by Eugène Prouhet in 1851, who applied it to number theory. However, Prouhet did not mention the sequence explicitly; this was left to Axel Thue in 1906, who used it to found the study of combinatorics on words. The sequence was only brought to worldwide attention with the work of Marston Morse in 1921, when he applied it to differential geometry. The sequence has been discovered independently many times, not always by professional research mathematicians; for example, Max Euwe, a chess grandmaster, who held the world championship title from 1935 to 1937, and mathematics teacher, discovered it in 1929 in an application to chess: by using its cube-free property (see above), he showed how to circumvent a rule aimed at preventing infinitely protracted games by declaring repetition of moves a draw.

References

  1. ^ a b Allouche & Shallit (2003) p.15
  2. ^ Lothaire (2011) p.11
  3. ^ Lothaire (2011) p.113
  4. ^ Pytheas Fogg (2002) p.103
  5. ^ Krieger, Dalia (2006). "On critical exponents in fixed points of non-erasing morphisms". In Ibarra, Oscar H.; Dang, Zhe (eds.). Developments in Language Theory: Proceedings 10th International Conference, DLT 2006, Santa Barbara, CA, USA, June 26-29, 2006. Lecture Notes in Computer Science. Vol. 4036. Springer-Verlag. pp. 280–291. ISBN 3-540-35428-X. Zbl 1227.68074.
  6. ^ Lothaire (2011) p.30
  7. ^ Berthé, Valérie; Rigo, Michel, eds. (2010). Combinatorics, automata, and number theory. Encyclopedia of Mathematics and its Applications. Vol. 135. Cambridge: Cambridge University Press. p. 7. ISBN 978-0-521-51597-9. Zbl 1197.68006.
  8. ^ Lothaire (2011) p.31
  9. ^ Berstel (2009) p.70
  10. ^ Berstel (2009) p.80
  11. ^ Brams, Steven J.; Taylor, Alan D. (1999). The Win-Win Solution: Guaranteeing Fair Shares to Everybody. W. W. Norton & Co., Inc. pp. 36–44. ISBN 0-393-04729-6.
  12. ^ Levine, Lionel; Stange, Katherine E. (2012). "How to Make the Most of a Shared Meal: Plan the Last Bite First" (PDF). The American Mathematical Monthly. 119 (7): 550–565. Retrieved 11 February 2013.
  13. ^ a b Richman, Robert (2001). "Recursive Binary Sequences of Differences" (PDF). Complex Systems. 13 (4): 381–392. Retrieved 16 January 2012.
  14. ^ Abrahams, Marc (12 July 2010). "How to pour the perfect cup of coffee". The Guardian. Retrieved 16 January 2012.
  15. ^ Cooper, Joshua; Dutle, Aaron (2013). "Greedy Galois Games" (PDF). The American Mathematical Monthly. 120 (5): 441–451. Retrieved 19 June 2013.
  16. ^ Palacios-Huerta, Ignacio (2012). "Tournaments, fairness and the prouhet-thue-morse sequence" (PDF). Economic inquiry. 50 (3): 848–849. Retrieved 18 February 2013.