# Greetings from The On-Line Encyclopedia of Integer Sequences! http://oeis.org/ Search: id:a281102 Showing 1-1 of 1 %I A281102 #7 Jan 15 2017 11:50:10 %S A281102 1,10,101,1000,10100,100010,1010101,10000010,101000101,1000101000, %T A281102 10101000100,100000101010,1010001010101,10001010001010, %U A281102 101010001010101,1000001010101010,10100010000010101,100010101000101010,1010100000101000101,10000010001010101010 %N A281102 Binary representation of the x-axis, from the left edge to the origin, of the n-th stage of growth of the two-dimensional cellular automaton defined by "Rule 324", based on the 5-celled von Neumann neighborhood. %C A281102 Initialized with a single black (ON) cell at stage zero. %D A281102 S. Wolfram, A New Kind of Science, Wolfram Media, 2002; p. 170. %H A281102 Robert Price, Table of n, a(n) for n = 0..126 %H A281102 Robert Price, Diagrams of first 20 stages %H A281102 N. J. A. Sloane, On the Number of ON Cells in Cellular Automata, arXiv:1503.01168 [math.CO], 2015 %H A281102 Eric Weisstein's World of Mathematics, Elementary Cellular Automaton %H A281102 S. Wolfram, A New Kind of Science %H A281102 Wolfram Research, Wolfram Atlas of Simple Programs %H A281102 Index entries for sequences related to cellular automata %H A281102 Index to 2D 5-Neighbor Cellular Automata %H A281102 Index to Elementary Cellular Automata %t A281102 CAStep[rule_, a_] := Map[rule[[10 - #]] &, ListConvolve[{{0, 2, 0},{2, 1, 2}, {0, 2, 0}}, a, 2],{2}]; %t A281102 code = 324; stages = 128; %t A281102 rule = IntegerDigits[code, 2, 10]; %t A281102 g = 2 * stages + 1; (* Maximum size of grid *) %t A281102 a = PadLeft[{{1}}, {g, g}, 0,Floor[{g, g}/2]]; (* Initial ON cell on grid *) %t A281102 ca = a; %t A281102 ca = Table[ca = CAStep[rule, ca], {n, 1, stages + 1}]; %t A281102 PrependTo[ca, a]; %t A281102 (* Trim full grid to reflect growth by one cell at each stage *) %t A281102 k = (Length[ca[[1]]] + 1)/2; %t A281102 ca = Table[Table[Part[ca[[n]] [[j]],Range[k + 1 - n, k - 1 + n]], {j, k + 1 - n, k - 1 + n}], {n, 1, k}]; %t A281102 Table[FromDigits[Part[ca[[i]] [[i]], Range[1, i]], 10], {i, 1, stages - 1}] %Y A281102 Cf. A281103, A281104, A281105. %K A281102 nonn,easy %O A281102 0,2 %A A281102 _Robert Price_, Jan 14 2017 # Content is available under The OEIS End-User License Agreement: http://oeis.org/LICENSE