login
A189632
Fixed point starting with 0 of the morphism 0->001, 1->100.
5
0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 0, 1, 0, 0
OFFSET
1
FORMULA
a(3k-2)=a(k), a(3k-1)=0, a(3k)=1-a(k) for k>=1, a(1)=0. [Corrected by Michel Dekking, Sep 15 2019]
EXAMPLE
0->001->001001100->...
MATHEMATICA
t = Nest[Flatten[# /. {0->{0, 0, 1}, 1->{1, 0, 0}}] &, {0}, 5] (* A189632 *)
f[n_] := t[[n]]
Flatten[Position[t, 0]] (* A189633 *)
Flatten[Position[t, 1]] (* A189634 *)
s[n_] := Sum[f[i], {i, 1, n}]; s[0] = 0;
Table[s[n], {n, 1, 120}] (* A189635 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Clark Kimberling, Apr 24 2011
EXTENSIONS
Name clarified by Michel Dekking, Sep 15 2019
STATUS
approved