login
A327256
a(n) = floor(2*n*r) - 2*floor(n*r), where r = sqrt(8).
4
0, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 1, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 1, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 1, 1, 0
OFFSET
0
LINKS
FORMULA
a(n) = floor(2*n*r) - 2*floor(n*r), where r = sqrt(8).
MATHEMATICA
r = Sqrt[8]; z = 300;
t = Table[Floor[2 n r] - 2 Floor[n*r], {n, 0, z}]
CROSSREFS
The positions of 0's and 1's in {a(n) : n > 0} are given by A327257 and A327258.
Sequence in context: A105384 A288694 A292077 * A327177 A366255 A057212
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Sep 03 2019
STATUS
approved