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
or
. If the binary expansion of
is given by
then let
un=\sumk\epsilonk(n)\epsilonk+1(n).
(So
is the number of times the block 11 appears in the binary expansion of
.)
The Rudin–Shapiro sequence
is then defined by
Thus
if
is even and
if
is odd.
[2] The sequence
is known as the complete Rudin–Shapiro sequence, and starting at
, 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
of the Rudin–Shapiro sequence are:
+1, +1, +1, -1, +1, +1, -1, +1, +1, +1, +1, -1, -1, -1, +1, -1, ...
For example,
and
because the binary representation of 6 is 110, which contains one occurrence of 11; whereas
and
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(
|f(t)|2dt\right)1/2.
One can prove that for any sequence
with each
in
,
\supx\left|\sum0aneinx\right|\ge\left|\left|\sum0aneinx\right|\right|2=\sqrt{N}.
Moreover, for almost every sequence
with each
is in
,
\supx\left|\sum0aneinx\right|=O(\sqrt{NlogN}).
[7] However, the Rudin–Shapiro sequence
satisfies a tighter bound:
[8] there exists a constant
such that
\supx\left|\sum0rneinx\right|\leC\sqrt{N}.
It is conjectured that one can take
,
[9] but while it is known that
,
[10] the best published upper bound is currently
C\le(2+\sqrt{2})\sqrt{3/5}
.
[11] Let
be the
n-th
Shapiro polynomial. Then, when
, the above inequality gives a bound on
. More recently, bounds have also been given for the magnitude of the coefficients of
where
.
[12] Shapiro arrived at the sequence because the polynomials
where
is the Rudin–Shapiro sequence, have absolute value bounded on the complex unit circle by
. 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
with fixed point
and a coding
such that
, where
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
that requires a coding
to generate the Rudin-Shapiro sequence is the following:
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
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
Let
denote the Rudin–Shapiro sequence on
, in which case
is the number, modulo 2, of occurrences (possibly overlapping) of the block
in the base-2 expansion of
. Then the generating function
satisfies
(1+X)5S(X)2+(1+X)4S(X)+X3=0,
making it algebraic as a formal power series over
.
[16] The algebraicity of
over
follows from the 2-automaticity of
by Christol's theorem.
The Rudin–Shapiro sequence along squares
is normal.
[17] The complete Rudin–Shapiro sequence satisfies the following uniform distribution result. If
, then there exists
such that
\sumn\exp(2\piixun)=O(N\alpha)
which implies that
is uniformly distributed modulo
for all irrationals
.
[18] Relationship with one-dimensional Ising model
Let the binary expansion of n be given by
where
. 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)=
\exp(2\piixu(n,N)).
Recall that the partition function of the one-dimensional Ising model can be defined as follows. Fix
representing the number of sites, and fix constants
and
representing the coupling constant and external field strength, respectively. Choose a sequence of weights
with each
. For any sequence of spins
\sigma=(\sigma0,...,\sigmaN-1)
with each
, define its Hamiltonian by
Hη(\sigma)=-J\sum0ηk\sigmak\sigmak+1-H\sum0\sigmak.
Let
be a constant representing the temperature, which is allowed to be an arbitrary non-zero complex number, and set
where
is
Boltzmann's constant. The partition function is defined by
ZN(η,J,H,\beta)=
\exp(-\betaHη(\sigma)).
Then we have
S(N,x)=\exp\left(
,-1,\piix\right)
where the weight sequence
satisfies
for all
.
[19] See also
References
- Book: Allouche . Jean-Paul . Shallit . Jeffrey . Jeffrey Shallit . 978-0-521-82332-6 . . Automatic Sequences: Theory, Applications, Generalizations . 2003 . 1086.11015 .
- Book: Everest . Graham . van der Poorten . Alf . Shparlinski . Igor . Ward . Thomas . Recurrence sequences . Mathematical Surveys and Monographs . 104 . . . 2003 . 0-8218-3387-1 . 1033.11006 .
- Book: Pytheas Fogg, N. . Berthé, Valérie. Valérie Berthé. Ferenczi, Sébastien. Mauduit, Christian. Siegel, Anne . Substitutions in dynamics, arithmetics and combinatorics . Lecture Notes in Mathematics . 1794 . Berlin . . 2002 . 3-540-44141-7 . 1014.11015 .
- Book: Mendès France, Michel . 0724.11010 . The Rudin-Shapiro sequence, Ising chain, and paperfolding . 367–390 . Berndt . Bruce C. . Bruce C. Berndt . Diamond . Harold G. . Halberstam . Heini . Heini Halberstam . 3 . Hildebrand . Adolf . Analytic number theory. Proceedings of a conference in honor of Paul T. Bateman, held on April 25–27, 1989, at the University of Illinois, Urbana, IL (USA) . Progress in Mathematics . 85 . Boston . Birkhäuser . 1990 . 0-8176-3481-9 .
Notes and References
- 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 .
- Everest et al (2003) p.234
- 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 .
- 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 .
- Rudin . W. . Some theorems on Fourier coefficients. . . 1959 . 10 . 6 . 855–859. 10.1090/S0002-9939-1959-0116184-5 . free .
- Shapiro . H.S. . Extremal problems for polynomials and power series. . Master's Thesis, MIT. . 1952.
- Salem . R. . Zygmund . A. . Some properties of trigonometric series whose terms have random signs. . . 1954 . 91 . 245–301. 10.1007/BF02393433 . 122999383 . free .
- Allouche and Shallit (2003) p. 78–79
- Allouche and Shallit (2003) p. 122
- Brillhart . J. . Morton . P. . Über Summen von Rudin–Shapiroschen Koeffizienten. . . 1978 . 22 . 126–148. 10.1215/ijm/1256048841 . free .
- Saffari . B. . Une fonction extrémale liée à la suite de Rudin–Shapiro. . . 1986 . 303 . 97–100.
- 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 .
- http://www.emis.de/journals/SLC/opapers/s30allouche.pdf Finite automata and arithmetic
- Allouche and Shallit (2003) p. 192
- Pytheas Fogg (2002) p.42
- Allouche and Shallit (2003) p. 352
- 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 .
- Allouche and Shallit p. 462–464
- Allouche and Shallit (2003) p. 457–461