I am stuck on solving the equation, given $k\lt\frac{n}{2},\ n,k\ge3$: $$ m=\lceil 2k-\frac{2}{n}\displaystyle\left(\lfloor\frac{n-\lfloor\frac{n}{k+1}\rfloor}{2}\rfloor\right)(k+1)\rceil$$.
I think the value of $m$ would be $k$. But, the detailed solution is beyond my reach. What inequalities and analysis should we use to reach the solution? Also, what if I modify the equation to: $$m=\lceil 2\frac{nk}{n-1}-\frac{2}{n-1}\displaystyle\left(\lfloor\frac{n-\lfloor\frac{n}{k+1}\rfloor}{2}\rfloor\right)(k+1)\rceil$$ Will the value of $m=k+1$ at any value of $n,k$? Any hints Thanks beforehand.
We calculate the first expression for integer values $k\geq 0, n\geq 1$.
Here we use (1) to get $\left\lfloor\frac{n}{k+1}\right\rfloor=\left\lfloor\frac{a(k+1)+b}{k+1}\right\rfloor=a+\left\lfloor\frac{b}{k+1}\right\rfloor=a$ noting that $0\leq b<k+1$.
In (2) we consider two cases: $n-a$ even or odd.
Comment:
In (3) we use again the representation (1).
In (4) we observe from (1) that $n=b$ if $n\leq k$ so that $\left\lceil k-\frac{b}{n}\right\rceil=\left\lceil k-1\right\rceil=k-1$.
The last line follows since from (1) we have $b<k+1$.