OFFSET
1,1
COMMENTS
Start with S = 1,0,1; replace S by SS and complement the last bit; iterate.
Similar to A035263 but with a different start.
MATHEMATICA
f[l_] := Block[{s = Flatten[{l, l}]}, s[[ -1]] = Mod[s[[ -1]] + 1, 2]; s]; Nest[f, {1, 0, 1}, 6] (* Robert G. Wilson v, Jul 16 2005 *)
PROG
s=[1 0 1]; loop s=concat(s, s); s(length(s))=(s(length(s))+1)modulo2 endloop
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Alexandre Losev, Jul 14 2005
EXTENSIONS
More terms from Robert G. Wilson v, Jul 16 2005
STATUS
approved