Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).
%I #12 Sep 08 2022 08:45:56
%S 0,0,1,0,0,1,0,0,1,1,0,0,1,0,0,1,1,0,0,1,0,0,1,0,0,1,1,0,0,1,0,0,1,1,
%T 0,0,1,0,0,1,0,0,1,1,0,0,1,0,0,1,1,0,0,1,0,0,1,1,0,0,1,0,0,1,0,0,1,1,
%U 0,0,1,0,0,1,1,0,0,1,0,0,1,0,0,1,1,0,0,1,0,0,1,1,0,0,1,0,0,1,1,0,0,1,0,0,1,0,0,1,1,0,0,1,0,0,1,1,0,0,1,0,0,1,0,0,1,1,0,0,1
%N a(n) = [n*r] - [k*r] - [n*r-k*r], where r=1/sqrt(2), k=2, [ ]=floor.
%C See A188014.
%H G. C. Greubel, <a href="/A188297/b188297.txt">Table of n, a(n) for n = 1..10000</a>
%F a(n) = [n*r] - [n*r-2*r] - [2*r], where r=1/sqrt(2).
%t r=2^(-1/2); k=2;
%t t=Table[Floor[n*r]-Floor[n*r-k*r]-Floor[k*r], {n,1,220}] (* A188297 *)
%t Flatten[Position[t,0] ] (* A188298 *)
%t Flatten[Position[t,1] ] (* A188299 *)
%o (PARI) for(n=1,100, print1(floor(n/sqrt(2)) - floor(2/sqrt(2)) - floor((n-2)/sqrt(2)), ", ")) \\ _G. C. Greubel_, Apr 13 2018
%o (Magma) [Floor(n/Sqrt(2)) - Floor(2/Sqrt(2)) - Floor((n-2)/Sqrt(2)): n in [1..100]]; // _G. C. Greubel_, Apr 13 2018
%Y Cf. A188014, A188298, A188299.
%K nonn
%O 1
%A _Clark Kimberling_, Mar 27 2011