# Greetings from The On-Line Encyclopedia of Integer Sequences! http://oeis.org/ Search: id:a188395 Showing 1-1 of 1 %I A188395 #11 Sep 08 2022 08:45:56 %S A188395 1,1,0,1,1,1,1,1,1,0,1,1,1,1,1,1,0,1,1,0,1,1,1,1,1,1,0,1,1,1,1,1,1,0, %T A188395 1,1,0,1,1,1,1,1,1,0,1,1,1,1,1,1,0,1,1,1,1,1,1,0,1,1,0,1,1,1,1,1,1,0, %U A188395 1,1,1,1,1,1,0,1,1,0,1,1,1,1,1,1,0,1,1,1,1,1,1,0,1,1,1,1,1,1,0,1,1,0,1,1,1,1,1,1,0,1,1,1,1,1,1,0,1,1,0,1,1,1,1,1,1,0,1,1,1,1,1,1,0,1,1 %N A188395 a(n) = [n*r +k*r]-[n*r]-[k*r], where r=1/sqrt(2), k=4, [ ]=floor. %C A188395 See A187950. %H A188395 G. C. Greubel, Table of n, a(n) for n = 1..10000 %F A188395 a(n) = [n*r+4*r]-[n*r]-[4*r], where r=1/sqrt(2). %t A188395 r=2^(-1/2); k=4; %t A188395 t=Table[Floor[n*r+k*r]-Floor[n*r]-Floor[k*r], {n,1,220}] (* A188395 *) %t A188395 Flatten[Position[t,0] ] (* A188396 *) %t A188395 Flatten[Position[t,1] ] (* A188397 *) %o A188395 (PARI) for(n=1,100, print1(floor((n+4)/sqrt(2)) - floor(n/sqrt(2)) - floor(4/sqrt(2)), ", ")) \\ _G. C. Greubel_, Apr 25 2018 %o A188395 (Magma) [Floor((n+4)/Sqrt(2)) - Floor(n/Sqrt(2)) - Floor(4/Sqrt(2)): n in [1..100]]; // _G. C. Greubel_, Apr 25 2018 %Y A188395 Cf. A187950. %K A188395 nonn %O A188395 1 %A A188395 _Clark Kimberling_, Mar 30 2011 # Content is available under The OEIS End-User License Agreement: http://oeis.org/LICENSE