Count the adjacent "11" pairs in the binary expansion of n, and take a parity vote: even gives +1, odd gives -1. The result is the Rudin-Shapiro sequence — 1, 1, 1, -1, 1, 1, -1, 1, 1, 1, 1, -1, -1, -1, 1, -1, ... — a +1/-1 sequence built to defeat a folklore conjecture of Littlewood, and today a quiet workhorse of polyphase signal design.
Rudin-Shapiro Numbers Generator counts the overlapping 11-pairs exactly for any starting index, renders each value with its binary form and pair count, and tracks the running sum so the famously flat partial sums are visible immediately.