Task

Create a Thue-Morse sequence.



See also
   YouTube entry: The Fairest Sharing Sequence Ever
   YouTube entry: Math and OCD - My story with the Thue-Morse sequence
   Task: Fairshare between two and more


thueMorse
=LAMBDA(n,
    APPLYN(n)(
        LAMBDA(bits,
            APPENDCOLS(bits)(
                LAMBDA(x,
                    IF(0 < x, 0, 1)
                )(bits)
            )
        )
    )(0)
)