login
A327222
a(n) = [(2n+4)r] - [nr+4r] - [nr], where [ ] = floor and r = sqrt(2).
3
0, 0, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 1, 0, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 1, 0, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 1, 0, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 1, 0, 1, 1
OFFSET
0
LINKS
MATHEMATICA
r = Sqrt[2]; z = 300;
t = Table[Floor[(2 n + 4) r] - Floor[(n*r + 4 r)] - Floor[n*r], {n, 0, z}]
CROSSREFS
The positions of 0's and 1's in {a(n) : n > 0} are given by A327223 and A327224.
Sequence in context: A091225 A175337 A285031 * A286063 A339824 A278587
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Sep 02 2019
STATUS
approved