14.08.2013 Views

Paperfolding, Automata, and Rational Functions - Diagonals and ...

Paperfolding, Automata, and Rational Functions - Diagonals and ...

Paperfolding, Automata, and Rational Functions - Diagonals and ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

The Shapiro Sequence<br />

Consider, the Shapiro sequence (rh), which counts mod 2 the number<br />

of occurrences of the pair 11 of digits in the binary expansion of h.<br />

0001001000 0111010001 0010111000 1000010010 0001110111 . . .<br />

0 1 0 2 0 1 3 1 0 1 0 2 3 2 0 2 0 1 0 2 0 1 3 1 3 . . .<br />

0102013101 0232020102 0131323101 3101020131 0102320232 . . .<br />

0001001000 0111010001 0010111000 1000010010 0001110111 . . .<br />

Here the blue sequence is the result of an ingenious pairing; the brown<br />

sequence then recognises that (rh) is given by the regular binary<br />

substitution θ : 0 ↦→ 01, 1 ↦→ 02, 2 ↦→ 31, 3 ↦→ 32.<br />

The intermediate symbols {0, 1, 2, 3} represent the four states<br />

{s0, s1, s2, s3} of a binary automaton. So, the Shapiro sequence is<br />

generated by the automaton defined by the transition table given by θ<br />

<strong>and</strong> with output map s0 <strong>and</strong> s1 ← 0, <strong>and</strong> s2 <strong>and</strong> s3 ← 1. Remarkably<br />

n−1<br />

max<br />

0≤θ≤1 |<br />

X<br />

(−1) r √ √<br />

h ihθ<br />

e | ≤ (2 + 2) n .<br />

h=0<br />

16

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!