%I #4 Jun 02 2017 15:01:25
%S 1,4,5,7,10,11,14,15,17,20,21,23,26,27,30,31,33,36,37,40,41,43,46,47,
%T 49,52,53,56,57,59,62,63,65,68,69,72,73,75,78,79,82,83,85,88,89,91,94,
%U 95,98,99,101,104,105,108,109,111,114,115,117,120,121,124
%N Positions of 0 in A287657; complement of A287659.
%H Clark Kimberling, <a href="/A287658/b287658.txt">Table of n, a(n) for n = 1..10000</a>
%F a(n) = 2n - A005614(n-1) for n >= 1.
%t s = Nest[Flatten[# /. {0 -> {0, 1}, 1 -> {0}}] &, {0}, 10] (*A003849*)
%t w = StringJoin[Map[ToString, s]]
%t w1 = StringReplace[w, {"0" -> "01", "1" -> "10"}] (*Thue-Morse transform*)
%t st = ToCharacterCode[w1] - 48 (*A287657*)
%t Flatten[Position[st, 0]] (*A287658*)
%t Flatten[Position[st, 1]] (*A287659*)
%Y Cf. A003849, A005614, A287657, A287659.
%K nonn,easy
%O 1,2
%A _Clark Kimberling_, Jun 02 2017
|