This might seem like a dumb post, but I've never worked with floor/ceiling functions before.

How would we simplify $\dfrac{\left\lfloor{x}\right\rfloor \left\lfloor{x+1}\right\rfloor}{10100} - \dfrac{\left\lfloor{x-1}\right\rfloor \left\lfloor{x}\right\rfloor}{10100}$?

$x$ is a positive integer if that helps, and in that case it seems like we can just ignore the floor functions or am I missing something.

  • 1
    $\begingroup$ $\lfloor x \rfloor = x$ if $x$ is a positive integer. $\endgroup$
    – DavidW
    Oct 27, 2020 at 13:33

2 Answers 2


Note that $\lfloor x\pm k\rfloor=\lfloor x\rfloor\pm k$ for any integer $k$. Hence $$ \frac{\lfloor x\rfloor\lfloor x+1\rfloor}{10100}-\frac{\lfloor x\rfloor\lfloor x-1\rfloor}{10100} =\frac{\lfloor x\rfloor(\lfloor x\rfloor+1)}{10100}-\frac{\lfloor x\rfloor(\lfloor x\rfloor-1)}{10100} =\frac{2\lfloor x\rfloor}{10100} =\frac{\lfloor x\rfloor}{5050} $$ If furthermore $x$ is itself an integer, this simplifies to $x/5050$.


This makes sense only if $x$ is positive real number. For integers, you can simply remove the floor function.

$\frac{\left\lfloor{x}\right\rfloor \left\lfloor{x+1}\right\rfloor}{10100} - \frac{\left\lfloor{x-1}\right\rfloor \left\lfloor{x}\right\rfloor}{10100} = \frac{\left\lfloor{x}\right\rfloor (\left\lfloor{x+1}\right\rfloor - \left\lfloor{x-1}\right\rfloor)}{10100} = \frac{\, \lfloor x \rfloor}{5050}$

  • $\begingroup$ No. This is true for all x. The only important thing is that 1 is an integer. $\endgroup$ Jul 16, 2021 at 2:04
  • $\begingroup$ @stevengregory of course it is true for all $x$. My point was in reference to question stating $x$ was a positive integer. I meant to say that it should probably read positive real as in case of positive integer, the floor function could simply be removed. Reading it now, yes I could have been more clear. $\endgroup$
    – Math Lover
    Jul 16, 2021 at 15:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.