# Greetings from The On-Line Encyclopedia of Integer Sequences! http://oeis.org/
Search: id:a282105
Showing 1-1 of 1
%I A282105 #9 Feb 07 2017 03:20:44
%S A282105 1,1,7,4,29,23,124,69,471,380,1989,1111,7548,6085,31831,17788,120773,
%T A282105 97367,509308,284613,1932375,1557884,8148933,4553815,30918012,
%U A282105 24926149,130382935,72861052,494688197,398818391,2086126972,1165776837,7915011159,6381094268
%N A282105 Decimal 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 427", based on the 5-celled von Neumann neighborhood.
%C A282105 Initialized with a single black (ON) cell at stage zero.
%D A282105 S. Wolfram, A New Kind of Science, Wolfram Media, 2002; p. 170.
%H A282105 Robert Price, Table of n, a(n) for n = 0..126
%H A282105 Robert Price, Diagrams of first 20 stages
%H A282105 N. J. A. Sloane, On the Number of ON Cells in Cellular Automata, arXiv:1503.01168 [math.CO], 2015
%H A282105 Eric Weisstein's World of Mathematics, Elementary Cellular Automaton
%H A282105 S. Wolfram, A New Kind of Science
%H A282105 Wolfram Research, Wolfram Atlas of Simple Programs
%H A282105 Index entries for sequences related to cellular automata
%H A282105 Index to 2D 5-Neighbor Cellular Automata
%H A282105 Index to Elementary Cellular Automata
%F A282105 Empirical g.f.: (1 + x + 7*x^2 + 3*x^3 + 12*x^4 + 8*x^6 - 8*x^7) / ((1 - x)*(1 - 2*x)*(1 + 2*x)*(1 + x + x^2)*(1 + 4*x^2)). - _Colin Barker_, Feb 06 2017
%t A282105 CAStep[rule_, a_] := Map[rule[[10 - #]] &, ListConvolve[{{0, 2, 0},{2, 1, 2}, {0, 2, 0}}, a, 2],{2}];
%t A282105 code = 427; stages = 128;
%t A282105 rule = IntegerDigits[code, 2, 10];
%t A282105 g = 2 * stages + 1; (* Maximum size of grid *)
%t A282105 a = PadLeft[{{1}}, {g, g}, 0,Floor[{g, g}/2]]; (* Initial ON cell on grid *)
%t A282105 ca = a;
%t A282105 ca = Table[ca = CAStep[rule, ca], {n, 1, stages + 1}];
%t A282105 PrependTo[ca, a];
%t A282105 (* Trim full grid to reflect growth by one cell at each stage *)
%t A282105 k = (Length[ca[[1]]] + 1)/2;
%t A282105 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 A282105 Table[FromDigits[Part[ca[[i]] [[i]], Range[1, i]], 2], {i, 1, stages - 1}]
%Y A282105 Cf. A282103, A282104, A282106.
%K A282105 nonn,easy
%O A282105 0,3
%A A282105 _Robert Price_, Feb 06 2017
# Content is available under The OEIS End-User License Agreement: http://oeis.org/LICENSE