%I #5 Apr 16 2017 00:14:04
%S 3,7,9,12,15,19,21,25,27,30,34,36,39,43,45,48,51,55,57,61,63,66,69,73,
%T 75,79,81,84,88,90,93,96,100,102,106,108,111,115,117,120,123,127,129,
%U 133,135,138,142,144,147,151,153,156,159,163,165,169,171,174,177
%N Positions of 1 in A284817.
%C This sequence and A284818 show that the nonperiodic complementary sequences A284776 and A284777 stay close to the odd positive integers, A005408, and even positive integers, A005843, respectively.
%H Clark Kimberling, <a href="/A284819/b284819.txt">Table of n, a(n) for n = 1..10000</a>
%e A284817 = (0,0,1,0,0,0,1,0,1,0,0,1,0,0...), so that a(1) = 3, a(2) = 7, a(3) = 9.
%t s = Nest[Flatten[# /. {0 -> {0, 1}, 1 -> {0, 0, 1, 1}}] &, {0}, 7]; (* A284775 *)
%t u = Flatten[Position[s, 0]] ; (* A284776 *)
%t v = Flatten[Position[s, 1]]; (* A284777 *)
%t t = Table[2 n - 1 - u[[n]], {n, 1, 200}]; (* A284817 *)
%t Flatten[Position[t, 0]]; (* A284818 *)
%t Flatten[Position[t, 1]]; (* A284819 *)
%Y Cf. A005843, A284776, A284818.
%K nonn,easy
%O 1,1
%A _Clark Kimberling_, Apr 15 2017
|