OFFSET
0
LINKS
Clark Kimberling, Table of n, a(n) for n = 0..10000
FORMULA
a(n) = [(2n+2)r] - [(n+2)r] - [nr], where [ ] = floor and r = sqrt(2).
MATHEMATICA
r = Sqrt[2]; z = 200;
t = Table[Floor[(2 n + 2)*r] - Floor[n*r + 2 r] - Floor[n*r], {n, 0, z}]
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Aug 26 2019
STATUS
approved