- Thue-Morse sequence
:"See also:"
Thue-Morse constant Inmathematics and its applications, the Thue-Morse sequence, or Prouhet-Thue-Morse sequence, is a certainbinary sequence whose initial segments alternate (in a certain sense).The Thue-Morse sequence begins:
0 1 10 1001 10010110 1001011001101001...
However, sometimes other symbols are used besides 0 and 1, such as 1 and 2, or 1 and 0 (in the opposite order), or left and right, up and down, etc.Thus one may speak of the Thue-Morse sequence "on" a given
ordered pair .Definition
There are several equivalent ways of defining the Thue-Morse sequence.
Direct definition
To compute the th element , write the number in binary. If the number of ones in this binary expansion is odd then , if even then . For this reason
John H. Conway et al. call numbers satisfying "od"ious numbers and numbers for which "ev"il numbers.Recurrence relation
The Thue-Morse sequence is the sequence satisfying and
::
for all positive integers "n".
L-system
The Thue-Morse sequence 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
bit s, can be definedrecursive ly using the operation ofbitwise negation .So, the first element is 0.Then once the first 2"n" elements have been specified, forming a string "s", then the next 2"n" elements must form the bitwise negation of "s".Now we have defined the first 2"n"+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.Infinite product
The sequence can also be defined by:: where "t""j" is the "j"th element if we start at "j" = 0.
Some properties
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 0"X"0"X"0 or 1"X"1"X"1.
The statement above that the Thue-Morse sequence is "filled with squares" can be made precise:It is a
recurrent sequence , meaning that given any finite string "X" in the sequence, there is some length "n""X" (often much longer than the length of "X") such that "X" appears in "every" block of length "n".The easiest way to make a recurrent sequence is to form aperiodic sequence , one where the sequence repeats entirely after a given number "m" of steps.Then "n""X" can be set to any multiple of "m" that is larger than twice the length of "X".But the Morse sequence is recurrent "without" being periodic, nor even eventually periodic (meaning periodic after some nonperiodic initial segment).One can define a function "f" from the set of binary sequences to itself by replacing every 0 in a sequence with 01 and every 1 with 10.Then if "T" is the Thue-Morse sequence, then "f"("T") is "T" again; that is, "T" is a
fixed point of "f".In fact, "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 generated to the concept of anautomatic sequence .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 ofKayles , the evil numbers form thesparse space —the subspace ofnim-value s which occur for few (finitely many) positions in the game—and the odious numbers are thecommon 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" of integers "nk" with 0 ≤ "n" < "N" into two disjoint subsets "S"0 and "S"1 that have equal sums, that is::
This has a solution if "N" is a multiple of 2"k"+1, given by:
* "S"0 consists of the powers "nk" in "S" for which "t""n" = 0,
* "S"1 consists of the powers "nk" in "S" for which "t""n" = 1.For example, for "N" = 8 and "k" = 2, nowrap|1= 02 + 32 + 52 + 72 = 12 + 22 + 42 + 62.
The condition requiring that "N" be a multiple of 2"k"+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 "k"-th 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 thebinomial theorem applied to the binomial representing the "n"-th 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 theKoch snowflake , a fractal curve ofinfinite length containing a finite area.This illustrates the fractal nature of the Thue-Morse Sequence.History
The Thue-Morse sequence was first studied by
Eugène Prouhet in 1851, who applied it tonumber theory .However, Prouhet did not mention the sequence explicitly; this was left toAxel Thue in 1906, who used it to found the study ofcombinatorics on words.The sequence was only brought to worldwide attention with the work ofMarston Morse in 1921, when he applied it todifferential geometry .The sequence has been discovered independently many times, not always by professional research mathematicians; for example,Max Euwe , achess grandmaster and mathematicsteacher , discovered it in 1929 in an application tochess : 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.External links
* [http://www.cs.uwaterloo.ca/~shallit/Papers/ubiq.ps The Ubiquitous Prouhet-Thue-Morse Sequence.] Allouche, J.-P.; Shallit, J. O. Many applications and some history
* [http://mathworld.wolfram.com/Thue-MorseSequence.html MathWorld: Thue-Morse Sequence] . Some other applications
*Thue-Morse Sequence OEIS|id=A010060
*Thue-Morse Sequence over (1,2) OEIS|id=A001285
*Odious numbers OEIS|id=A000069
*Evil numbers OEIS|id=A001969
* [http://www2.kenyon.edu/people/holdenerj/StudentResearch/WhenThueMorsemeetsKochJan222005.pdf When Thue-Morse meets Koch] A paper showing an astonishing similarity between the Thue-Morse Sequence and theKoch snowflake
* [http://www.geocities.com/jan.schat/ThueMorse.PDF Reducing the influence of DC offset drift in analog IPs using the Thue-Morse Sequence] A technical application of the Thue-Morse Sequence
* [http://reglos.de/musinum MusiNum - The Music in the Numbers] Freeware to generate self similar music based on the Thue-Morse Sequence and related number sequences.
Wikimedia Foundation. 2010.