ThueMorse
ThueMorse[n] gives the nth term in the Thue–Morse sequence.
Examples
Table[ThueMorse[n], {n, 0, 15}]
(* {0, 1, 1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 0} *)Please visit the official Wolfram Language Reference for more details.
ThueMorse[n] gives the nth term in the Thue–Morse sequence.
Table[ThueMorse[n], {n, 0, 15}]
(* {0, 1, 1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 0} *)Please visit the official Wolfram Language Reference for more details.