Prouhet-Thue-Morse sequence
The Prouhet-Thue-Morse sequence is a binary sequence which begins as follows:
The th term is defined to be the number of s in the binary expansion of , modulo 2. That is, if the number of s in the binary expansion of is even, and if it is odd.
The sequence satisfies the following recurrence relation, with :
The Prouhet-Thue-Morse sequence is an automatic sequence. It has been shown to be(no three consecutive identical blocks) and overlap-freei.e no sub-block of the form , where , when viewed as a word of infinite length over the binary alphabet .
Generating function
The generating function for the sequence satisfies the relation
History
The Thue-Morse sequence was independently discovered by P. Prouhet, Axel Thue, and Marston Morse, and has since been rediscovered by many others.
References
- •
Allouche, J.-P.; Shallit, J. O. http://www.cs.uwaterloo.ca/ shallit/Papers/ubiq.psThe ubiquitous Prouhet-Thue-Morse Sequence [postscript]
- •
Sloane, N. J. A. Sequence A010060, http://www.research.att.com/ njas/sequences/The On-Line Encyclopedia of Integer Sequences.