OFFSET
0
LINKS
Clark Kimberling, Table of n, a(n) for n = 0..10000
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
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Sep 03 2019
STATUS
approved