login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons 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
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, 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, 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 (list; graph; refs; listen; history; text; internal format)
OFFSET

1

COMMENTS

See A187950.

LINKS

G. C. Greubel, Table of n, a(n) for n = 1..10000

FORMULA

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

MATHEMATICA

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

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

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

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

PROG

(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

(MAGMA) [Floor((n+5)/Sqrt(2)) - Floor(n/Sqrt(2)) - Floor(5/Sqrt(2)): n in [1..100]]; // G. C. Greubel, Apr 11 2018

CROSSREFS

Cf. A187950, A188399, A188265.

Sequence in context: A089012 A083035 A187074 * A288929 A285083 A266982

Adjacent sequences:  A188395 A188396 A188397 * A188399 A188400 A188401

KEYWORD

nonn

AUTHOR

Clark Kimberling, Mar 30 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 | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified June 18 20:45 EDT 2021. Contains 345121 sequences. (Running on oeis4.)