So I need to prove that T(n) is $O(n\text{log}(n))$, considering $c>0$ is a constant and using substitution method
What I've tried so far:
We need to prove that $T(n) \leq dn\text{log}(n), d\geq0$
Assuming that $T(\frac{n}{2}) \leq dn\text{ln}(\frac{n}{2})$, we have
$T(n) \leq dn\text{ln}(\lfloor{\frac{n}{2}}\rfloor) + dn\text{ln}(\lceil{\frac{n}{2}}\rceil) + 1$
Removing the ceil and the floor, I'm guessing we don't want to equal both of them to $\frac{n}{2}$, so
$T(n) \leq dn\text{ln}(\frac{n}{2}) + dn\text{ln}(\frac{n+1}{2}) + 1$
$T(n) \leq dn\text{ln}(n)-dn\text{ln}(2) + dn\text{ln}(n+1) - dn\text{ln}(2)+1$
$T(n) \leq dn\ln(n) + dn\ln(n+1) -2dn + 1$
And I have no idea how to continue this.
