J
OURNAL DE
T
HÉORIE DES
N
OMBRES DE
B
ORDEAUX
P
ATRICK
M
ORTON
Connections between binary patterns and paperfolding
Journal de Théorie des Nombres de Bordeaux, tome 2, n
o1 (1990), p. 1-12
<http://www.numdam.org/item?id=JTNB_1990__2_1_1_0>
© Université Bordeaux 1, 1990, tous droits réservés.
L’accès aux archives de la revue « Journal de Théorie des Nombres de Bordeaux » (http://jtnb.cedram.org/) implique l’accord avec les condi-tions générales d’utilisation (http://www.numdam.org/conditions). Toute uti-lisation commerciale ou impression systématique est constitutive d’une infraction pénale. Toute copie ou impression de ce fichier doit conte-nir la présente mention de copyright.
Article numérisé dans le cadre du programme Numérisation de documents anciens mathématiques
Connections
between
binary
patterns
and
paperfolding.
par PATRICK MORTON1. Introduction. This talk will be an overview of some recent work on
binary
patterns
and theirrelationship
topaperfolding
sequences. Much ofthis work was motivated
by the Rudin-Shapiro
sequence(aii (n))
definedby
where
ell(n~
is the number of occurrences of thepattern
11 in thebinary
representation
of n. On the onehand,
this definition is easy togeneralize.
One can consider the
analogous
sequencewhere P is any
pattern
of 0’s and l’s andep(n)
counts occurrences of P inn. ,
On the other
hand,
there is the beautiful fact discoveredby
Mend6s France that ail isexactly
the direction sequence of thepaperfolding
se-quence obtained
by
folding
arectangular
piece
of paperalternately
underand over the left
edge
(which
is heldfixed). (See
[2]
or[4].)
This raises the
question:
is this result about all isolated or does itpoint
to some
deeper
connection betweenbinary
patterns
andpaperfolding?
2.
Properties
of The results of this sectionrepresent
joint
work with DavidBoyd
and Janice Cook.(See [1].)
Let me
begin
by recalling
some of theproperties
of the sequenceaP(n)
defined
by
(1),
where P is anypattern
of 0’s and 1’s. First defineThen the
following
theorem holdsconcerning
the behavior ofsp(x).
THEOREM 1.
(See
Thepartial
sum functionsp(x)
has therepre-sentation
, , _.. _ "’" ,
where
t(x)
is continuous andso(x) is
bounded.Further,
where
the ~k
are the roots outside the unit circle of thepolynomial
and
(By
definition k is aperiod
of P = if andonly if p; =
p;+ k for0~~d-l--~)
Finally,
the continuous functions of x > 0satisfying
As a
corollary
we havewhere T =
logf/log2
and f
isthe
maximum modulus of the roots ofP(x).
For all but 14patterns
(in
particular,
if d >5) ~ _
~1
is a root ofP(x).
From this follows"the formula
so in these cases
A(x)
=A, (x)
(for
1 x2)
represents
thelimiting
behavior of
sp(x)lx’
on the intervals[2~2~},
as k - oo. This limitfunction possesses two rather nice
properties:
1)
is nondifferei tiable almosteverywhere,
2) x
EQ #
xTa(x)
EQ(~).
Property
1)
alsoimplies
thatsP(x)
= so that xT is the correctThe
polynomials
P(x)
in theorem 1 alsosatisfy
a remarkable set ofrecur-sions. In order to state these
recursions,
let P and P’ bepatterns
oflength
d andd ~- 1
recpectively,
and let II and IT denote their sets ofperiods,
e.g.k E II if and
only
if k is aperiod
of P.If
P(x)
andP’(x)
denote thecorresponding
polynomials,
as in(3),
thenP(x)
andP’(x)
depend only
on theperiod
setsII, IT,
and for everyperiod
set IT there is a
unique
period
set 11 for whichWe called these formulae the red and blue
rules,
respectively.
They
show that thepolynomials
P(x)
form atree,
with red or blue branchesdepending
on the rule which connects
P(x)
toP~(x).
In[1]
we show that this treehas a fractal-like structure. It has a sequence of
periodic
subtrees whichare
isomorphic
tolarger
andlarger
initialpieces
of the wholetree;
thus thetree
reproduces
itself in its subtrees.The sequences ap are very fundamental.
They
can be used tostudy
arbitrary
sequences of fl’s. If a = is any sequence offl’s,
thenthere is a
unique
sequence{Pk}
ofbinary
patterns
withincreasing
values(the
value of apattern
is theinteger
itrepresents)
and noleading
zeros, forwhich
This infinite
product
is definedusing
thetopology
in which two sequencesare close if a
large
number of their initial terms agree. Let us call the setthe
binary
spectrum
of the sequence a.Now consider the
question:
is itpossible
to characterize the sequences a which have a finitespectrum?
3. The arithmetic f’ractal groups
Fk(G).
,The answer to the last
question
is in fact yes, anddepends
on thefollow-ing
definition.(See
Morton and Mourant[4]
for the results of thissection.)
DEFINITION. Let G be an abelian group, a = an infinitethe associated sequence of
kq -segments
of a. These vectorspartition
thesequence a into vectors of
length
kq. We defineis
periodic
withperiod
ll~ for allq >
0}
Here is definedusing
scalarmultiplication
(or
scalar addition if theoperation
in G isaddition).
The leastperiod
M of a sequence a inrk(G)
is called its conductor.The set
rk(G)
is an abelian group undercomponentwise
multiplication.
As an
example,
let P be apattern
ofdigits
base k and consider thesequence
ep(n)
which counts the number of occurrences of P in the base-krepresentation
of n. Then eP Erk(Z)
with conductordividing
kd-1,
where d is the number ofdigits
of P.(This
holds aslong
as P is not apattern
ofall
0’s).
This fact follows from theequation
If k =
2,
reducing
el modulo 2
gives
the Thue-Morse sequenceei,
whichsatisfies
--- __,. -L. J ’- I - -
’-hence
e1
Erk(Z2 ).
This last formula is a restatement of the familiar fact thatei
is invariant under the substitutionThe
corresponding
equation
for the sequence ofintegers
e1 also holds incharacteristic 0:
.I’ ,
The related sequences ap =
(eP, where (
is a root ofunity,
generate
aspecial subgroup
ofrk( ( > ),
namely
thesubgroup
with conductor
dividing
a power ofk},
whichprovides
an answer to thequestion
we raised in section 2.THEOREM 2.
(See ~4J.)
Tlie sequences inA2 (+ 1)
areexactly
these-quences which have a finite
binary
spectrum.
Of course an
analogous
result characterizes sequences in>)
The sequences in
rk(G)
can bethought
of as arithmeticanalogues
offractals. As an
example
consider theRudin-Shapiro
sequence a11, whose first four terms areWe have
Since ali E
ra(~1)
with M =2,
the definition(4)
implies
that therelations
(5)
persist
for2q-segments
at all levels:This can be used to
generate
allby considering
the first four terms as theelements of
XOI
andXi .
Using
(6)
with q
= 1gives
the next four terms ofthe sequence:
- - -
-For q
= 2 we thenget
8 more terms :etc. The same rule con:aects 29
-egments
at everincreasing levels,
inanalogy
to the familiar constructions used togenerate
certaintypes
of ge-ometric fractals. The same remarks hold for any sequence inrk(G)
for allk and G.
4.
Properties
ofrk(G).
Among
theproperties
of these groups I want toparticularly
mention three. Forproofs
of 1. and 2. see[4].
1. In the definition of
rk(G)
weonly
need torequire
thata-1(n)Xn
beperiodic
ofperiod
M. The fact that hasperiod
M for allq >
0 follows.2. If G = U is the group of
complex
roots ofunity,
contains anisomorphic
copy of every finite abelian group.Every
finite abelian group isa
homomorphic image
ofrk(Z),
for a,ny k.3. If G is
finite,
the sequences inrk(G)
are all k-automatic.I will prove this last
property
using
thefollowing
mapsTi
on sequences:From
property
1. above we have thefollowing
characterization of sequencesLEMMA. The sequence a lies in
rk(G)
if andonly
if a-1Tia is
periodic
Proof. The sequence is
periodic
if andonly
if all its compo-nent sequences areperiodic,
and its i-thcomponent
isjust
a-ltia.
If
Til’ ..., Ti,.
are any r of these maps(with
possible
repetitions),
thenobviously
Hence we can use these maps to characterize sequences in
rkq (G) :
these are sequences a for whicha-lta
isperiodic
for all monomials Tin
To, · · · ,
Tk-l
ofdegree
q.As is
well-known,
a sequence a is k-automatic if andonly
if the set ofsequences +
i)}
is a finite set.Using
the maps T we can statea is k-automatic if and
only
if there areonly
finitely
manyimages Ta,
asT runs over all monomials in
To , ~ · ~ ,
Tk-i .
Using
this we proveTHEOREM 3. If G is a finite abelian group, the sequences in are
a~l k-automatic.
Proof.
By
definition,
a E has theproperty
that isperiodic
Tia
= api,where pi is a
periodic
sequence, ofperiod M,
say. If S is any monomial inTo; .. ,
and ,S’ _S’Ti, then
where
p’ =
S(pi)
is alsoperiodic
withperiod
M.Peeling
off one termTi
ata time
gives
finally
thatwhere
p
isperiodic
withperiod
M. But there areonly
finitely
manyperiodic
sequences of a
given
period
with terms that are taken from thegiven
finiteset G. Hence there are
only finitely
many distinct sequencessa, implying
A different
proof
of this theorem appears in[5],
where we show thatthe sequences in
rk(G)
areessentially
fixedpoints
of kr- substitutions forsuitable r. Shallit
(private communication)
has foundyet
a thirdproof.
If
Ak(G)
is the set of all k-automatic sequences taken from thealphabet
G,
then it is a consequence of theorem 3 thatand so
It is not hard to exhibit automatic sequences which are not in
rkq
for anyq. We do this
for q
= 2 in thefollowing
Example.
Let G =Z2
and let u be the Baum-Sweet sequence, definedby
These formulae ma.y be written as follows:
It is easy to check that
To show
that u v r29(Z2)
for any q, we show that -u + Su = u + Su is notperiodic,
for a suitable monomial S ofdegree
q. It suffices totake q
> 2and S = Then
which is not
periodic,
since theseries ~~ o
unxn
satisfies an irreducibleThese considerations also raise the
following
question :
Question.
Sincerk(G)
andAk(G)
are abelian groups,they
haveasso-ciated
rings
ofendomorphisms.
What areIt is obvious that
Ti
EE2
and nothard
to check thatTi
EEl
for alli =
0,1, ~ ~ ~ , J~ -
1. Since theTi
do not commute this shows thatEi
andE2
are non-commutativerings.
5.
Paperfolding
sequences. I turn now to the connection betweenbinary
patterns
andpaperfolding
sequences. First a little notation. I want to considerpaperfolding
sequencescorresponding
to an infinite sequence offolding
instructionswhere
§n =
o or u and o, u denote theoperations
offolding
arectangular
piece
of paperrespectively
over or under the leftedge, (see
[2],[3]).
If weis the finite initial word of w of
length
m, then there are two sequences of±1’s associated to wm .
The
first,
fw.,
encodes the sequence of up or down folds obtainedby
unfolding
the paper afterapplying
according
to the rulesThe
second,
denoted encodes horizontal and vertical directions in theplane
curve obtainedby
making
all the foldsequal
toright angles
andlooking
at the paperedge-on.
Indwm’
horizontal and vertical directionsare coded
by
For
example,
The limit
points
of the1~, ~d~,,~ , rra >
1}
in the set of allsequences of are
respectively
calledpaperfolding
sequences and direc-tion sequencescorresponding
to the word z,v. Thetopology
withrespect
towhich these limits are to be taken is the
topology
in which two sequencesare close if a
large
number of their initial terms agree. It is not hard to show that asubsequence
or converges in thistopology
if andonly
if thesubsequence
ofcorresponding
words wm isreverse-convergent,
i.e. if andonly
if anincreasing
number of the final instructions of theagree.
Using
this fact it is easy to see thatpaperfolding
sequences anddirection sequences of w are in 1-1
correspondence
with the reverse infinitewords
for which are subwords of iv. This sequence is called a sequence
of
unfolding
instructions,
(see [2]
or[3]).
Let me denote thepaperfolding
and direction sequences
corresponding
to wby /~
andde..;.
If one definesthen one has
and the
following
result holds:THEOREM 4..
(See
theorem13.)
Let the reverse infinite sequence ú)be
periodic,
withperiod
A. ThenIn fact sw and
dw
have conductor2,
sothey
lie in therespective
subgroups
and
A2~(::i:l).
It followsby
theorem 2 andanalogous
results that swand
dfJ)
arerespectively
a. sum andproduct
ofpattern
counting
sequences.For
example,
where
and the
digits
i, j
in this formula are taken base 8. This leads to therepresentation
where ap =
Theorem 4 raises the
question:
for whichunfolding
sequen ces w isdw
EWe
phrase
the answer to thisquestion
in terms of the map r defined asfollows. Let
Dw
denote the set of direction sequences which arise from agiven
infiniteword w,
and setThen T :
Dw
2013~Dw
and in[4]
we show thatfor two fixed vectors
X, Y
oflength
two; hence the sequence is a"sign sequence"
ford,
withrespect
tosegments
oflength
two.By
iterating
the map T we prove that is a
sign
sequence fordw
withrespect
tosegments
oflength
2k,
and this fact leads to thefollowing
result,
(see [4],
theorems17-18):
THEOREM 5.
I~
The sequencedw
lies inr 2’B (:i: 1)
if andonly
aperiodic
sequence.
2)
If dw
EF2’(±l),
thendW
EA2,B, (:1:1),
for a suitablemultiple
A’ of A.3)
dw
EA2.B, (:i:1)
if andonly
iffor some n > o.
Hence direction sequences in
correspond
topre-periodic
points
of the map T, and the groupsr2~(:l:l)
arisenaturally
in connection with thediscrete
dynamical
system
(Dw, T).
THEOREME 6.
(See
~4),
theorem19.)
The direction sequencedtN
is a finiteproduct
ofpattern
sequences base2A
(and
so has a finitespectrum
base2À)
if and only if
orwhere
W2 is
obtained from W2by switching
o’s and u’s.As
examples
with A = 1 let me notewhere the
patterns
in these formulae are allbinary
patterns.
From theserelations it is
possible
tocompute
thespectra
of all direction sequences which lie inA2(~1).
Forexample,
where the
product
is over allbinary
patterns
beginning
with 1 andhaving
length
k ~-1.
This shows that everybinary
pattern
(with
aleading 1)
occursin the
binary
spectrum
of somedeN.
I will finish
by
recalling
a recent theorem of Mend6s France and Shallit[3]
(see
their theorem 4.2 for thespecial
case ofpaperfolding;
note that theirsequence of turns is here what we have called a
paperfolding
sequence):
THEOREM. The
paperfolding
sequence is 2-automatic if andonly
if thesequence w of
unfolding
instructions isultimately periodic.
Together
with theorem6,
thisgives
THEOREM 7. A
paperfolding
sequencefeN
is 2-automatic if andonly
if itsassociated direction sequence
dw
has a finitespectrum
base2..B ,
for some A.ACKNOWLEDGEMENTS : The author
gratefully
acknowledges
thesupport
of the Alexander von HumboldtFoundation,
theC.N.R.S.,
the D.R.E.T.and the Mathematics
Departements
at theUniversity
ofBordeaux,
theUniversity
of Paris-Sud and theUniversity
ofHeidelberg
during
theperiod
this article was written.REFERENCES
[1]
D.W. BOYD, J. COOK and P. MORTON, On sequences of ± 1’s defined by binarypatterns. Dissertationes Math. 283, to appear.
[2]
M. DEKKING, M. MENDÈS FRANCE and A. van der POORTEN, Folds I,II III, Math. Intelligencer 4(1982),
130-138, 173-181, 190-195.[3]
M. MENDÈS FRANCE and J. O.SHALLIT,
Wire bending, J. Comb. Theory 50(1989),
1-23.[4]
P. MORTON and W.J. MOURANT, Paper folding, digit patterns and groups ofarithmetic fractals, Proc. London Math. Soc. 59, 2,
(1989),
253-293.[5]
P. MORTON and W.J. MOURANT, Digit patterns and transcendental numbers. submitted.Mots c2e&: Paperfolding, occurrences of words, fractals.
1980 Mathematics subject classi,fications: 10A30, 10L10, 68D22.
Mathematisches Institut, Universitat Heidelberg
Heidelberg
(GERMANY)
and
Dept. of Mathematics, Wellesley College,