login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A188398 a(n) = [n*r+k*r] - [n*r] - [k*r], where r=1/sqrt(2), k=5, [ ]=floor. 4

%I #9 Sep 08 2022 08:45:56

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

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

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

%N a(n) = [n*r+k*r] - [n*r] - [k*r], where r=1/sqrt(2), k=5, [ ]=floor.

%C See A187950.

%H G. C. Greubel, <a href="/A188398/b188398.txt">Table of n, a(n) for n = 1..10000</a>

%F a(n) = [n*r+5*r] - [n*r] - [5*r], where r=1/sqrt(2).

%t r=2^(-1/2); k=5;

%t t=Table[Floor[n*r+k*r]-Floor[n*r]-Floor[k*r], {n,1,220}] (* A188398 *)

%t Flatten[Position[t,0] ] (* A188399 *)

%t Flatten[Position[t,1] ] (* A188265 *)

%o (PARI) for(n=1, 100, print1(floor((n+5)/sqrt(2)) - floor(n/sqrt(2)) - floor(5/sqrt(2)), ", ")) \\ _G. C. Greubel_, Apr 11 2018

%o (Magma) [Floor((n+5)/Sqrt(2)) - Floor(n/Sqrt(2)) - Floor(5/Sqrt(2)): n in [1..100]]; // _G. C. Greubel_, Apr 11 2018

%Y Cf. A187950, A188399, A188265.

%K nonn

%O 1

%A _Clark Kimberling_, Mar 30 2011

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 06:14 EDT 2024. Contains 371964 sequences. (Running on oeis4.)