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.

A265722 Number of ON (black) 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

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

Views

Author

Robert Price, Dec 14 2015

Keywords

Examples

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

References

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

Crossrefs

Programs

  • Mathematica
    rule = 1; rows = 30; Table[Total[Table[Take[CellularAutomaton[rule, {{1},0},rows-1,{All,All}][[k]], {rows-k+1, rows+k-1}], {k,1,rows}][[k]]], {k,1,rows}]

Formula

Conjectures from Colin Barker, Dec 14 2015 and Apr 16 2019: (Start)
a(n) = 1/2*(-2*(-1)^n*n+2*n+3*(-1)^n-1).
a(n) = 2*a(n-2) - a(n-4) for n>3.
G.f.: (1-x^2+4*x^3) / ((1-x)^2*(1+x)^2).
(End)
a(n) = A019425(n), n>1. - R. J. Mathar, Jan 10 2016