OFFSET
0,2
REFERENCES
S. Wolfram, A New Kind of Science, Wolfram Media, 2002; p. 55.
LINKS
Robert Price, Table of n, a(n) for n = 0..999
Eric Weisstein's World of Mathematics, Elementary Cellular Automaton
Index entries for linear recurrences with constant coefficients, signature (10,1,-10).
FORMULA
G.f.: (1 - x^2 + x^3)/(1 - 10*x - x^2 + 10*x^3). - Michael De Vlieger, Dec 21 2015
a(n) = floor(991*10^n/990). - Karl V. Keller, Jr., Oct 09 2021
EXAMPLE
From Michael De Vlieger, Dec 21 2015: (Start)
First 8 rows at left with the center column values in parentheses, and at right the binary value of center column cells up to that row:
(1) -> 1
1 (0) 0 -> 10
0 0 (0) 1 0 -> 100
1 1 1 (1) 0 0 1 -> 1001
0 0 0 0 (0) 0 1 0 0 -> 10010
1 1 1 1 1 (1) 1 0 0 1 1 -> 100101
0 0 0 0 0 0 (0) 0 0 1 0 0 0 -> 1001010
1 1 1 1 1 1 1 (1) 1 1 0 0 1 1 1 -> 10010101
(End)
MATHEMATICA
Table[SeriesCoefficient[(1 - x^2 + x^3)/(1 - 10 x - x^2 + 10 x^3), {x, 0, n}], {n, 0, 19}] (* Michael De Vlieger, Dec 21 2015 *)
PROG
(Python) print([991*10**n//990 for n in range(50)]) # Karl V. Keller, Jr., Oct 09 2021
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Robert Price, Dec 20 2015
STATUS
approved