This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A160796 #19 Aug 01 2023 06:56:02 %S A160796 0,1,8,11,32,35,56,65,128,131,152,161,224,233,296,323,512,515,536,545, %T A160796 608,617,680,707,896,905,968,995,1184,1211,1400,1481,2048,2051,2072, %U A160796 2081,2144,2153,2216,2243,2432,2441,2504,2531,2720,2747,2936,3017,3584,3593,3656 %N A160796 Total number of "ON" cells at n-th stage in simple 2-dimensional cellular automaton which is the "corner" structure corresponding to A160118. %C A160796 This bears the same relationship to A160118 as A153006 does to A139250. %F A160796 a(n) = 2 + (3/4)*(A160118(n) - 1) if n >= 2. %e A160796 If we label the generations of cells turned ON by consecutive numbers we get the cell pattern shown below: %e A160796 ..9...............9 %e A160796 ...888.888.888.888. %e A160796 ...878.878.878.878. %e A160796 ...8866688.8866688. %e A160796 .....656.....656... %e A160796 ...8866444.4446688. %e A160796 ...878.434.434.878. %e A160796 ...888.4422244.888. %e A160796 .........212....... %e A160796 00000000002244.888. %e A160796 0000000000.434.878. %e A160796 0000000000.4446688. %e A160796 0000000000...656... %e A160796 0000000000.8866688. %e A160796 0000000000.878.878. %e A160796 0000000000.888.888. %e A160796 0000000000........9 %e A160796 0000000000......... %e A160796 0000000000......... %t A160796 With[{d = 2}, wt[n_] := DigitCount[n, 2, 1]; a[n_] := (5 + 3 * If[OddQ[n], 3^d + (2^d)*Sum[(2^d - 1)^(wt[k] - 1), {k, 1, (n - 1)/2}] + (2^d)*(3^d - 2)*Sum[(2^d - 1)^(wt[k] - 1), {k, 1, (n - 3)/2}], 3^d + (2^d)*Sum[(2^d - 1)^(wt[k] - 1), {k, 1, n/2 - 1}] + (2^d)*(3^d - 2)*Sum[(2^d - 1)^(wt[k] - 1), {k, 1, n/2 - 1}]]) / 4; a[0] = 0; a[1] = 1; Array[a, 50, 0]] (* _Amiram Eldar_, Aug 01 2023 *) %Y A160796 Cf. A139250, A153006, A160797, A160798, A160412, A160118, A160416. %K A160796 nonn %O A160796 0,3 %A A160796 _Omar E. Pol_, Jun 13 2009, Jun 14 2009 %E A160796 Entry revised by _Omar E. Pol_ and _N. J. A. Sloane_, Feb 16 2010 %E A160796 More terms from _Nathaniel Johnston_, Nov 13 2010 %E A160796 Corrected by _Sean A. Irvine_, Mar 23 2011, in response to correction to A160118 %E A160796 More terms from _Amiram Eldar_, Aug 01 2023