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!)
A188297 a(n) = [n*r] - [k*r] - [n*r-k*r], where r=1/sqrt(2), k=2, [ ]=floor. 4
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, 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, 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 (list; graph; refs; listen; history; text; internal format)
OFFSET
1
COMMENTS
See A188014.
LINKS
FORMULA
a(n) = [n*r] - [n*r-2*r] - [2*r], where r=1/sqrt(2).
MATHEMATICA
r=2^(-1/2); k=2;
t=Table[Floor[n*r]-Floor[n*r-k*r]-Floor[k*r], {n, 1, 220}] (* A188297 *)
Flatten[Position[t, 0] ] (* A188298 *)
Flatten[Position[t, 1] ] (* A188299 *)
PROG
(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
(Magma) [Floor(n/Sqrt(2)) - Floor(2/Sqrt(2)) - Floor((n-2)/Sqrt(2)): n in [1..100]]; // G. C. Greubel, Apr 13 2018
CROSSREFS
Sequence in context: A144595 A340507 A072785 * A289128 A272664 A143518
KEYWORD
nonn
AUTHOR
Clark Kimberling, Mar 27 2011
STATUS
approved

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 23 14:29 EDT 2024. Contains 371914 sequences. (Running on oeis4.)