gives the n term in the Thue–Morse sequence.
Examplesopen allclose all
Basic Examples (2)
ThueMorse threads over lists:
Properties & Relations (8)
ThueMorse[n] is 1 if and only if n has an odd number of 1s in its binary form:
The Thue–Morse sequence can arise from a nested list:
The Thue–Morse sequence can arise from the center column of a cellular automaton:
The Thue–Morse sequence has a closed form as a hypergeometric function:
Solution to a recurrence relation:
Wolfram Research (2015), ThueMorse, Wolfram Language function, 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.
Wolfram Language. (2015). ThueMorse. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ThueMorse.html