OFFSET
0,2
LINKS
Robert Price, Table of n, a(n) for n = 0..1000
Eric Weisstein's World of Mathematics, Elementary Cellular Automaton
Stephen Wolfram, A New Kind of Science, Wolfram Media, 2002; p. 55.
FORMULA
Conjectures from Colin Barker, Jan 17 2016 and Apr 20 2019: (Start)
a(n) = 5*a(n-1) - 4*a(n-2) for n > 3.
G.f.: (1+2*x)*(1-x+x^2) / ((1-x)*(1-4*x)).
(End)
Empirical a(n) = 13*2^(2*n-3) - 1 for n > 1. - Colin Barker, Nov 25 2016 and Apr 20 2019
MATHEMATICA
rule = 143; rows = 20; ca = CellularAutomaton[rule, {{1}, 0}, rows - 1, {All, All}]; (* Start with single black cell *) catri = Table[Take[ca[[k]], {rows - k + 1, rows + k - 1}], {k, rows}]; (* Truncated list of each row *) Table[FromDigits[catri[[k]], 2], {k, rows}] (* Decimal Representation of Rows *)
PROG
(PARI) a(n) = n<<=1; bitneg(6<<(n-4), n+1); \\ Kevin Ryde, Apr 25 2022
CROSSREFS
KEYWORD
nonn,easy,changed
AUTHOR
Robert Price, Jan 16 2016
STATUS
approved