RudinShapiro[n]
gives the n term in the Rudin–Shapiro sequence.


RudinShapiro
RudinShapiro[n]
gives the n term in the Rudin–Shapiro sequence.
Details

- RudinShapiro[n] is 1 if n has an even number of possibly overlapping 11 sequences in its base-2 digits, and is -1 otherwise.
- RudinShapiro automatically threads over lists.
Examples
open all close allBasic Examples (2)
Scope (2)
Properties & Relations (3)
Related Guides
History
Text
Wolfram Research (2015), RudinShapiro, Wolfram Language function, https://reference.wolfram.com/language/ref/RudinShapiro.html.
CMS
Wolfram Language. 2015. "RudinShapiro." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/RudinShapiro.html.
APA
Wolfram Language. (2015). RudinShapiro. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/RudinShapiro.html
BibTeX
@misc{reference.wolfram_2025_rudinshapiro, author="Wolfram Research", title="{RudinShapiro}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/RudinShapiro.html}", note=[Accessed: 13-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_rudinshapiro, organization={Wolfram Research}, title={RudinShapiro}, year={2015}, url={https://reference.wolfram.com/language/ref/RudinShapiro.html}, note=[Accessed: 13-August-2025]}