cp's OEIS Frontend

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.

A265723 Number of OFF (white) cells in the n-th iteration of the "Rule 1" elementary cellular automaton starting with a single ON (black) cell.

Original entry on oeis.org

0, 3, 4, 3, 8, 3, 12, 3, 16, 3, 20, 3, 24, 3, 28, 3, 32, 3, 36, 3, 40, 3, 44, 3, 48, 3, 52, 3, 56, 3, 60, 3, 64, 3, 68, 3, 72, 3, 76, 3, 80, 3, 84, 3, 88, 3, 92, 3, 96, 3, 100, 3, 104, 3, 108, 3, 112, 3, 116, 3, 120, 3, 124, 3, 128, 3, 132, 3, 136, 3, 140, 3
Offset: 0

Views

Author

Robert Price, Dec 14 2015

Keywords

Examples

			From _Michael De Vlieger_, Dec 14 2015: (Start)
First 12 rows, replacing ones with "." for better visibility of OFF cells, followed by the total number of 0's per row at right:
                      .                        =  0
                    0 0 0                      =  3
                  0 0 . 0 0                    =  4
                . . 0 0 0 . .                  =  3
              0 0 0 0 . 0 0 0 0                =  8
            . . . . 0 0 0 . . . .              =  3
          0 0 0 0 0 0 . 0 0 0 0 0 0            = 12
        . . . . . . 0 0 0 . . . . . .          =  3
      0 0 0 0 0 0 0 0 . 0 0 0 0 0 0 0 0        = 16
    . . . . . . . . 0 0 0 . . . . . . . .      =  3
  0 0 0 0 0 0 0 0 0 0 . 0 0 0 0 0 0 0 0 0 0    = 20
. . . . . . . . . . 0 0 0 . . . . . . . . . .  =  3
(End)
		

References

  • S. Wolfram, A New Kind of Science, Wolfram Media, 2002; p. 55.

Crossrefs

Programs

  • Mathematica
    rows = 71; Count[#, n_ /; n == 0] & /@ Table[Table[Take[CellularAutomaton[1, {{1}, 0}, rows - 1, {All, All}][[k]], {rows - k + 1, rows + k - 1}], {k, 1, rows}][[k]], {k, 1, rows}] (* Michael De Vlieger, Dec 14 2015 *)

Formula

Conjectures from Colin Barker, Dec 15 2015 and Apr 16 2019: (Start)
a(n) = 1/2*((2*(-1)^n+2)*n-3*((-1)^n-1)).
a(n) = 2*a(n-2) - a(n-4) for n>3.
G.f.: x*(3+4*x-3*x^2) / ((1-x)^2*(1+x)^2).
(End)