Rudin–Shapiro sequence explained

In mathematics, the Rudin–Shapiro sequence, also known as the Golay–Rudin–Shapiro sequence, is an infinite 2-automatic sequence named after Marcel Golay, Harold S. Shapiro, and Walter Rudin who investigated its properties.[1]

Definition

Each term of the Rudin–Shapiro sequence is either

1

or

-1

. If the binary expansion of

n

is given by

n=\sumk\epsilonk(n)2k,

then let

un=\sumk\epsilonk(n)\epsilonk+1(n).

(So

un

is the number of times the block 11 appears in the binary expansion of

n

.)

The Rudin–Shapiro sequence

(rn)n

is then defined by

rn=

un
(-1)

.

Thus

rn=1

if

un

is even and

rn=-1

if

un

is odd.[2]

The sequence

un

is known as the complete Rudin–Shapiro sequence, and starting at

n=0

, its first few terms are:

0, 0, 0, 1, 0, 0, 1, 2, 0, 0, 0, 1, 1, 1, 2, 3, ...

and the corresponding terms

rn

of the Rudin–Shapiro sequence are:

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

For example,

u6=1

and

r6=-1

because the binary representation of 6 is 110, which contains one occurrence of 11; whereas

u7=2

and

r7=1

because the binary representation of 7 is 111, which contains two (overlapping) occurrences of 11.

Historical motivation

f\colon[0,2\pi)\to[0,2\pi)

. This norm is defined by

||f||2=\left(

1
2\pi
2\pi
\int
0

|f(t)|2dt\right)1/2.

One can prove that for any sequence

(an)n

with each

an

in

\{1,-1\}

,

\supx\left|\sum0aneinx\right|\ge\left|\left|\sum0aneinx\right|\right|2=\sqrt{N}.

Moreover, for almost every sequence

(an)n

with each

an

is in

\{-1,1\}

,

\supx\left|\sum0aneinx\right|=O(\sqrt{NlogN}).

[7]

However, the Rudin–Shapiro sequence

(rn)n

satisfies a tighter bound:[8] there exists a constant

C>0

such that

\supx\left|\sum0rneinx\right|\leC\sqrt{N}.

It is conjectured that one can take

C=\sqrt{6}

,[9] but while it is known that

C\ge\sqrt{6}

,[10] the best published upper bound is currently

C\le(2+\sqrt{2})\sqrt{3/5}

.[11] Let

Pn

be the n-th Shapiro polynomial. Then, when

N=2n-1

, the above inequality gives a bound on

\supx

ix
|P
n(e

)|

. More recently, bounds have also been given for the magnitude of the coefficients of
2
|P
n(z)|
where

|z|=1

.[12]

Shapiro arrived at the sequence because the polynomials

Pn(z)=

2n-1
\sum
i=0

rizi

where

(ri)i

is the Rudin–Shapiro sequence, have absolute value bounded on the complex unit circle by
n+1
2
2
. This is discussed in more detail in the article on Shapiro polynomials. Golay's motivation was similar, although he was concerned with applications to spectroscopy and published in an optics journal.

Properties

\varphi

with fixed point

w

and a coding

\tau

such that

r=\tau(w)

, where

r

is the Rudin–Shapiro sequence. However, the Rudin–Shapiro sequence cannot be expressed as the fixed point of some uniform morphism alone.[14]

There is a recursive definition[15]

\begin{cases}r2n&=rn\\ r2n+1&=(-1)nrn\end{cases}

The values of the terms rn and un in the Rudin–Shapiro sequence can be found recursively as follows. If n = m·2k where m is odd then

un= \begin{cases}u(m-1)/4&ifm\equiv1\pmod4\\ u(m-1)/2+1&ifm\equiv3\pmod4 \end{cases}

rn= \begin{cases}r(m-1)/4&ifm\equiv1\pmod4\\ -r(m-1)/2&ifm\equiv3\pmod4 \end{cases}

Thus u108 = u13 + 1 = u3 + 1 = u1 + 2 = u0 + 2 = 2, which can be verified by observing that the binary representation of 108, which is 1101100, contains two sub-strings 11. And so r108 = (-1)2 = +1.

A 2-uniform morphism

\varphi

that requires a coding

\tau

to generate the Rudin-Shapiro sequence is the following:\begin\varphi: a&\to ab\\b&\to ac\\c&\to db\\d&\to dc\end \begin\tau: a&\to 1\\b&\to 1\\c&\to -1\\d&\to -1\end

The Rudin–Shapiro word +1 +1 +1 -1 +1 +1 -1 +1 +1 +1 +1 -1 -1 -1 +1 -1 ..., which is created by concatenating the terms of the Rudin–Shapiro sequence, is a fixed point of the morphism or string substitution rules

+1 +1 +1 +1 +1 -1

+1 -1 +1 +1 -1 +1

-1 +1 -1 -1 +1 -1

-1 -1 -1 -1 -1 +1

as follows:

+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 -1 -1 -1 +1 -1 ...

It can be seen from the morphism rules that the Rudin–Shapiro string contains at most four consecutive +1s and at most four consecutive -1s.

The sequence of partial sums of the Rudin–Shapiro sequence, defined by

sn=

n
\sum
k=0

rk,

with values

1, 2, 3, 2, 3, 4, 3, 4, 5, 6, 7, 6, 5, 4, 5, 4, ...

can be shown to satisfy the inequality

\sqrt{3
5

n}<sn<\sqrt{6n}forn\ge1.

Let

(sn)n

denote the Rudin–Shapiro sequence on

