login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A265379
Binary representation of the n-th iteration of the "Rule 158" elementary cellular automaton starting with a single ON (black) cell.
3
1, 111, 11101, 1110011, 111011101, 11100110011, 1110111011101, 111001100110011, 11101110111011101, 1110011001100110011, 111011101110111011101, 11100110011001100110011, 1110111011101110111011101, 111001100110011001100110011, 11101110111011101110111011101
OFFSET
0,2
LINKS
Eric Weisstein's World of Mathematics, Rule 158
Eric Weisstein's World of Mathematics, Elementary Cellular Automaton
Stephen Wolfram, A New Kind of Science, Wolfram Media, 2002; p. 55.
FORMULA
From Colin Barker, Dec 14 2015 and Apr 18 2019: (Start)
a(n) = 10001*a(n-2) - 10000*a(n-4) for n>3.
G.f.: (1+111*x+1100*x^2-100*x^3) / ((1-x)*(1+x)*(1-100*x)*(1+100*x)).
(End)
a(n) = floor((11100 - (n mod 2))*100^n/9999). - Karl V. Keller, Jr., Sep 20 2021
EXAMPLE
From Michael De Vlieger, Dec 09 2015: (Start)
First 12 rows:
1
1 1 1
1 1 1 0 1
1 1 1 0 0 1 1
1 1 1 0 1 1 1 0 1
1 1 1 0 0 1 1 0 0 1 1
1 1 1 0 1 1 1 0 1 1 1 0 1
1 1 1 0 0 1 1 0 0 1 1 0 0 1 1
1 1 1 0 1 1 1 0 1 1 1 0 1 1 1 0 1
1 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1
1 1 1 0 1 1 1 0 1 1 1 0 1 1 1 0 1 1 1 0 1
1 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1
1 1 1 0 1 1 1 0 1 1 1 0 1 1 1 0 1 1 1 0 1 1 1 0 1
(End)
MATHEMATICA
rule = 158; rows = 20; Table[FromDigits[Table[Take[CellularAutomaton[rule, {{1}, 0}, rows-1, {All, All}][[k]], {rows-k+1, rows+k-1}], {k, 1, rows}][[k]]], {k, 1, rows}]
PROG
(Python) print([(11100 - (n%2))*100**n//9999 for n in range(30)]) # Karl V. Keller, Jr., Sep 20 2021
CROSSREFS
Cf. A071037 (cells), A118171 (decimal).
Sequence in context: A249183 A071033 A267364 * A265688 A138146 A100706
KEYWORD
nonn,easy
AUTHOR
Robert Price, Dec 07 2015
STATUS
approved