# Greetings from The On-Line Encyclopedia of Integer Sequences! http://oeis.org/ Search: id:a287978 Showing 1-1 of 1 %I A287978 #7 Jun 04 2017 00:38:38 %S A287978 1,1,4,3,16,23,64,79,256,95,1024,831,4096,383,16384,3327,65536,13823, %T A287978 262144,13311,1048576,6143,4194304,53247,16777216,221183,70254592, %U A287978 212991,268435456,98303,1275068416,851967,5100273664,3538943,21206401024,3407871 %N A287978 Decimal representation of the diagonal from the origin to the corner of the n-th stage of growth of the two-dimensional cellular automaton defined by "Rule 389", based on the 5-celled von Neumann neighborhood. %C A287978 Initialized with a single black (ON) cell at stage zero. %D A287978 S. Wolfram, A New Kind of Science, Wolfram Media, 2002; p. 170. %H A287978 Robert Price, Table of n, a(n) for n = 0..126 %H A287978 Robert Price, Diagrams of first 20 stages %H A287978 N. J. A. Sloane, On the Number of ON Cells in Cellular Automata, arXiv:1503.01168 [math.CO], 2015 %H A287978 Eric Weisstein's World of Mathematics, Elementary Cellular Automaton %H A287978 S. Wolfram, A New Kind of Science %H A287978 Wolfram Research, Wolfram Atlas of Simple Programs %H A287978 Index entries for sequences related to cellular automata %H A287978 Index to 2D 5-Neighbor Cellular Automata %H A287978 Index to Elementary Cellular Automata %t A287978 CAStep[rule_, a_] := Map[rule[[10 - #]] &, ListConvolve[{{0, 2, 0},{2, 1, 2}, {0, 2, 0}}, a, 2],{2}]; %t A287978 code = 389; stages = 128; %t A287978 rule = IntegerDigits[code, 2, 10]; %t A287978 g = 2 * stages + 1; (* Maximum size of grid *) %t A287978 a = PadLeft[{{1}}, {g, g}, 0,Floor[{g, g}/2]]; (* Initial ON cell on grid *) %t A287978 ca = a; %t A287978 ca = Table[ca = CAStep[rule, ca], {n, 1, stages + 1}]; %t A287978 PrependTo[ca, a]; %t A287978 (* Trim full grid to reflect growth by one cell at each stage *) %t A287978 k = (Length[ca[[1]]] + 1)/2; %t A287978 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 A287978 Table[FromDigits[Part[ca[[i]] [[i]], Range[i, 2 * i - 1]], 10], {i, 1, stages - 1}] %Y A287978 Cf. A287975, A287976, A287977. %K A287978 nonn,easy %O A287978 0,3 %A A287978 _Robert Price_, Jun 03 2017 # Content is available under The OEIS End-User License Agreement: http://oeis.org/LICENSE