\{0,1\}

, in which case

sn

is the number, modulo 2, of occurrences (possibly overlapping) of the block

11

in the base-2 expansion of

n

. Then the generating function

S(X)=\sumnsnXn

satisfies

(1+X)5S(X)2+(1+X)4S(X)+X3=0,

making it algebraic as a formal power series over

F2(X)

.[16] The algebraicity of

S(X)

over

F2(X)

follows from the 2-automaticity of

(sn)n

by Christol's theorem.

The Rudin–Shapiro sequence along squares

(r
n2

)n

is normal.[17]

The complete Rudin–Shapiro sequence satisfies the following uniform distribution result. If

x\inR\setminusZ

, then there exists

\alpha=\alpha(x)\in(0,1)

such that

\sumn\exp(2\piixun)=O(N\alpha)

which implies that

(xun)n

is uniformly distributed modulo

1

for all irrationals

x

.[18]

Relationship with one-dimensional Ising model

Let the binary expansion of n be given by

n=\sumk\epsilonk(n)2k

where

\epsilonk(n)\in\{0,1\}

. Recall that the complete Rudin–Shapiro sequence is defined by

u(n)=\sumk\epsilonk(n)\epsilonk+1(n).

Let

\tilde{\epsilon}k(n)=\begin{cases} \epsilonk(n)&ifk\leN-1,\\ \epsilon0(n)&ifk=N. \end{cases}

Then let

u(n,N)=\sum0\tilde{\epsilon}k(n)\tilde{\epsilon}k+1(n).

Finally, let

S(N,x)=

\sum
0\len<2N

\exp(2\piixu(n,N)).

Recall that the partition function of the one-dimensional Ising model can be defined as follows. Fix

N\ge1

representing the number of sites, and fix constants

J>0

and

H>0

representing the coupling constant and external field strength, respectively. Choose a sequence of weights

η=(η0,...,ηN-1)

with each

ηi\in\{-1,1\}

. For any sequence of spins

\sigma=(\sigma0,...,\sigmaN-1)

with each

\sigmai\in\{-1,1\}

, define its Hamiltonian by

Hη(\sigma)=-J\sum0ηk\sigmak\sigmak+1-H\sum0\sigmak.

Let

T

be a constant representing the temperature, which is allowed to be an arbitrary non-zero complex number, and set

\beta=1/(kT)

where

k

is Boltzmann's constant. The partition function is defined by

ZN(η,J,H,\beta)=

N}
\sum
\sigma\in\{-1,1\

\exp(-\betaHη(\sigma)).

Then we have

S(N,x)=\exp\left(

\piiNx
2
\right)Z
N\left(1,1
2

,-1,\piix\right)

where the weight sequence

η=(η0,...,ηN-1)

satisfies

ηi=1

for all

i

.[19]

See also

References

Notes and References

  1. A Case Study in Mathematical Research: The Golay–Rudin–Shapiro Sequence. John Brillhart and Patrick Morton, winners of a 1997 Lester R. Ford Award. Amer. Math. Monthly. 1996. 103. 10 . 854–869. 10.2307/2974610. 2974610 .
  2. Everest et al (2003) p.234
  3. Golay . M.J.E. . Multi-slit spectrometry . Journal of the Optical Society of America. 1949 . 39 . 437–444. 437–444 . 10.1364/JOSA.39.000437 . 18152021 .
  4. Golay . M.J.E. . Static multislit spectrometry and its application to the panoramic display of infrared spectra. . Journal of the Optical Society of America. 1951 . 41 . 7 . 468–472. 10.1364/JOSA.41.000468 . 14851129 .
  5. Rudin . W. . Some theorems on Fourier coefficients. . . 1959 . 10 . 6 . 855–859. 10.1090/S0002-9939-1959-0116184-5 . free .
  6. Shapiro . H.S. . Extremal problems for polynomials and power series. . Master's Thesis, MIT. . 1952.
  7. Salem . R. . Zygmund . A. . Some properties of trigonometric series whose terms have random signs. . . 1954 . 91 . 245–301. 10.1007/BF02393433 . 122999383 . free .
  8. Allouche and Shallit (2003) p. 78–79
  9. Allouche and Shallit (2003) p. 122
  10. Brillhart . J. . Morton . P. . Über Summen von Rudin–Shapiroschen Koeffizienten. . . 1978 . 22 . 126–148. 10.1215/ijm/1256048841 . free .
  11. Saffari . B. . Une fonction extrémale liée à la suite de Rudin–Shapiro. . . 1986 . 303 . 97–100.
  12. Allouche . J.-P. . Choi . S. . Denise . A. . Erdélyi . T. . Saffari . B. . Bounds on Autocorrelation Coefficients of Rudin-Shapiro Polynomials . Analysis Mathematica . 2019 . 45 . 4 . 705–726. 10.1007/s10476-019-0003-4 . 1901.06832 . 119168430 .
  13. http://www.emis.de/journals/SLC/opapers/s30allouche.pdf Finite automata and arithmetic
  14. Allouche and Shallit (2003) p. 192
  15. Pytheas Fogg (2002) p.42
  16. Allouche and Shallit (2003) p. 352
  17. Müllner . C. . The Rudin–Shapiro sequence and similar sequences are normal along squares. . Canadian Journal of Mathematics . 2018 . 70 . 5 . 1096–1129. 10.4153/CJM-2017-053-1 . 1704.06472 . 125493369 .
  18. Allouche and Shallit p. 462–464
  19. Allouche and Shallit (2003) p. 457–461