gives the n term in the Thue–Morse sequence.
- ThueMorse[n] is 1 exactly when n has an odd number of 1s in its binary expansion.
- ThueMorse gives the sequence generated by the substitution starting from .
- ThueMorse is the beginning of the Thue–Morse sequence.
- ThueMorse automatically threads over lists.
Basic Examples (2)
The fifth element of the Thue–Morse sequence:
Five has an even number of ones in its binary expansion:
The first 10 elements of the sequence:
Display the values alongside the binary expansion:
Properties & Relations (8)
Introduced in 2015