login
a(n) = floor(2*n*r) - 2*floor(n*r), where r = sqrt(6).
4

%I #10 Sep 15 2019 20:11:29

%S 0,0,1,0,1,0,1,0,1,0,0,1,0,1,0,1,0,1,0,1,1,0,1,0,1,0,1,0,1,0,0,1,0,1,

%T 0,1,0,1,0,1,1,0,1,0,1,0,1,0,1,0,0,1,0,1,0,1,0,1,0,1,1,0,1,0,1,0,1,0,

%U 1,0,0,1,0,1,0,1,0,1,0,1,1,0,1,0,1,0

%N a(n) = floor(2*n*r) - 2*floor(n*r), where r = sqrt(6).

%H Clark Kimberling, <a href="/A327253/b327253.txt">Table of n, a(n) for n = 0..10000</a>

%F a(n) = floor(2*n*r) - 2*floor(n*r), where r = sqrt(6).

%t r = Sqrt[6]; z = 300;

%t t = Table[Floor[2 n r] - 2 Floor[n*r], {n, 0, z}]

%Y The positions of 0's and 1's in {a(n) : n > 0} are given by A327254 and A327255.

%K nonn,easy

%O 0

%A _Clark Kimberling_, Sep 03 2019