Sign up ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

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?

share|cite|improve this question
If $x=1$, then $\lfloor 1\rfloor=1$ and $\sin(2\pi k)=0,\ \forall k$, but your formula makes $\lfloor 1\rfloor$=1/2. Could you explain how you obtained this result? – 7raiden7 Apr 22 '14 at 14:13
From wikipedia... It only works on noninteger real numbers... – esege Apr 22 '14 at 14:13
Just a joke ... $$\left \lfloor x \right \rfloor = x-\frac \pi 4 \mathrm{sgn}(\sin(x)) + \sum_{n=1}^\infty \frac{\sin((2n+1)x)}{2n+1}$$ – Santosh Linkha Apr 22 '14 at 14:16
here's my joke answer: let $$f(x)=x-\frac{1}{2}+\frac{1}{\pi }\sum_{k=1}^{\infty}\frac{\sin(2\pi kx)}{k}$$then let $$g(x)=\lim_{x\to 0^+} f(x+h)-h$$ – Snowbody Jun 4 '14 at 19:55

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.