Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Thue–Morse sequence
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Direct definition === [[File:Thue-Morse binary digit sum.svg|thumb|128px|When counting in binary, the digit sum modulo 2 is the Thue–Morse sequence]] To compute the ''n''th element ''t<sub>n</sub>'', write the number ''n'' in [[Binary number|binary]]. If the [[Hamming weight|number of ones]] in this binary expansion is odd then ''t<sub>n</sub>'' = 1, if even then ''t<sub>n</sub>'' = 0.<ref name=AS15>{{harvtxt|Allouche|Shallit|2003|p=15}}</ref> That is, ''t<sub>n</sub>'' is the [[parity bit|even parity bit]] for ''n''. [[John H. Conway]] ''et al''. deemed numbers ''n'' satisfying ''t<sub>n</sub>'' = 1 to be ''odious'' (intended to be similar to ''odd'') numbers, and numbers for which ''t<sub>n</sub>'' = 0 to be ''evil'' (similar to ''even'') numbers.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)