Is there also an other way to show the equality: $\left\lfloor \frac{n}{2}\right\rfloor + \left\lceil \frac{n}{2} \right\rceil=n$? I want to show that:
$$ \left\lfloor \frac{n}{2}\right\rfloor + \left\lceil \frac{n}{2} \right\rceil=n$$
That's what I have tried:


*

*$ \left\lfloor \frac{n}{2}\right\rfloor=\max \{ m \in \mathbb{Z}: m \leq \frac{n}{2}\}$

*$\left\lceil \frac{n}{2} \right\rceil= \min \{ m \in \mathbb{Z}: m \geq \frac{n}{2}\}$


If $n=2k,k \in \mathbb{Z}$,then: $\frac{n}{2} \mathbb{Z}$,so
$$\left\lfloor \frac{n}{2}\right\rfloor=\max \left\{ \frac{n}{2}, \frac{n-2}{2}, \dots \right\}=\frac{n}{2} \\ \left\lceil \frac{n}{2} \right\rceil=\min \left\{ \frac{n}{2}, \frac{n+2}{2}, \dots \right\}=\frac{n}{2}$$
Therefore, $ \left\lfloor \frac{n}{2}\right\rfloor + \left\lceil \frac{n}{2} \right\rceil=n$.
If $n=2k+1, k \in \mathbb{Z}$,then $\frac{n}{2} \notin \mathbb{Z}$.So:
$$\left\lfloor \frac{n}{2}\right\rfloor=\max \left\{ \frac{n-1}{2}, \frac{n-3}{2}, \dots \right\}=\frac{n-1}{2}\\ \left\lceil \frac{n}{2} \right\rceil=\min \left\{ \frac{n+1}{2}, \frac{n+3}{2}, \dots \right\}=\frac{n+1}{2}$$
Therefore, $ \lfloor \frac{n}{2}\rfloor + \lceil \frac{n}{2} \rceil=\frac{n-1}{2}+\frac{n+1}{2}=n$
Is there also an other way to show the equality or is it the only one?

Well, here's another one.  In fact, it is possible to prove that for any integer $n$ and any real number $\alpha$, we have
$$n=\lfloor (1-\alpha) n\rfloor +\lceil \alpha n\rceil.$$
First, we have $$\alpha n\leq\lceil\alpha n\rceil,$$ therefore, $$n-\lceil\alpha n\rceil\leq (1-\alpha)n,$$ but then, since $n-\lceil\alpha n\rceil$ is an integer, this means $$n-\lceil\alpha n\rceil\leq \lfloor (1-\alpha)n\rfloor.$$
Similarly, we have $$\lfloor (1-\alpha)n\rfloor\leq (1-\alpha)n,$$ therefore, $$\alpha n\leq n-\lfloor (1-\alpha)n\rfloor,$$ but then again, $$\lceil\alpha n\rceil\leq n-\lfloor (1-\alpha)n\rfloor,$$
from the above, we get $$\lfloor (1-\alpha) n\rfloor +\lceil \alpha n\rceil\leq n\leq \lfloor (1-\alpha) n\rfloor +\lceil \alpha n\rceil.$$
