%%%%% How Many Squares Must a Binary Sequence Contain %%%%%

\magnification=\magstep1
\input wizzle
\input mymac
\font\smcp=cmcsc8 
      \headline={\ifnum\pageno>1 {\smcp the electronic journal of
      combinatorics 2 (1995), \#R2\hfill\folio} \fi} 

\vbox{\vskip 3truecm}\par
\ctrline{\twelveb How Many Squares Must a Binary Sequence Contain?}\vskip
25pt\par
\ctrline{{\sl Aviezri S.\ Fraenkel\/}\foot{Department of Applied
Mathematics \& Computer Science, The Weizmann Institute of Science,
Rehovot 76100, Israel. Email: fraenkel@wisdom.weizmann.ac.il .
Work done while visiting Curtin University.}\ and
{\sl R.\ Jamie Simpson\/}\foot{School of Mathematics, Curtin University,
Perth WA 6001, Australia. Email: \break tsimpsonr@cc.curtin.edu.au}}\medskip
\ctrline{Submitted: November 16, 1994; Accepted: December 11, 1994}
\vskip 20pt\par
{\capitals Abstract}.\quad Let $g(n)$ be the length of a longest binary
string containing at most $n$ distinct squares (two identical adjacent
substrings). Then $g(0)=3$ (010 is such a string), $g(1)=7$ (0001000) and
$g(2)=18$ (010011000111001101). How does the sequence $\bigl\{g(n)
\bigr\}$ behave? We give a complete answer.\bigskip
{\bf 1. Introduction}\medskip
A binary word (or string) containing no square (a pair of identical
adjacent subwords)  has maximum length 3; in fact, the only squarefree 
words of
length 3 are 010 and its 1-complement 101. A computer disclosed that a
binary word containing at most 1 square has maximum length 7: the only words
of length 7 with only 1 square are
$$0001000,\qquad 0100010,\qquad 0111011$$
and their 1-complements and the reverse of 0111011 and its 1-complement.
Further, a binary word containing at most 2 distinct
squares has maximum length 18; the only words of length 18 which contain 
only 2 distinct squares are
$$010011000111001101$$
and its 1-complement (which is also its reverse).\par
In general, let $g(k)$ denote the length of a longest binary word
containing at most $k$ distinct squares. ``Distinct" means that the
squares are of different shape, not just translates of each other. We
have seen that $g(0)=3$, $g(1)=7$, $g(2)=18$. This data raises the
following natural questions.\par
\oft{1.} Is the set of values of the sequence 
$S=\bigl\{g(k):k=0,1,\ldots \bigr\}$ infinite or finite?\par
\oft{2.} What's the value of $g(3)$?\par
Regarding the first of these questions, Entringer, Jackson and Schatz
\(1974\) considered the conjecture that $S$ is infinite, citing a
reference ``which$\ldots$ seems to say that \(this\) conjecture$\ldots$
is true". They then go on to show that $S$ is finite, by proving that
$g(5)=\infty$, i.e., there exists an infinite binary sequence with only 5
squares!\par
It has been shown many times that there exist infinite squarefree {\it
ternary\/} sequences. See e.g., Thue \(1912\), Morse and Hedlund
\(1944\), Hawkins and Mientka \(1956\), Leech \(1957\), Novikov and Adjan
\(1968\), Pleasants \(1970\), Burris and Nelson \(1971/72\), del Junco
\(1977\), Ehrenfeucht and Rozenberg \(1983\). (Currie \(1993\) wrote:
``One reason for this sequence of rediscoveries is that nonrepetitive
sequences have been used to construct counterexamples in many areas of
mathematics: ergodic theory, formal language theory, universal algebra
and group theory, for example$\ldots$".) Actually, Thue \(1912\) showed
more: there exists a doubly infinite squarefree
ternary sequence which also avoids the 2 triples $a_1a_3a_1$ and $a_2a_3
a_2$. See Berstel \(1992, \S4.2\) for an exposition of the full result, and 
Berstel \($\ge$ 1995\) for an English translation of Thue's papers.\par
Roth \(1991\) has proved that given any alphabet $\Sig$ of more than 2
letters, any given pattern, such as a square, is avoidable over $\Sig$,
if and only if there exists an infinite binary word in which any morphism
of that pattern is of bounded length.\par
Seen in this light, the result of Entringer {\it et al.}\ \(1974\) is not
surprising. But it brings into even sharper focus the second question,
because it makes us wonder about the values of $g(3)$ and $g(4)$.\par
We give a complete answer by showing that $g(3)=\infty$. In \S2, after
establishing some notation and definitions, we construct an infinite
binary sequence, and in \S3 we prove that it contains only the 3 squares
$0^2$, $1^2$ and $(01)^2$.\par
We also remark that questions regarding squares in sequences arise in
molecular biology, where they are known as {\it repeats}, or 
{\it tandem repeats}. In fact, the most frequent repeat in the human 
genome seems to be the {\it binary} word GT, with high {\it copy number} (the 
number of times GT is repeated). Trifonov \(1989\) argues that the
copy number influences the functions of DNA chains adjacent to the repeated 
word, such as their binding power and gene expression; it can even cause 
certain diseases if too high or too low; and it also influences the unwinding
capability of the DNA helix. Algorithms for identifying repeats and 
databases of repeats in the 
human genome are maintained by Milosavljevi\' {c} \($\ge$ 1995\).\par
Since the copy number at a given site changes from one individual to 
another, the copy number has also been used in DNA-{\it fingerprinting}. 
This application appears to have 
been originated by Alec Jeffreys' group in Leicester. See e.g., Jeffreys,
Wilson and Thein \(1985\) and Jeffreys, Turner and Debenham \(1991\).
Further elaborations on applications of DNA-fingerprinting to medicine and 
forensic 
medicine are given in Rask\'o and Downes \(1995, ch.\ 6,
especially p.\ 156; and ch.\ 12, especially pp.\ 379--380\), where it 
is also stated that the human genome contains some 500,000 repeated 
words. (Keywords for human genome applications are VNTR (Variable Number 
Tandem Repeats) and mini- and microsatellite sequences for the basic 
subwords that are repeated.)\smallskip
{\bf 2. Construction of the Binary Sequence}\medskip
We begin with some notation.\par
Denote by $\Sig\as$ the set of all {\it words\/} (finite or infinite
strings, also called blocks) over the finite alphabet $\Sig$, whose
elements are {\it letters\/}. Given a finite word $\sig=\sig_1\cdots
\sig_n\in\Sig\as$, $\sig_i\in\Sig$ $(i\in\{1,\ldots,n\})$, the {\it
length\/} of $\sig$ is $\vert\sig\vert=n=$ number of letters in $\sig$,
counting multiplicities. Below we use the binary, ternary and quinary
alphabets, denoted by $B=\{0,1\}$, $T=\{a_1,a_2,a_3\}$, $Q=\{a_1,a_2,
a_3,a_4,a_5\}$, respectively.\par
A {\it prefix\/} of a word is a subword at the {\it beginning\/} (left
side) of the word; a {\it suffix\/} is a subword at the {\it end\/}
(right side) of the word. Given words $x,y\in\Sig\as$, we denote by $xy$
the concatenation of these words, beginning with $x$ and ending with $y$.
Thus $x^2$ is the square $xx$. If $x$ is a subword of $y$, we also write
$x \sbseq y$.\par
A function $C\colon Q\as\rar B\as$ is an {\it encoding\/} (a binary
encoding of $Q\as$). Given a finite or infinite quinary word $q=q_1q_2
\cdots\in Q\as$, $q_i\in Q$ $(i\in\{1,2,\ldots\})$, $C$ is defined by the
{\it code\/} $C(q)=C(q_1)C(q_2)\cdots$, where the $C(a_i)$ are the given
{\it codewords\/} $(i\in\{1,\ldots,5\})$. Thus the codeword $C(a_i)$ is
also the code of $a_i$. {\it Decoding\/} refers to the inverse function
$C^{-1}\colon B\as\rar Q\as$ if it exists. To {\it parse} any subword of a 
code means to identify beginnings and ends of all the codewords contained 
entirely in the subword.\par
We are now ready to describe the construction of the doubly infinite
binary word which has only 3 squares. Since the construction involves
infinite processes, we call it a procedure rather than an algorithm.\par
{\capitals Procedure} TQB.\quad (1) Let $t\in T\as$ be a doubly infinite
squarefree ternary word over $T=\{a_1,a_2,a_3\}$, which avoids $a_1a_3
a_1$ and $a_2a_3a_2$.\par
(2) Replace every occurrence of $a_2a_3$ in $t$ by $a_2a_4a_3$, and
every occurrence of $a_3a_2$ by $a_3a_5a_2$. The result is a doubly
infinite quinary word $q\in Q\as$.\par
(3) Define $C(q)$ by
$$\eqalign{C(a_1)&=011\ 000\ 111\ 001\cr
C(a_2)&=011\ 100\ 011\ 001\cr
C(a_3)&=011\ 001\ 110\ 001\cr
C(a_4)&=011\ 0001\ 0111\ 001\cr
C(a_5)&=011\ 1001\ 0110\ 001.\cr}$$\indent
From this encoding we see that $C(q)$ contains the squares $0^2$, $1^2$
and $(01)^2$. In the next section we show that $C(q)$ contains no other
squares. The main idea is to establish an explicit bound on the length of
the squares of $C(q)$. $\bigl\{$The name TQB of the procedure of course 
reminds us 
that in step 1 we have a Ternary sequence, in step 2 we create a Quinary 
sequence, and in step 3 a Binary sequence.$\bigr\}$
\bigskip
{\bf 3. The Binary Sequence Contains Only 3 Squares}\medskip
A single 0 sandwiched between 2 neighboring 1-bits will be called an {\it
isolated\/} 0.\par
We begin by collecting some easily proved properties of the sequences $q$
and $C(q)$ generated in Procedure TQB.\par
(i) All and only all the pairs and triples of $q$ are listed in Tables~1
and 2 respectively.
\topin
\ctrline{{\capitals Table} 1.\quad Possible pairs of $q$.}
$$\vcenter{\halign{\ctr{$#$}\qquad&\ctr{$#$}\qquad&\ctr{$#$}\qquad&
\ctr{$#$}\cr
\noalign{\vskip -10pt}
a_1a_2&a_2a_1&a_3a_1&a_4a_3\cr
a_1a_3&a_2a_4&a_3a_5&a_5a_2\cr}}$$\bigskip
\ctrline{{\capitals Table} 2.\quad Possible triples of $q$.}
$$\vcenter{\halign{\ctr{$#$}\qquad&\ctr{$#$}\qquad&\ctr{$#$}\qquad&
\ctr{$#$}\cr
\noalign{\vskip -10pt}
a_1a_2a_1&a_2a_1a_2&a_3a_1a_2&a_4a_3a_1\cr
a_1a_2a_4&a_2a_1a_3&a_3a_1a_3&a_5a_2a_1\cr
a_1a_3a_5&a_2a_4a_3&a_3a_5a_2&a_5a_2a_4\cr}}$$
\endin\par
(ii) The lengths of the $C(a_i)$ is 12 $(i\in\{1,2,3\})$ and 14 $(i\in\{
4,5\})$. Only $C(a_4)$ and $C(a_5)$ contain isolated 0's; the only other
isolated 0's are at the beginning of every codeword $C(a_i)$, in every
concatenation $C(a_j)C(a_i)$. Hence the only distances between
consecutive isolated 0's in $C(q)$ are 7 or 12. The sequence of these
distances has the form
$$\cdots\ 7^2\ 12^{r_{-2}}\ 7^2\ 12^{r_{-1}}\ 7^2\ 12^{r_0}\ 7^2\
12^{r_1}\ 7^2\ 12^{r_2}\ 7^2\ \cdots~,$$
where the $r_i$ are {\it positive\/} integers (since $a_4$ and $a_5$
cannot be adjacent).\par
(iii) The doubly infinite sequence $C(q)$ can be parsed uniquely into
codewords $C(a_i)$ $(i\in\{1,\ldots,5\})$ by placing a comma in front of
isolated 0's at distances 12 and 14 (skipping those isolated 0's which are
at distance 7 from both of their preceding and succeeding isolated 0). Thus 
$C(q)$ can be decoded uniquely into $q$.\par
(iv) A codeword $C(a_i)$ is not a prefix or suffix of $C(a_j)$ for any
$j\ne i$.\par
We show now that property (iii) can be strengthened: also certain finite,
even short subwords of $C(q)$ can be parsed uniquely.\par
{\capitals Proposition} 1.\quad Any subword $w$ of $C(q)$ which contains
a codeword can be parsed uniquely, and so any codeword in $w$ can be
decoded uniquely.\par
{\capitals Proof}.\quad Suppose first that $w$ contains no isolated 0.
Then (ii) implies that $\vert w\vert=12$ or 13, and the 12 left bits
constitute a unique codeword. If $w$ contains 2 isolated 0's at distance
12 then a unique codeword at length 12 can be identified, which induces a
unique parsing on $w$. Unique parsing also results if $w$ contains 3
isolated 0's at distances $7,7$, when a unique codeword of length 14 can
be identified. By (ii), the only remaining cases are 2 isolated 0's,
$z_1$ and $z_2$, at distance 7, say with $z_1$ to the left of $z_2$, or else a
single isolated 0, denoted by $z$.\par
If there are precisely 12 bits to the left of $z_1$ (or $z$), then they
constitute a unique codeword. Similarly, if there are 11 or 12 bits to
the right of $z_2$ (or $z$), then $z_2$ (or $z$) and the first 11 bits to
its right constitute a unique codeword. So suppose that neither of these
two cases holds. Then $w$ must contain $C(a_4)$ or $C(a_5)$. In fact,
either there are precisely 7 bits to the left of $z_1$ beginning in 01,
which constitute the beginning of $C(a_4)$ or $C(a_5)$; or else there are
precisely 6 or 7 bits to the right of $z_2$, the first 6 of which end in
01, which constitute the end of $C(a_4)$ or $C(a_5)$. In the case of $z$,
there must be precisely 7 bits to the left of $z$ beginning in 011 {\it
and\/} precisely 6 or 7 bits to the right of $z$, the first 6 of which
end in 001, which identifies $C(a_4)$ or $C(a_5)$ uniquely.\QEDA\par
In Table~3 the braces indicate illegal parsings; in fact, they violate
the conditions, given at the end of the proof, which the bits near $z_1$,
$z_2$ and $z$ have to satisfy. By (i), Table~3 lists all the pairs
containing $a_4$ or $a_5$.
\midinsert
\ctrline{{\capitals Table} 3.\quad Encodings of the 4 pairs containing
$a_4$ and $a_5$.}
$$\eqalign{C(a_2a_4)&=011\ 10\overbrace{0\ 011\ 001\ \vert\ 011\ 0001}\
0111\ 001\cr
C(a_3a_5)&=011\ 00\overbrace{1\ 110\ 001\ \vert\ 011\ 1001}\ 0110\ 001\cr
C(a_4a_3)&=011\ 0001\ \overbrace{0111\ 001\ \vert\ 011\ 001\ 1}10\ 001\cr
C(a_5a_2)&=011\ 1001\ \overbrace{0110\ 001\ \vert\ 011\ 100\ 0}11\
001\cr}$$
\endinsert\par
We now come to the main result.\par
{\capitals Proposition} 2.\quad Let $C(q)$ be a doubly infinite binary
word produced by Procedure TQB. Then every square of $C(q)$ is contained
in some subword $C(q\pri)\sbseq C(q)$ where $q\pri\sbseq q$ with $\vert
q\pri\vert\le 3$.\par
{\capitals Proof}.\quad Suppose $b_1\cdots b_{2m}\sbseq C(q\pri)$ is a
(binary) square which intersects the code of $\vert q\pri\vert\ge 4$
letters of $q$. Denote the words $b_1\cdots b_m$, $b_{m+1}\cdots b_{2m}$,
$b_1\cdots b_{2m}$ by $w_L$, $w_R$, $w=w_Lw_R$ respectively. Observe that
$\vert q\pri\vert\ge 4$ implies that either $w_L$ or $w_R$ contains a
complete codeword, say $c_1$. Assume $c_1$ is contained in $w_L$, say.
\par
Suppose first that the leftmost bit of $c_1$ is at $b_1$. Since $w$
is a square, the bits of $c_1$ appear also in $w_R$, with the leftmost
bit at $b_{m+1}$. By (iv) and Proposition~1, actually $c_1$ appears in $w_R$,
left-justified, and the complement of of this left-justified $c_1$ with 
respect to $w_R$ is tiled uniquely with an integer number of
codewords $c_i$. The same codewords then appear, shifted
left by $m$ places, in the complement of the left-justified $c_1$ of $w_L$
with respect to $w_L$. Since the parsing is unique and $w$ contains no
part-codewords, the decoding exists,
and so $q$ contained a  square, which is a contradiction. The same
contradiction results if we assume that the rightmost bit of $c_1$ is at
position $b_{m}$.\par
We may thus assume that $c_1$ is neither right- nor left-justified in
$w_L$. Without loss of generality we may assume that $c_1$ is the leftmost
codeword contained entirely in $w_L$.
Since $w$ is a square, Proposition~1 implies that $c_1$ also appears
in $w_R$, at a unique location, namely right-shifted by $m$ places from its
location in $w_L$. Thus $c_1$ begins at some location $j+1>m+1$, and so at
location $j\ge m+1$, a codeword $c_2$ ends, which begins at some location 
$k\le m$.\par
Suppose first that at least 8 of the bits of the suffix of $c_2$ are in
$w_R$. We then use the following {\it left-shift argument\/}.\par
From the mapping $C$ defined in Procedure TQB we see that a suffix of
length $\ge 8$ determines $c_2$ uniquely, when also the location $j$ of
the end of $c_2$ is given. (Knowing this location is crucial: note that the
suffix of length 13 of $C(a_4)$ is identical to a subword of length 13
contained in the interior of $C(a_3a_5)$.)
Since $w$ is a square, it follows that
at location $j-m\ge 1$ there is the end of the codeword $c_2$,
which begins at location $k-m<1$.\par
Again using the fact that $w$ is a square we now have, in particular,
$b_i=b_{i+m}$ for $i=k-m,\ldots,k-1$, i.e., we have another square
$$w\pri=b_{k-m}\cdots b_{k-1}b_{k}\cdots b_{k+m-1}=w\pri_L w\pri_R,$$
also of length $2m$, shifted left of $w$ by $m-k$ bits, where $w\pri_L=
b_{k-m}\cdots b_{k-1}$ and $w\pri_R=b_{k}\cdots b_{k+m-1}$. Now $w\pri_R$
begins with a codeword and ends with one. As we saw above this implies
that $q$ has a square, which is a contradiction. This ends the
left-shift argument.\par
We end the proof by considering four cases for the length of the suffix
of $c_2$.\par
I. Assume that $c_2$ has a suffix of precisely 7 bits in $w_R$. The
mapping $C$ reveals that then $c_2$ is uniquely determined, except when
$c_2=C(a_1)$ or $C(a_4)$. When $c_2$ is uniquely determined, then the
left-shift argument applies as above.\par
So assume first that $c_2=C(a_1)$. If $C(a_1)$ intersects also the
beginning of $w_L$, then the left-shift argument
applies. Thus assume $C(a_4)$ intersects the beginning
of $w_L$. By Table~1, $C(a_4)$ is followed by $C(a_3)$. Since $w$ is a
square, $C(a_3)$ must follow $C(a_1)$ in $w_R$. By Table~2, this $C(a_3)$
must be followed by $C(a_5)$. If this $C(a_5)$ is contained in $w_R$, then 
$C(a_5)$ must follow $C(a_3)$ in $w_L$.
Thus $C(a_4a_3a_5)$ intersects $w_L$. This is a contradiction, since the
triple $a_4a_3a_5$ doesn't appear in Table~2 (since $t$ doesn't contain
$a_2a_3a_2$). If $C(a_5)$ is not contained entirely in $w_R$, then the 
end of $C(a_3)$ and the beginning of $C(a_1)$ in $w_L$ are adjacent bits.
Since $w$ is a square, the first 5 bits of $C(a_1)$ and $C(a_5)$ must
then agree, but they don't.\par
Secondly, assume that $c_2=C(a_4)$. If $C(a_4)$ also intersects the
beginning of $w_L$, the left-shift argument applies. So assume that
$C(a_1)$ intersects the beginning of $w_L$. By Table~2, $C(a_4)$ is
followed by $C(a_3a_1)$ (since $a_3a_2$ cannot appear in $q$). Note that
$C(a_3)$ must then be contained in both $w_R$ and $w_L$. If $C(a_3a_1)$ 
is contained in $w_R$, then $C(a_3a_1)$ also appears after $C(a_1)$ in 
$w_L$. But then $q$ and hence $t$ contained $a_1a_3a_1$, which is a 
contradiction. If $C(a_1)$ is not contained entirely in $w_R$, then 
the end of $C(a_3)$ and the beginning of $C(a_4)$ in $w_L$ must be 
adjacent bits. This is impossible, since $q$ doesn't contain $a_3a_4$.\par
II. Assume that $c_2$ has a suffix of precisely 6 bits in $w_R$. Then
case~I applies a fortiori, and the same proof is valid. But now, in
addition, $C(a_3)$ and $C(a_5)$ have the same suffix (of 6 bits).\par
Assume first that $c_2=C(a_3)$. The only case that needs to be considered
is when $C(a_5)$ intersects the beginning of $w_L$. It is followed by
$C(a_2)$ (Table~1). Then $C(a_2)$ follows $C(a_3)$ in $w_R$, which is a
contradiction, since $q$ doesn't contain $a_3a_2$.\par
Secondly, assume that $c_2=C(a_5)$. Then $C(a_5)$ has a prefix of length
8 in $w_L$, which is seen to be unique, so a right-shift argument,  
analogous to the left-shift argument, applies.
\par
III. Assume that $c_2$ has a suffix of precisely 5 bits in $w_R$. Then 
case~II applies a fortiori, but also $C(a_1), C(a_2)$ and $C(a_4)$ have 
the same suffix (of 5 bits).
\par
Suppose first that $c_2=C(a_1)$ and $C(a_2)$ intersects the beginning of 
$w_L$. Now
Table~1 shows that $C(a_2)$ is followed by $C(a_1)$ or $C(a_4)$. The former 
is impossible since then $q$ contains the square $a_1^2$, and the latter is 
impossible since then $q$ contains $a_1a_4$. So assume $c_2=C(a_2)$ and 
$C(a_1)$ intersects the beginning of $w_L$. Now $C(a_1)$ is followed
either by $C(a_2)$ or $C(a_3)$. The former is impossible, since $q$
doesn't contain a square $a_2^2$, and the latter is impossible since
$q$ doesn't contain $a_2a_3$.\par
Secondly, assume that $c_2=C(a_2)$ and $C(a_4)$ intersects the beginning
of $w_L$. Now $C(a_4)$ is followed by $C(a_3)$, so $C(a_3)$ must follow 
$C(a_2)$ in $w_R$, which is impossible, since $q$ doesn't contain $a_2a_3$.
If $c_2=C(a_4)$ and $C(a_2)$ intersects the beginning of $w_L$, we get
the same contradiction.\par
IV. Assume that $c_2$ has a suffix of $\le 4$ bits in $w_R$. Then $c_2$
has a prefix of $\ge 8$ bits at the end of $w_L$ which determines
$c_2$ uniquely, so a right-shift argument applies.\par
Thus the assumption $\vert q\pri\vert\ge 4$ leads to a contradiction in
all cases, hence $\vert q\pri\vert\le 3$.\QEDA\par
A computer program verified that for all the triples in Table~3, the only
squares in the code of these triples are the obvious ones: $0^2$, $1^2$ 
and $(01)^2$. This completes our proof that $g(3)=\infty$.\bigskip
{\capitals Acknowledgment}.\quad We would like to thank Justin Carpenter
for his invaluable help with the computations.\bigskip
\ctrline{\capitals References}\medskip
\oft{1.} J.\ Berstel \(1992\), Axel Thue's work on repetitions in words,
in: {\it S\'eries Formelles et Combinatoire Alg\'ebrique} (P.\ Leroux
and C.\ Reutenauer, eds.), Publ.\ du LACIM, Vol.\ 11, Universit\'e
de Qu\'ebec, \`a Montr\'eal, pp.\ 65-80.\par
\oft{2.} J.\ Berstel \($\ge$ 1995\), Axel Thue's papers on
repetition in words: an English translation, Publ.\ du LACIM, Universit\'e 
de Qu\'ebec, \`a Montr\'eal.\par
\oft{3.} S.\ Burris and E.\ Nelson \(1971/72\), Embedding the dual of
$\pi_{\infty}$ in the lattice of equational classes of semigroups, {\it
Algebra Universalis\/} {\bf 1}, 248--153.\par
\oft{4.} J.D.\ Currie \(1993\), Open problems in pattern avoidance, {\it
Amer.\ Math.\ Monthly\/} {\bf 100}, 790--793.\par
\oft{5.} A.\ del Junco \(1977\), A transformation with simple spectrum
which is not rank one, {\it Canad.\ J.\ Math.} {\bf 29}, 655--663.\par
\oft{6.} A.\ Ehrenfeucht and G.\ Rozenberg \(1983\), On the separating
power of EOL systems, {\it RAIRO Inform.\ Th\'eor.} {\bf 17}, 13--22.\par
\oft{7.} R.\ Entringer, D.\ Jackson and J.\ Schatz \(1974\), On
nonrepetitive sequences, {\it J.\ Combin. Theory\/} (Ser.~A) {\bf 16},
159--164.\par
\oft{8.} D.\ Hawkins and W.E.\ Mientka \(1956\), On sequences which
contain no repetitions, {\it Math.\ Student\/} {\bf 24}, 185--187.\par
\oft{9.} A.J.\ Jeffreys, M.\ Turner and P.\ Debenham \(1991\), The efficiency
of multilocus DNA fingerprint probes for individualization and establishment 
of family relationships, determined from extensive casework, {\it Am.\ 
J.\ Hum.\ Genet.} {\bf 48}, 824--840.\par
\oft{10.} A.J.\ Jeffreys, V.\ Wilson and S.L.\ Thein \(1985\), Hypervariable
`minisatellite' regions in human DNA, {\it Nature} {\bf 314}, 67--73.\par
\oft{11.} A.J.\ Jeffreys, V.\ Wilson and S.L.\ Thein \(1985\), 
Individual-specific `fingerprints' of human DNA, {\it Nature} {\bf 316},
76--79.\par
\oft{12.} J.A.\ Leech \(1957\), A problem on strings of beads, {\it Math.\
Gaz.} {\bf 41}, 277--278.\par
\oft{13.} A. Milosavljevi\' {c} \($\ge$ 1995\), Repeat Analysis, Ch.\ 13,
Sect.\ 4, Imperial Cancer Research Fund Handbook of Genome Analysis, 
Blackwell Scientific Publications, in press.\par
\oft{14.} M.\ Morse and G.A.\ Hedlund \(1944\), Unending chess, symbolic
dynamics and a problem in semigroups, {\it Duke Math.\ J.} {\bf 11},
1--7.\par
\oft{15.} P.S.\ Novikov and S.I.\ Adjan \(1968\), Infinite periodic groups
I, II, III, {\it Izv.\ Akad.\ Nauk.\ SSSR Ser.\ Mat.} {\bf 32}, 212--244;
251--524; 709--731.\par
\oft{16.} P.A.B.\ Pleasants \(1970\), Non-repetitive sequences, {\it
Proc.\ Cambridge Phil.\ Soc.} {\bf 68}, 267--274.\par
\oft{17.} I.\ Rask\'o and C.S.\ Downes \(1995\), {\it Genes in Medicine:
Molecular Biology and Human Genetic Disorders}, Chapman \& Hall, London.\par
\oft{18.} P.\ Roth \(1991\), $\lscr$-occurrences of avoidable patterns, in:
8th Annual Sympos.\ Theoretical Aspects of Computer Science (STACS; 
C.\ Choffrut and M.\ Jantzen, eds.), Hamburg, Lect.\ Notes in
Comp.\ Sci.\ 480, Springer-Verlag, pp.\ 42--49.\par
\oft{19.} A.\ Thue \(1912\), \"Uber die gegenseitige Lage gleicher Teile
gewisser Zeichenreihen, {\it Norske Vid.\ Selsk.\ Skr., I.~Mat.\ Nat.\
Kl.\ Christiania\/} {\bf I}, 1--67.\par
\oft{20.} E.N.\ Trifonov \(1989\), The multiple codes of nucleotide 
sequences, {\it Bull.\ Math.\ Biology} {\bf 51}, 417-432.\par\bye


.
