Rudin-Shapiro Curve

​
zoom
step
The Rudin-Shapiro sequence
a
n
gives the parity of the number of (possibly overlapping) 11 blocks in the binary representation of
n
. A curve can be derived from this sequence as follows. At step
n
, if
n+
a
n
+
a
n+1
is even, turn right 90°; otherwise turn left 90°. The curve visits every lattice point in one eighth of the plane precisely twice. (Here the corners are rounded for clarity.)

External Links

Rudin-Shapiro Sequence (Wolfram MathWorld)

Permanent Citation

Eric Rowland
​
​"Rudin-Shapiro Curve"​
​http://demonstrations.wolfram.com/RudinShapiroCurve/​
​Wolfram Demonstrations Project​
​Published: March 14, 2008