ThueMorse
✖
ThueMorse
Examples
open allclose allBasic Examples (2)Summary of the most common use cases
The fifth element of the Thue–Morse sequence:

https://wolfram.com/xid/0yv6yb0ew1q2-kfeirw

Five has an even number of ones in its binary expansion:

https://wolfram.com/xid/0yv6yb0ew1q2-vxg0t0

The first 10 elements of the sequence:

https://wolfram.com/xid/0yv6yb0ew1q2-zg42

Display the values alongside the binary expansion:

https://wolfram.com/xid/0yv6yb0ew1q2-dheyx7

Scope (2)Survey of the scope of standard use cases
ThueMorse threads over lists:

https://wolfram.com/xid/0yv6yb0ew1q2-0yv40m


https://wolfram.com/xid/0yv6yb0ew1q2-uk5jk6

Applications (1)Sample problems that can be solved with this function
Properties & Relations (8)Properties of the function, and connections to other functions
ThueMorse[n] is 1 if and only if n has an odd number of 1s in its binary form:

https://wolfram.com/xid/0yv6yb0ew1q2-yjubap

The Thue–Morse sequence can arise from a nested list:

https://wolfram.com/xid/0yv6yb0ew1q2-uo0s5

The Thue–Morse sequence can arise from the center column of a cellular automaton:

https://wolfram.com/xid/0yv6yb0ew1q2-tqy5c

The Thue–Morse sequence has a closed form as a hypergeometric function:

https://wolfram.com/xid/0yv6yb0ew1q2-b8z0ai

Solution to a recurrence relation:

https://wolfram.com/xid/0yv6yb0ew1q2-bmwfjp


https://wolfram.com/xid/0yv6yb0ew1q2-es34pg

https://wolfram.com/xid/0yv6yb0ew1q2-nnapuk

https://wolfram.com/xid/0yv6yb0ew1q2-dr3xrs


https://wolfram.com/xid/0yv6yb0ew1q2-etn0zt

https://wolfram.com/xid/0yv6yb0ew1q2-x5c3

https://wolfram.com/xid/0yv6yb0ew1q2-cr451p

The Thue–Morse sequence has a nested structure:

https://wolfram.com/xid/0yv6yb0ew1q2-hrz58z

Wolfram Research (2015), ThueMorse, Wolfram Language function, https://reference.wolfram.com/language/ref/ThueMorse.html.
Text
Wolfram Research (2015), ThueMorse, Wolfram Language function, https://reference.wolfram.com/language/ref/ThueMorse.html.
Wolfram Research (2015), ThueMorse, Wolfram Language function, https://reference.wolfram.com/language/ref/ThueMorse.html.
CMS
Wolfram Language. 2015. "ThueMorse." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/ThueMorse.html.
Wolfram Language. 2015. "ThueMorse." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/ThueMorse.html.
APA
Wolfram Language. (2015). ThueMorse. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ThueMorse.html
Wolfram Language. (2015). ThueMorse. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ThueMorse.html
BibTeX
@misc{reference.wolfram_2025_thuemorse, author="Wolfram Research", title="{ThueMorse}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/ThueMorse.html}", note=[Accessed: 29-April-2025
]}
BibLaTeX
@online{reference.wolfram_2025_thuemorse, organization={Wolfram Research}, title={ThueMorse}, year={2015}, url={https://reference.wolfram.com/language/ref/ThueMorse.html}, note=[Accessed: 29-April-2025
]}