Bruce Litow
University of Wisconsin
Computing Services Division
Milwaukee WI 53201 (USA)
Philippe Dumas
INRIA Rocquencourt
Algorithms Project
78153 Le Chesnay (France)
A cellular automaton is a grid of elementary automata, each
communicating only with a finite number of its neighbours. In the
simplest models each elementary device, a cell or site, can take
only two values and is updated at intervals according to a rule which
expresses the actual value from its preceding value and that of its
neighbours. Here the values are elements of a field
, finite or
infinite.
As O. MARTIN, A. ODLYZKO and S.
WOLFRAM [7] emphasized, the behaviour of a cellular
automaton with a finite number of cells on a finite field is
ultimately periodic. It is natural to consider also automata with
cells in a line, which we call one dimensional automata. So a cell is
indexed by an integer
. At each time all the cells but a
finite number are in state 0. Throughout the paper we make use of
generating series and, from this point of view, a configuration is a
Laurent polynomial
![]()
C*(z)=Q(z)C(z),
whereTo study the behaviour of a cell in time we bring in a supplementary indeterminate x and the evolution of the automaton is encapsulated in the generating series
![]()
![]()
![]()
We show here that the vertical generating functions can be computed directly both in the case of finite fields and in the case of the complex numbers. A number of explicit examples based on classical combinatorial sequences (Catalan, Motzkin) are also worked out. Notably we show how the paper folding sequence can be generated by an extended linear cellular automaton.
Theorem 15636
If the ground field is a number field,
, (for example the
complex numbers field
) the vertical generating
series terms, Gn(x), are algebraic on
. Moreover they are
rational if the automaton is unilateral.
Proof :We call -m the valuation of Q(z), which means that
Q(z)=z-mP(z) and P(z) is a polynomial with
. The
degree of P(z) is d.
A. Bilateral case. First, we assume d>m>0. The series
![]()
![]()
| |
(1) |
According to the implicit function theorem, the roots of the denominator inside the circle are analytic functions of x and taking the residues we obtain
| |
(2) |
The term rn(x) comes from the residue at 0 and is a rational
function of x.
Formula (2) shows that Gn is an algebraic function
on the field of rational functions
.
B. Unilateral case.
If
(the automaton is right-hand sided), the sum is a
symetrical function of the roots
, ...,
, then
it can be expressed as a rational function of the coefficients of
zm-x P(z), i.e., as a rational function of x. If
(left-hand side case) the sum disappears and the result is just rn(x).
It should be noticed that, in the latter case, the Taylor formula also gives
the result. ![]()
The reader may have noticed a strong resemblance between the preceding result and an observation made by Furstenberg [4] about the diagonals of bivariate complex power series. The diagonal of a formal series in m indeterminates
![]()
![]()
Harry Furstenberg proved the next result for the case of finite
characteristic. (The
case has been known for a long time.)
Proposition 15689
Let
a rational formal series in m indeterminates
with coefficients in a field
.
If m=2 and
is the complex number field, the diagonal
is algebraic on
.
If
and
has a finite characteristic, the diagonal
is algebraic on
.
Conversely if the ground field,
, is the complex number field
or a finite field, an algebraic series is the diagonal of a rational
series in 2 indeterminates.
When the ground field is of finite characteristic, we can also treat
r-dimensional automata. The cells are now indexed by r-uples from
. The letter
represents the family of indeterminates
and the exponents are multi-indices.
Theorem 15698
For a ground field,
, of finite characteristic, and an
r-dimensional automaton, the vertical generating series are algebraic
on
.
Proof :We use directly Furstenberg's theorem, because the coefficient of
in
is the diagonal of
. ![]()
![]()
![]()
The most classical example in this area is the Thue-Morse sequence
. If an integer n has binary expansion
, then
is the
residue modulo 2 of the sum
.
The sequence obeys the recurrence

![]()
![]()
![]()
![]()
This type of recurrence is a hybrid between the standard linear recurrences associated to the rational fractions and the divide-and-conquer recurrences, that are classical in computer science. If further the field is finite, we obtain exactly the automatic sequences introduced by Cobham, as results from the theorem of Christol, Kamae, Mendès France and Rauzy [1,2].
Frequently, the generating series with a finite ground field appears as a reduction modulo p of a series with integral coefficient.
If a and b are two integers and ga,b(x) is the series
![]()
![]()
C0(z)=(1+z)a
with the rule![]()
It is well known that the n-th Catalan number is the number of binary trees with size n [5, p. 111]. A generating series for these numbers is
![]()
![]()
C0(z)=z
and the rule![]()
The diagram below illustrates the rule. (We will use the same
convention for the other examples.) The coefficient of the box tagged
by a circle
is obtained by adding the coefficients in the boxes
tagged by a cross
.
We see the evolution of the automaton for the cells, which have a number between -11 and 2, in the figure 1. (The arrows indicate the column number 0.)
More generally we can construct the generating series for the trees submitted to a condition on the degrees of the nodes, since this produces the equation
![]()
This example shows an extension of our model in which each automaton of the network can store a finite sequence of values instead of a single value and the rule is still additive. This could be realized by adding a limited memory.
The paper-folding sequence [6] is defined by the following procedure: one folds a sheet of paper an infinite number of times always in the same direction; next one unfolds it and one codes the sequence of the folds by 0 or 1 according to their up or down position . The sequence obeys the recurrence

x(1+x)4y2+(1+x)4y+1=0.
The first few terms are![]()
The shape of the equation is not directly compatible with a representation by an additive cellular automaton since the coefficient of x0 is not a monomial. We modify the series by subtracting its first term and Y=1+y satisfies the equation
x(1+x)4Y2+(1+x)4Y+x5+x4+x=0;
the latter has the right shape. The series Y is the coefficient of z0 in the rational series![]()

![]()
Figure 2 shows the evolution of this automaton and the diagram illustrates the rule. One recognizes in the column indicated by arrows the paper-folding sequence, except for its first term, which is suppressed.
Here a path is a sequence
of points from
, which satisfies
for
. The number
l is the length of the path. The Motzkin number Mn is the number
of paths of length n from some point with ordinate 0 to points
with ordinate 0 [5, p. 309].
The generating series of the Motzkin numbers is
![]()
![]()
P(x,y)=1+(x-1)y+x2y2.
As in the previous example, we suppress its first term to obtain an equation in which the constant term (relative to x) is a monomial.
The diagram illustrates the rule with the same convention as for the preceding example. Figure 3 shows the evolution of the automaton.
Acknowledgments We acknowledge the help of Philippe Flajolet who intoduced the authors to one another and gave them some useful hints like pointers to Pólya's work. We thank also Bruno Salvy who pointed out the Motzkin numbers as a nice example.