Additive CA 2
Additive CA 2
Vladimir Garcı́a-Morales
Departament de Fı́sica de la Terra i Termodinàmica,
Universitat de València, E-46100 Burjassot, Spain∗
In this article, the replication of arbitrary patterns by reversible and additive cellular automata
is reported. The orbit of an 1D deterministic cellular automaton operating on p symbols that is
both additive and reversible is explicitly given in terms of coefficients that appear in the theory
of Gegenbauer polynomials. It is shown that if p is and odd prime, the pattern formed after
(p − 1)/2 time steps from any arbitrary initial condition (spatially confined to a region of side less
than p) replicates after p+(p−1)/2 time steps in a way that resembles budding in biological systems.
FIG. 1: Arithmetic triangle formed by the values obtained by iterating (a) the map given by Eq. (8), (b) the CA rule Eq.(15) with
xi0 = xi−1 = δi,0 for p = 5. The structure formed at t = (p − 1)/2 = 2 (shown in a green box) duplicates at time t = p + (p − 1)/2 = 7, both
structures being separated by sites in the quiescent state. This duplication process grows out of “buds” that are created at time t = p = 7.
p−1, 0 ≤ j ≤ smax < t ≤ p−1, 0 ≤ 2j +|i| ≤ t ≤ p−1 where Eqs. (19), (20) and (21) have been used to
and 0 ≤ t − s ≤ t ≤ p − 1, we have, from Lucas’ replace the binomial coefficients within the sum. We
theorem thus have as well
xi+p 1,1 1,1
t−s+p t−s 1 t+p = Ct+p,i+p − Ct−1+p,i+p mod p
mod p = mod p
s s 0 1,1 1,1
= Ct,i − Ct−1,i mod p
t−s
= mod p (19) = xit (23)
s
as we wanted to prove. The second equality in (ii)
t − 2s + p
t − 2s
1 comes then after applying result (i).
mod p = mod p Result (iii) is directly obtained from Eq. (17),
2j + |i| + p 2j + |i| 1 1,1
since Ct,i = 0 for |i| > t. 2
t − 2s
= mod p (20)
2j + |i|
Lemma 2: Let |i| ≤ (p − 1)/2 and p > 1 be any odd
and
prime number. Then
2j + |i| + p 2j + |i| 1 1,1 1,1
mod p = mod p Cp+ p−1 mod p = Cp+ p−1 mod p (24)
j j 0 2 ,i −1,i 2
2j + |i| and, therefore, for the map given by Eq. (15), we
= mod p (21)
j have that xip+(p−1)/2 = 0, ∀|i| ≤ (p − 1)/2.
We thus have, from Eq. (17) Proof: From Eq. (17), we have, for t = T :=
1,1 p + (p − 1)/2,
Ct+p,i+p mod p =
−|i|
t−|i|
b 2 c b
t−|i|−2s
2 c b TX
2 c b T −|i|
2 −sc
s t−s+p 2j + |i| + p
X X 1,1
X
= (−1) × CT,i = cT,i (s, j) (25)
s=0 j=0
s j s=0 j=0
t − 2s + p where
× mod p
2j + |i| + p
s T − s 2j + |i| T − 2s
t−|i|
b 2 cb
t−|i|−2s
c cT,i (s, j) := (−1) (26)
2 s j 2j + |i|
s t−s 2j + |i|
X X
= (−1) × (T − s)!
s=0 j=0
s j = (−1)s (27)
s!j!(j + |i|)! (T − 2s − 2j − |i|)!
t − 2s
× mod p Clearly, from Eq. (27) all cT,i (s, j)’s for which
2j + |i|
1,1
= Ct,i mod p (22) T − p < 2s ≤ p − 1 (28)
5
do not contribute to the sum in Eq. (25) because from which, by comparing with Eq. (30),
they are equal to 0 mod p. This can be seen from
the fact that the factorial (T − s)! in the numera- cT,i (s0 , j) mod p = cT −1,i (s00 , j) mod p (34)
tor of cT,i (s, j) contains a factor p that is absent in
the denominator, since s < p, j < p jand because k and, therefore
|i| ≤ (p − 1)/2 we also have j + |i| ≤ T +|i| 2 < p. XX
1,1
Thus, the only terms that contribute to the sum in CT,i mod p = cT,i (s0 , j)
j fork which 0 ≤ 2s ≤ T − p and
Eq. (25) are those s0 j
T +|i|
XX
p + 1 ≤ 2s ≤ 2 . If one considers now time
2 = cT −1,i (s00 , j)
T − 1, these inequalities for the values s00 j
j of s readk now
0 ≤ 2s ≤ T − p − 1 and p − 1 ≤ 2s ≤ 2 T −1+|i|
2 . This = CT1,1
−1,i mod p (35)
0 0
means that for any s = s such that cT,i (s , j) is not
1,1
divisible by p a bijection can be established to another as we wanted to prove. Now, since xiT = CT,i −CT1,1
−1,i
value s00 = s0 + p−12 mod p for which cT −1,i (s00 , j) is mod p, we finally have
divisible by p neither. We now show that cT,i (s0 , j)
mod p = cT −1,i (s00 , j) mod p. Note that, by using p−1
xip+ p−1 = 0 mod p ∀|i| ≤ (36)
the symmetries of binomial coefficients and Lucas’ cor- 2 2
respondence theorem we have, on one hand,
and the proof of the Lemma is completed. 2
cT,i (s0 , j) mod p = We now state and give a proof of the main result
T − s0 2j + |i| T − 2s0
s0 of this article.
= (−1) mod p
T − 2s0 j 2j + |i|
p + T − s0 2j + |i| T − 2s0
0
= (−1)s mod p Theorem 2 (Replication of spatially extended
T − 2s0 j 2j + |i|
structures): Let an arbitrary initial condition be
(29) given for an integer variable xit ∈ [0, p − 1], with p and
and, on the other hand, using again Lucas’ correspon- odd prime at t = 0 and t = −1, which is nonzero only
dence theorem twice on a collection of 2δ + 1 < p adjacent sites centered at
i = 0 and such that x−δ −δ
0 = x−1 , x0
−δ+1
= x−δ+1
−1 , . . .,
cT −1,i (s00 , j) mod p = 0 0 δ−1 δ−1 δ δ
x0 = x−1 , . . ., x0 = x−1 , x0 = x−1 . Then, at time
2p − 1 − s0 2j + |i| T − 2s0 t00 = p + (p − 1)/2, two copies arise that are identical
0
+ p−1
= (−1)s 2
to the pattern obtained at time t0 = (p − 1)/2. The
T − 2s0 j 2j + |i|
copies are separated by sites in the quiescent state
mod p (30)
(i.e. sites with value 0).
We now note that
Proof: Because of the linearity of the map, Eq.
p + T − s0 (p + T − s0 ) (p + T − s0 − 1)
= (31) (15), the orbit is given by the superposition (convo-
T − 2s0 p + s0 (p + s0 − 1) lution) of arithmetic triangles obtained in Theorem 1
(2p − s0 ) 2p − 1 − s0
with the initial condition as
... ×
p + s0 − p−1 T − 2s0
2 δ
X 1,1 1,1
and, therefore, xit = x0i−k Ct,i−k − Ct−1,i−k mod p (37)
k=−δ
p + T − s0 2p − s0 − 1
p−1
mod p = (−1) 2
T − 2s0 T − 2s0 1,1
with Ct,i given by Eq. (17). At time t = p−1
a
2
mod p (32) pattern is obtained
By replacing this result in Eq. (29), we obtain δ
X
0
cT,i (s , j)
mod p = xip−1 = xi−k
0 C 1,1
p−1
,i−k
− C 1,1
p−1
−1,i−k
mod p
2 2 2
k=−δ
2p − s0 − 1 2j + |i| T − 2s0
0 p−1
(−1)s + 2 (38)
T − 2s0 j 2j + |i| Because of Lemma 1, (i) and (ii) two copies of this
mod p (33) pattern are produced at time t = p + p−1
2 . Let |i| ≤ t,
6
FIG. 2: Spatiotemporal evolution of map Eq. (41) for the initial condition shown in the leftmost panel and p = 7. Subsequent time steps
are shown and it is observed that the pattern obtained at t = (p − 1)/2 = 3 is replicated at time step t = p + (p − 1)/2 = 10, yielding two
copies separated by sites in the quiescent state (dark blue).
i.e. −t ≤ i ≤ t. The two copies are given by solution of the above map is simply given for t ≥ 1 as
δ δ
X
xi,j xi,j−k 1,1 1,1
X
xi+p
p+ p−1
= xi−k
0 C 1,1
p−1
,i−k
− C 1,1
p−1
−1,i−k t = 0 Ct,j−k − Ct−1,j−k (42)
2 2 2
k=−δ k=−δ
mod p (39)
Theorem 2 can be applied in this case and, for a
x−i−p
p+ p−1
= i+p
xp+ p−1 (40) given odd prime p the structure obtained at time step
2 2
(p−1)/2 will yield two copies at time p+(p−1)/2 sep-
and are centered at positions p and −p, respectively, arated by sites in the quiescent state. This is shown in
occupying positions [p − p−1 p−1
2 − δ, p + 2 + δ] and
Figure 2 for p = 7 and an initial condition contained
p−1 p−1
[−p − 2 − δ, −p + 2 + δ] . These structures are in a rectangle satisfying the conditions of Theorem 2.
externally surrounded by sites in the quiescent state Computer simulations show that this replication
(because of Lemma 1 (iii)). The sites occupying posi- process extend to von Neumann and Moore neigh-
tions [− p−1 p−1
2 +δ, 2 −δ] are also in the quiescent state,
borhoods. In two dimensions the RACA for a von
because of Lemma 2. Note that the properties of the Neumann neighborhood has the form
1,1
coefficients Ct,i when taken modulo p alone suffice to
establish all this. 2 xi,j i,j−1
t+1 = xt + xi,j i,j+1
t + xt + xi−1,j
t + xi+1,j
t − xi,j
t−1
mod p (43)
IV. DISCUSSION AND MODIFICATIONS In this case, the pattern obtained after (p − 1)/2 time
steps starting from an arbitrary initial condition of
side, at most p, is replicated at time T = p+(p−1)/2.
The above result can be generalized to two and However, four copies are produced for the pattern in
three dimensions. If two dimensions are considered, this case, that compare to the two copies produced by
but the dynamics takes place only along one dimen- the 1D RACA, Eq. (15). This is observed in Fig. 3
sion, the map admits a straigtforward generalization in which the spatiotemporal evolution of Eq. (43) is
as shown for p = 13, starting from an initial condition
xi,j i,j
−1 = x0 contained in a small rectangle, as shown
xi,j i,j−1
t+1 = xt + xi,j i,j+1
t + xt − xi,j
t−1 mod p (41) in the leftmost, uppermost panel. Subsequent time
steps are shown and it is observed that four copies are
Here i, j ∈ Z give the coordinates of a site on a dis- produced at t = p + (p − 1)/2 = 19 of the pattern
crete, planar lattice. The dynamics takes place only obtained at t = (p − 1)/2 = 6 through a process that
along the j direction. By selecting an initial condition resembles budding in biological systems. Four buds
xi,j i,j
−1 = x0 where the non-zero sites are contained on a are originated at t = p = 13 and these grow until
rectangle and such that along the j direction the con- the patterns representing the mature individuals are
ditions of Theorem 2 are satisfied (the nonzero sites obtained, being then separated from the main body
occupy a region of side δ such that 2δ + 1 < p), the by sites in the quiescent state.
7
FIG. 3: Spatiotemporal evolution of map Eq. (43) for the initial condition at t = −1 and t = 0 shown in the leftmost and uppermost panel
and p = 13. Subsequent time steps (indicated in the panels) are shown and it is observed that the pattern obtained at t = (p − 1)/2 = 6 is
replicated at time t = p + (p − 1)/2 = 19 from four ’buds’ generated at t = p, yielding four copies separated by sites in the quiescent state
(dark blue).
For a Moore neighborhood the RACA (p − 1)/2 replicates at time T = p + (p − 1)/2. This
1 1 time, eight copies of the pattern are obtained.
X X
xi,j
t+1 = xi−k,j−m
t − xi,j
t−1 mod p (44) Let f (xt ) denote the right hand side of Eqs. (15),
k=−1 m=−1
(41), (43) or (44). Modifications can be introduced to
also satisfies the fact that the pattern obtained at time any of these maps by following the methods in [23] to
8
[1] S. Wolfram, A New Kind of Science. (Champaign, IL, (CRC Press, Boca Raton, FL, 1994).
Wolfram Media, 2002). [3] B. Voorhees, Additive Cellular Automata. In: Mey-
[2] A. Adamatzky, Identification of cellular automata. ers R. (eds) Encyclopedia of Complexity and Systems
9
Science. (Springer, New York, NY, 2009). [16] O. Martin, A. M. Odlyzko, and S. Wolfram, Commun.
[4] S. Wolfram, Amer. Math. Mon. 91 (1984) 566-571. Math. Phys. 93 (1984) 219.
[5] V. Garcı́a-Morales, Phys. Lett. A 376 (2012) 2645. [17] B. A. Bondarenko, Generalized Pascal Triangles
[6] V. Garcı́a-Morales, Phys. Lett. A 377 (2013) 276. and Pyramids (The Fibonacci Association, Dalhousie,
[7] P. P. Chaudhuri, D. R. Chowdhuri, S. Nandi and Nova Scotia, Canada, 1993).
S. Chattopadyhay, Additive cellular automata. The- [18] H.-O. Peitgen, H. Jürgens and D. Saupe, Chaos and
ory and applications. Vol. 1. (Wiley, New York, NY, Fractals: New Frontiers of Science (Springer, New
1997). York, 2004), pp. 377-224.
[8] A. Fúster-Sabater and P. Caballero-Gil, Appl. Math. [19] J. Gravner, G. Gliner and M. Pelfrey, Physica D 240
Lett. 22 (2009) 1518-1524. (2011) 1460-1474.
[9] H. Yamada and S. Amoroso, Inform. Contr. 14 (1969) [20] J. Kari, Physica D 45 (1990) 379-385.
299. [21] K. Dilcher, Siam J. Math. Anal. 19 (1988) 473-483.
[10] S. Amoroso and G. Cooper, J. Comput. Syst. Sci. 5 [22] N. J. Fine, Amer. Math. Mon. 54 (1947) 589.
(1971) 455. [23] V. Garcı́a-Morales, Phys. Rev. E 88 (2013) 042814.
[11] T. J. Ostrand, J. Comput. Syst. Sci. 5 (1971) 623. [24] J. Maynard Smith and E. Szathmáry, The origins of
[12] W. L. Hamilton and J. R. Mertens, J. Comput. Syst. life: From the birth of life to the origin of language
Sci. 10 (1975) 248. (Oxford University Press, Oxford, UK, 1999).
[13] P. G. Anderson, J. Comput. Syst. Sci. 12 (1976) 394. [25] V. Garcı́a-Morales, J. Phys. A: Math. Theor. 49,
[14] A. G. Barto, J. Comput. Syst. Sci. 16 (1978) 445. 295101 (2016).
[15] M. Ito, N. Osato, and M. Nasu, J. Comput. Syst. Sci. [26] V. Garcı́a-Morales, Chaos. Sol. Fract. 152 (2021)
27 (1983) 125. 111426.