Get Math Help

GET TUTORING NEAR ME!

(800) 434-2582

By submitting the following form, you agree to Club Z!'s Terms of Use and Privacy Policy

    Home / Get Math Help

    Rudin-Shapiro Sequence

    Sequence description

    -1 raised to the power of the number of 11-blocks in the binary representation of n

    Sequence terms

    1, 1, 1, -1, 1, 1, -1, 1, 1, 1, 1, -1, -1, -1, 1, -1, 1, 1, 1, -1, 1, 1, -1, 1, -1, ...

    Program

    a_n = (-1)^Count[Partition[IntegerDigits[n, 2], 2, 1], {1, 1}]

    Table program

    Table[(-1)^Count[Partition[IntegerDigits[k, 2], 2, 1], {1, 1}], {k, 0, n}]

    Plot

    Plot

    Back to List | POWERED BY THE WOLFRAM LANGUAGE