OFFSET
1
COMMENTS
See A285346.
LINKS
Clark Kimberling, Table of n, a(n) for n = 1..10000
MATHEMATICA
s = Nest[Flatten[# /. {0 -> {1, 0}, 1 -> {1, 1, 0, 0}}] &, {0}, 13] (* A285345 *)
u = Flatten[Position[s, 0]] (* A285346 *)
v = Flatten[Position[s, 1]] (* A285347 *)
t1 = Table[2*n + 1 - u[[n]], {n, 1, Length[u]}] (* A285351 *)
t2 = Table[2*n - 1 - v[[n]], {n, 1, Length[v]}] (* A285352 *)
Flatten[Position[t1, 0]] (* A285353 *)
Flatten[Position[t1, 1]] (* A285354 *)
Flatten[Position[t2, 0]] (* A189668 *)
Flatten[Position[t2, 1]] (* A189679 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Apr 25 2017
STATUS
approved