OFFSET
0,3
COMMENTS
For n >= 1, a(n) is the number of ON cells in the n-th generation of the 2-D Mitra-Kumar cellular automaton defined as follows. The state of a cell depends on the states of its NW and NE neighbors at the previous generation.
An ON cell remains ON iff 0 or 2 of its neighbors were ON, and an OFF cell turns ON iff exactly one of its neighbors was ON.
REFERENCES
Sugata Mitra and Sujai Kumar. "Fractal replication in time-manipulated one-dimensional cellular automata." Complex Systems, 16.3 (2006): 191-207. See Fig. 16.
LINKS
EXAMPLE
The first few generations of the automaton are:
X 0X0 00X00 000X000 0000X0000
X0X 00000 0000000 000000000
X000X 0X000X0 00X000X00
X0X0X0X 000000000
X0000000X
MAPLE
f:=proc(n) option remember; # A006046
if n <= 1 then n elif n mod 2 = 0 then 3*f(n/2)
else 2*f((n-1)/2)+f((n+1)/2); fi; end;
g:=n->f(n)-2*f(floor((n-1)/2));
[0, seq(g(n), n=1..130)];
PROG
(Haskell)
a245550 n = a245550_list !! n
a245550_list = 0 : zipWith (-) (tail a006046_list) (h a006046_list)
where h (x:xs) = (2 * x) : (2 * x) : h xs
-- Reinhard Zumkeller, Jul 29 2014
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Jul 29 2014
STATUS
approved