%I#12 2016年4月8日03:06:04
%S 4、4、23、-15、84、-6113、-104260、-237357、-316479、-447663、-69997、,
%电话:-8711056、-10691453、-13481559、-15992003、-18952171、-2112535、,
%U-24712867、-29793564、-33613625、-36334281、-41814601、-4633557、-51295589、-5541
%N基于5细胞von Neumann邻域,“规则363”定义的二维细胞自动机第N个生长阶段中活动(ON,黑色)细胞数的第一个差异。
%C在零级用单个黑色(ON)单元初始化。
%D S.Wolfram,《一种新的科学》,Wolfram Media,2002年;第170页。
%H Robert Price,<a href=“/A268194/b268194.txt”>n,a(n)表,n=0..127</a>
%H N.J.A.斯隆,<A href=“http://arxiv.org/abs/1503.01168“>关于元胞自动机中On细胞的数量,arXiv:1503.01168[math.CO],2015
%H Eric Weistein的《数学世界》,<a href=“http://mathworld.wolfram.com/ElementaryCellularAutomaton.html“>基本元胞自动机</a>
%H S.Wolfram,<a href=“http://wolframscience.com/“>一种新的科学</a>
%H<a href=“/index/Ce#cell”>与细胞自动机相关的序列的索引条目</a>
%H<a href=“https://oeis.org/wiki/Index_to_2D_5-Neighbor_Cellular_Automata网站“>二维五邻域元胞自动机索引</a>
%H<a href=“https://oeis.org/wiki/Index_to_Elementary_Cellular_Automata网站“>基本元胞自动机索引</a>
%t CAStep[rule_,a_]:=映射[rule[[10-#]]&,ListConvolve[{{0,2,0},{2,1,2},},a,2],{2}];
%t代码=363;阶段=128;
%t规则=整数位数[代码,2,10];
%t g=2*阶段+1;(*网格最大尺寸*)
%t a=PadLeft[{{1}},{g,g},0,Floor[{g,g}/2]];(*电网上的初始ON电池*)
%t ca=a;
%t ca=表[ca=CAStep[rule,ca],{n,1,stages+1}];
%t PrependTo[ca,a];
%t(*修剪整个网格以反映每个阶段一个单元格的增长*)
%t k=(长度[ca[[1]]]+1)/2;
%t ca=表[表[部分[ca[[n]][[j]],范围[k+1-n,k-1+n]],{j,k+1-n,k-1+n}],{n,1,k}];
%t on=映射[Function[Apply[Plus,Flatten[#1]]],ca](*在每个阶段计数on单元格*)
%t表[on[i+1]-on[i]],{i,1,长度[on]-1}](*每个阶段的差异*)
%Y参考A264099。
%K符号,简单
%0、1
%2016年4月7日A报价
|