Full series expansion of the floor function

952 Views Asked by At

We know if $x$ is not an integer we have

$$\left \lfloor x \right \rfloor=x-\frac{1}{2}+\frac{1}{\pi }\sum_{k=1}^{\infty}\frac{\sin(2\pi kx)}{k}$$

Is there an series expansion of floor function which contains the situation of $x$ being an integer?